@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');
@import url(./colors.css);
@import url(./app.css);


/* BUTTONS */
button {
    background: var(--primary);
    color: #111;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.button {
    background: var(--primary);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    & a, i, svg {
        color: var(--text-black);
        font-weight: bold;
        font-size: var(--step-0);
    }

    & a {
        bottom: -1px;
        position: relative;
    }
}

/* CONTAINER */
.container {
    margin-inline: 2rem;
    padding: 1rem;
	margin-top: 1rem;
    background-color: var(--background-800);
    border-radius: 1rem;
    padding: clamp(1rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    & h1 {
        font-weight: bold;
        line-height: 140%;
        font-size: var(--step-5);
        width: fit-content;
    }

    & > h2 {
        font-size: var(--step-1);
    }

    & span, .headline-highlight {
        background-color:var(--primary);
        color: black;
        font-weight: bold;
        padding: 0.25rem;
        line-height: 100%;

    }
	

}

/* Tato část se aplikuje POUZE na velkých obrazovkách (počítačích) */
@media screen and (min-width: 40.01em) {
    .event-headline h2 {
        font-size: var(--step-2) !important; /* Zmenšení nadpisu */
        padding: 0.3rem 0.5rem !important;   /* Volitelně: zmenšení vnitřního rozestupu */
    }

    .event-headline h3 {
        font-size: var(--step-0) !important; /* Zmenšení popisu pod nadpisem */
    }
}

.login-container {
    margin-inline: 20%;
}

.login-card {
    margin-inline: 2rem;

    & h2 {
        font-size: var(--step-3);
    }
}

/* DASHBOARD */
.dashboard-grid {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    background-color: var(--background-800);
    border-radius: 1rem;
    padding: clamp(0.5rem, 2vw, 2rem);
}

.card {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap:1rem;
    background: var(--background-700);
    padding: 15px;
    border: 1px solid #333;
    border-radius: 0.5rem;
    box-shadow: 0 2px 7px var(--background-900);
    & h2 {
        font-size: var(--step-3);
        text-wrap: nowrap;
    }
}
/* EVENTS GRID */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* TILE */
.event-tile {
    background: var(--background-700);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 7px var(--background-900);

}

.event-tile:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--primary);
}

/* IMAGE */
.event-image {
    object-position: center;
    width: -webkit-fill-available;
    aspect-ratio: 2/1;
    object-fit: cover;
    border-bottom: 4px solid var(--primary);
}

/* CONTENT */
.event-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-headline {
    & h2 {
        font-size: var(--step-4);
        font-weight: bold;
        color: var(--text-black);
        background-color: var(--primary);
        margin-bottom: 0.5rem;
        padding: 0.5rem;
    }

    & h3 {
        font-size: var(--step-2);
    }
}

.event-meta {
    & span {
    display: block;
    font-size: var(--step-0);
    margin-top: 5px;
    }
    & i {
        color: var(--primary);
    }
}

.event-alert {
    margin-top: 10px;
    padding: 6px;
    border-bottom: 2px solid red;
    font-weight: bold;
    font-size: var(--step--1);

    & i {
        color: rgb(255, 0, 0);
        margin-right: .5rem;
    }
}

.event-reserve-button {
    font-size: var(--step-0);
}


form input, form textarea, form select {
    width: 100%;
    padding: 8px;
    margin: 6px 0;
    background: var(--background-900);
    border: 1px solid #333;
    color: var(--primary);
}

form button {
    margin-top: 10px;
    padding: 12px;
    width: 100%;
}

label {
    font-weight: bold; /* Tučný text pro důraz */
    margin-bottom: 5px; /* Malá mezera pod štítky */
}

.label-blue {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px; /* Zaoblené rohy */
    font-weight: bold;
    color: white; /* Text bílý */
    text-align: center;
    margin: 5px;
	background-color: blue;
	
}

.label-yellow {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px; /* Zaoblené rohy */
    font-weight: bold;
    color: black; /* Text bílý */
    text-align: center;
    margin: 5px;
	background-color: var(--primary);
	
	
}

.label-green {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px; /* Zaoblené rohy */
    font-weight: bold;
    color: white; /* Text bílý */
    text-align: center;
    margin: 5px;
	background-color: #2ecc71;
	
}

.label-red {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px; /* Zaoblené rohy */
    font-weight: bold;
    color: white; /* Text bílý */
    text-align: center;
    margin: 5px;
	background-color: #e74c3c;
	
}

.label-grey {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px; /* Zaoblené rohy */
    font-weight: bold;
    color: white; /* Text bílý */
    text-align: center;
    margin: 5px;
	background-color: #95a5a6;
	
}

.label-purple {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px; /* Zaoblené rohy */
    font-weight: bold;
    color: white; /* Text bílý */
    text-align: center;
    margin: 5px;
	background-color: purple;
	
}

.social-section {
    margin-top: 40px;
    padding: 25px;
    background: var(--background-700);
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-section h2 {
    font-size: var(--step-4);
}


.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    background: var(--background-600);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
    box-shadow: 0 2px 7px var(--background-800);

}

.social-links a i {
    margin-right: 6px;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.05);
}

@media screen and (max-width: 40em) {
    .events-grid {
    grid-template-columns: none
    }

    .dashboard-grid {
        flex-direction: column;
    }

    .card {
        width: -webkit-fill-available;
    }

    .login-container {
    margin-inline: 2rem;
    }

    .login-card {
    margin-inline: 1rem;

    & h2 {
        font-size: var(--step-3);
    }
}
    
}

