/* style.css - Tábořiště & Klubovny */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

* {
    font-family: 'Google Sans Flex', sans-serif;
    box-sizing: border-box;
}

:root {
    --bg-light: #DAD7CD;
    --accent-light: #A3B18A;
    --primary: #588157;
    --text-dark: #3A5A40;
    --text-darker: #344E41;
    --white: #ffffff;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    background-color: var(--bg-light);
    color: var(--text-darker);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    flex: 1 0 auto;
}

h1, h2, h3 { color: var(--text-darker); }
a { color: var(--primary); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
/* --- KARTY --- */
.status-card, .info-section, .login-box {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary);
}
.login-box {
    max-width: 450px;       /* Omezí šířku, aby nebyl přes celou obrazovku */
    width: 90%;             /* Na mobilu zabere 90% */
    margin: 80px auto;      /* Odstrčí ho od vrchu a vycentruje vodorovně */
}
.status-card h2, .info-section h2 { margin-top: 0; color: var(--primary); }

/* --- FORMULÁŘE --- */
input, select, textarea {
    width: 100%; padding: 12px; margin: 5px 0 15px 0;
    border: 1px solid var(--accent-light); border-radius: 5px; font-size: 16px;
}

button {
    background-color: var(--primary); color: var(--white);
    padding: 12px 20px; border: none; border-radius: 5px;
    cursor: pointer; font-size: 16px; font-weight: 600;
    transition: background 0.2s;
}
button:hover { background-color: var(--text-dark); }
button.delete-btn { background-color: #8c2f2f; margin-left: 10px; }

/* --- PŘEPÍNAČ ROKŮ --- */
.year-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.year-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.year-btn.active, .year-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* --- FOTOGALERIE (SLIDER - FIXNÍ VELIKOST) --- */
.gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    background: #000; /* Černé pozadí, aby to vypadalo jako rámeček */
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Kontejner má PEVNOU výšku - obrázky s ní nehnou */
.slider-image-container {
    width: 100%;
    height: 550px; /* Fixní výška galerie */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slider-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fotka se celá vejde, neorzíne se */
    transition: opacity 0.3s ease-in-out;
}

/* Tlačítka (Šipky v kroužku) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3); /* Poloprůhledná bílá */
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 50%; /* Kroužek */
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(2px);
    padding: 0; /* Reset paddingu */
}

/* Hover efekt pro šipky */
.slider-btn:hover {
    background-color: #fff;
    color: var(--primary);
    transform: translateY(-50%) scale(1.1); /* Jemné zvětšení */
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Popisek fotky */
.slider-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 20px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none; /* Aby se dalo klikat skrz něj, kdyby něco */
}

.slider-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    z-index: 20;
}

/* --- KALENDÁŘ --- */
#calendar { background: var(--white); padding: 5px; border-radius: 10px; }
.fc-toolbar-title { color: var(--text-darker) !important; font-size: 1.4em !important; }
.fc-button-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.fc-day-other .fc-daygrid-day-number { color: #ddd; }

/* --- ADMIN SEZNAM --- */
#admin-event-list li {
    background: #fff; margin: 10px 0; padding: 15px;
    border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex; justify-content: space-between; align-items: center;
}

/* --- MODÁL --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
.modal-content { background-color: var(--white); margin: 10% auto; padding: 30px; border-radius: 10px; width: 90%; max-width: 500px; position: relative; border-left: 10px solid var(--primary); }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-btn:hover { color: var(--text-darker); }
.modal-label { font-weight: bold; color: var(--text-dark); display: block; margin-top: 15px; font-size: 0.9em; text-transform: uppercase; }

/* --- RESPONSIVITA --- */
@media (max-width: 768px) {
    .container { padding: 10px; }
    .status-card, .info-section { padding: 20px 15px; }
    
    /* Na mobilu menší galerie */
    .slider-image-container { height: 300px; }
    .slider-btn { width: 40px; height: 40px; font-size: 16px; }
    
    #admin-event-list li { flex-direction: column; align-items: flex-start; gap: 10px; }
    button.delete-btn { width: 100%; margin: 0; }
    
    .year-switcher { flex-wrap: wrap; }
    .year-btn { flex: 1; text-align: center; }
}
/* ... (zbytek CSS zůstává stejný) ... */

/* --- CALL TO ACTION TLAČÍTKO (Objednávka) --- */
.cta-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary); /* Zelená */
    color: var(--white);
    padding: 16px 32px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px; /* Kulaté rohy */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Jemný stín */
    transition: all 0.2s ease-in-out; /* Plynulý přechod */
    border: 2px solid transparent;
}

/* Efekt při najetí myší (Hover) */
.cta-button:hover {
    background-color: var(--text-dark); /* Ztmavnutí */
    transform: translateY(-2px); /* Jemné nadzvednutí */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Výraznější stín */
    color: var(--white);
    text-decoration: none;
}

.cta-button:active {
    transform: translateY(0); /* Při kliknutí se vrátí dolů */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-button i {
    font-size: 1em;
}

/* Na mobilu přes celou šířku */
@media (max-width: 768px) {
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}
/* --- FOOTER --- */
footer {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background-color: var(--primary);
    color: var(--white);
    margin-top: 40px;
    font-size: 0.9em;
    width: 100%;
}

footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}