@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@300;400;500;700&display=swap');

/* =========================================
   ZÁKLADNÍ PROMĚNNÉ A RESET
   ========================================= */
:root {
    --primary-dark: #2d4c2e; /* Lesní tmavě zelená */
    --accent-color: #d35400; /* Přírodní sytě oranžová místo modré */
    --text-color: #333333;
    --bg-light: #f4f1ea; /* Krémová, papírová barva pozadí */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    /* Následující 3 řádky zaručí, že patička bude vždy úplně dole, i když je stránka prázdná */
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

h1, h2, h3, .logo-text {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.5px;
}

/* =========================================
   NAVIGACE
   ========================================= */
nav {
    background-color: #fcfbf8;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(45, 76, 46, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark);
}

.logo-text {
    font-size: 1.8rem;
    color: var(--primary-dark);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* =========================================
   HLAVIČKY (HERO SEKCE A PAGE HEADERS)
   ========================================= */
/* Používá se na domovské stránce a "O oddílu" */
.hero {
    height: 400px;
    background: linear-gradient(rgba(45,76,46,0.6), rgba(45,76,46,0.7)), 
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80&w=1470');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f4f1ea;
    text-align: center;
    border-bottom: 8px solid var(--accent-color);
}

.hero h1 {
    font-size: 4.5rem;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Používá se na podstránkách bez velké fotky (např. Přihláška) */
.page-header {
    background-color: var(--primary-dark);
    color: #f4f1ea;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 6px solid var(--accent-color);
}

.page-header h1 {
    margin: 0;
    font-size: 3rem;
    letter-spacing: 2px;
}

/* =========================================
   OBSAHOVÉ SEKCE A ROZLOŽENÍ
   ========================================= */
.main-content, .content-container {
    flex: 1; /* Roztáhne obsah, aby patička zůstala dole */
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Třídy z hlavní stránky (index.html) */
.section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

.intro {
    text-align: center;
    background-color: #fcfbf8;
    border-radius: 15px;
    padding: 40px;
    margin-top: -50px; 
    box-shadow: 0 10px 30px rgba(45,76,46,0.15);
}

.info-text {
    font-size: 1.15rem;
    color: #444;
    text-align: center;
    margin-bottom: 40px;
}

/* =========================================
   MŘÍŽKY A IKONY (KULATÁ TLAČÍTKA)
   ========================================= */
/* Sjednocené styly pro kruhová tlačítka z Homepage i O oddílu */
.icon-grid, .features-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap;
    background-color: transparent;
}

.icon-item, .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.icon-item:hover, .feature-item:hover {
    transform: translateY(-8px);
}

.icon-circle, .circle-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #eae5d9;
    border: 8px solid #f4f1ea;
    box-shadow: 0 8px 20px rgba(45,76,46,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.icon-item:hover .icon-circle {
    border-color: var(--accent-color);
}

.icon-circle img, .circle-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-label, .feature-item span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--primary-dark);
}

/* =========================================
   FORMULÁŘ (PŘIHLÁŠKA)
   ========================================= */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: #fcfbf8;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(45,76,46,0.1);
    border-top: 8px solid var(--accent-color);
}

.form-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #eae5d9;
    border-left: 6px solid var(--accent-color);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.05);
}

.form-section h3 { 
    margin-top: 0; 
    color: var(--primary-dark);
    font-size: 1.6rem;
    border-bottom: 2px dashed #eae5d9;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--primary-dark); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eae5d9;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fdfdfc;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.15);
}

.radio-group { 
    background: #fcfbf8;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #eae5d9;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.radio-group label { display: inline; font-weight: normal; margin-left: 5px; cursor: pointer;}
.radio-group input[type="radio"] { cursor: pointer; transform: scale(1.2); }

.radio-group:hover {
    background: #f4f1ea;
}

/* =========================================
   TLAČÍTKA A OVLÁDACÍ PRVKY
   ========================================= */
.btn {
    background: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover { 
    background: #ba4a00; 
    transform: translateY(-2px);
}

.btn-submit {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white !important;
    padding: 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 20px;
    outline: none;
    -webkit-appearance: none;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.4);
    filter: brightness(1.1);
}

.btn-submit:active {
    transform: translateY(0);
}

/* --- STYL PRO OVĚŘOVACÍ TLAČÍTKO --- */
.verify-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

#btnOverit, #btnHledat {
    background-color: var(--primary-dark);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    white-space: nowrap;
}

#btnOverit:hover, #btnHledat:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

#vysledekOvereni {
    font-size: 0.9rem;
    margin-top: 8px;
    min-height: 20px;
}

/* =========================================
   PROFILY VEDOUCÍCH
   ========================================= */
.leader-card {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 0;
    border-top: 2px dashed #eae5d9;
    border-bottom: 2px dashed #eae5d9;
    margin-bottom: 20px;
}

.leader-image {
    flex: 0 0 300px;
}

.leader-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(45,76,46,0.15);
}

.leader-info {
    flex: 1;
}

.leader-info h2 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.leader-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

@media (max-width: 768px) {
    .leader-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .leader-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
}

/* --- STYL PRO TEXTAREA POD JMÉNY DĚTÍ --- */
.child-textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 2px solid #eae5d9;
    border-radius: 10px;
    background-color: #fff;
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* --- PROSTOR KOLEM CHECKBOXŮ V SEZNAMU --- */
#seznamDetiCheckboxy .radio-group {
    margin-bottom: 12px;
    padding: 15px;
    border-left: 6px solid #eae5d9;
}

#seznamDetiCheckboxy .radio-group:has(input:checked) {
    border-left-color: var(--accent-color);
    background-color: #fdf6e3;
}

/* --- VÝRAZNĚJŠÍ TLAČÍTKO PRO NOVÉ DÍTĚ --- */
.add-new-child-box {
    background: #f4f1ea;
    border: 2px dashed #b9b2a0;
    transition: all 0.2s;
}

.add-new-child-box:hover {
    border-color: var(--accent-color);
    background: #eae5d9;
}

/* --- STYLOVÁNÍ STORNO TEXTU --- */
.storno-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    background: #fff5f5;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #fed7d7;
    margin-bottom: 15px;
}

/* Kontejner pro vyhledávání */
.search-container {
    background: #fff;
    border: 2px solid #eae5d9;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(45,76,46,0.08);
    padding: 25px !important;
}

.search-help {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Políčko s ikonou */
.input-with-icon {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.input-with-icon .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 14px 14px 45px !important;
    border: 2px solid #eae5d9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-with-icon input:focus {
    border-color: var(--accent-color);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.15);
}

/* --- STYLY PRO STRÁNKU VÝPRAV --- */
.trips-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.trip-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(45,76,46,0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border-top: 8px solid var(--accent-color);
}

.trip-header {
    background-color: #fcfbf8;
    padding: 20px 25px;
    border-bottom: 2px dashed #eae5d9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.trip-header h2 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 2rem;
}

.trip-date {
    background: var(--primary-dark);
    color: #f4f1ea;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
}

.trip-body {
    padding: 25px;
}

.info-item {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
}

.equipment {
    background: #fdf6e3;
    padding: 15px;
    border-radius: 10px;
    border-left: 6px solid #f39c12;
}

.trip-footer {
    padding: 0 25px 25px 25px;
}

/* Kalendář */
.calendar-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.calendar-wrapper {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(45,76,46,0.1);
    margin-top: 20px;
    border: 2px solid #eae5d9;
}

.calendar-placeholder iframe {
    border-radius: 10px;
}

/* --- STYLY PRO 404 STRÁNKU --- */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.error-container {
    max-width: 600px;
}

.error-code {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 10rem;
    color: var(--primary-dark);
    line-height: 1;
    opacity: 0.05;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-container h1 {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.error-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* --- STYLY PRO TÁBOROVOU STRÁNKU --- */
.capacity-section {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.capacity-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(45,76,46,0.1);
    text-align: center;
    border: 2px solid #eae5d9;
}

.capacity-box h3 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 2rem;
}

/* Progress bar */
.progress-container {
    background-color: #eae5d9;
    border-radius: 25px;
    height: 30px;
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #f39c12, var(--accent-color));
    height: 100%;
    border-radius: 25px;
    transition: width 0.5s ease-in-out;
}

.capacity-text {
    font-size: 1.1rem;
    color: #555;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* PATIČKA */
footer {
    background-color: var(--primary-dark);
    color: #f4f1ea;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    border-top: 6px solid var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links svg {
    width: 32px;
    height: 32px;
    display: block;
    fill: #f4f1ea;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(5deg);
}

.social-links a:hover svg {
    opacity: 1;
    fill: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(211, 84, 0, 0.5));
}

/* =========================================
   RESPONZIVITA (PRO MOBILY A TABLETY)
   ========================================= */

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        padding: 0;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .trip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form-section {
        margin: 10px;
        padding: 20px;
    }

    .input-group {
        flex-direction: column;
    }

    #btnHledat {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .icon-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .social-links {
        gap: 15px;
    }
}