/* ================================================================= */
/* =            STYLY PRO STRÁNKU HISTORIE (REDESIGN)            = */
/* ================================================================= */

/* --- Základní obal a hlavní nadpis --- */
.historie-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: clamp(1rem, 4vw, 2rem);
}

.historie-wrapper h1 {
    text-align: center;
    margin-bottom: clamp(1.5rem, 5vw, 3rem);
}

/* --- Hlavní "Prosklená" Karta --- */
.historie-karta {
    background: rgba(2, 2, 2, 0.651);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(250, 206, 12, 0.3);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* .historie-karta::before {
    content: "";
    position: absolute;
    inset: 8px;
    background: url('../img/galerie/vybaveni_10.jpg') center / 100% 100% no-repeat;
    border-radius: 10px;
    pointer-events: none;
    z-index: -1;
} */
/* --- Nadpis uvnitř karty --- */
.story-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.story-header h2 {
    color: #f3d9a0;
    text-shadow: var(--text-shadow-nadpis);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-family: "Kaushan Script", serif;
}

/* --- Mřížka pro sekce příběhu --- */
.story-grid {
    display: grid;
    /* Sekce budou vždy pod sebou v jednom sloupci */
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
}

/* --- Styly pro jednotlivé sekce --- */
.story-section {

    padding: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.story-section h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #f3d9a0;
    font-family: "Alkatra", serif;
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(250, 206, 12, 0.4);
    text-shadow: var(--text-shadow-nadpis);
}

/* --- Barevné ikony --- */
.story-section h3 i {
    font-size: 1.5rem;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.fa-child {
    color: #f3a683;
}

/* Broskvová barva pro dětství */
.fa-water {
    color: #5b9dff;
}

/* Modrá pro vodu a budování */
.fa-fish {
    color: #81b29a;
}

/* Zelená pro současnost a ryby */


/* --- Obsah sekce --- */
.story-content p {

    margin: 0 0 1rem 0;
    line-height: 1.7;
    color: #e0e0e0;
    text-shadow: var(--text-shadow);
    text-align: justify;

    font-weight: 400;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* --- Závěrečný citát --- */
.story-conclusion {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(250, 206, 12, 0.2);
}

.story-conclusion .quote {
    font-style: italic;
    color: #ffffff;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    text-shadow: var(--text-shadow);
}

/* ================================================================= */
/* =                       RESPONZIVITA                            = */
/* ================================================================= */

/* --- Mobilní zobrazení --- */
@media (max-width: 767px) {
    .historie-wrapper {
        margin-top: 1rem;
        padding: 0.5rem;
    }

    .historie-karta {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }

    .story-header h2 {
        font-size: 1.3rem;
    }

    .story-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .historie-wrapper {
        padding: 0;
    }

    .historie-karta {
        padding: 1rem 0.75rem;
        border-radius: 0;
    }

    .story-header h2 {
        padding-top: 10px;
        /* fluidní menší velikost na extra úzkých displejích */
        font-size: clamp(1rem, 2.2vw, 1rem);

        /* volitelně: pokud chcete dynamicky zmenšovat přes třídu, přidejte mimo media query:
           .small-font .story-header h2 { font-size: 0.85rem !important; } */
    }

    .story-section {
        padding: 0;
    }

    .story-section h3 {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
        gap: 0.5rem;
    }

    .story-section h3 i {
        font-size: 1.2rem;
    }

    .story-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .story-conclusion .quote {
        font-size: 1rem;
    }
}

/* Extra úzké displeje: pod 250px přizpůsobit odstavce */
@media (max-width: 250px) {
    .story-content {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .story-content p {
        align-self: stretch;
        font-size: 0.75rem;
    }
}