/* =====================================================
   BP | Zábranský 2026 — Stylesheet
   Barevná paleta inspirovaná příručkou:
   Krémová (#F5EEC8), Fialová (#8C20C8), Zlatavá (#9B8A4A)
   ===================================================== */

:root {
    --cream:       #F5EEC8;
    --cream-dark:  #EAE0B0;
    --purple:      #8C20C8;
    --purple-dark: #6A159A;
    --purple-light:#C86EFF;
    --gold:        #9B8A4A;
    --gold-light:  #C4AD68;
    --text:        #3A2D1A;
    --text-muted:  #6B5A3A;
    --white:       #FFFFFF;
    --shadow:      rgba(60, 40, 10, 0.12);
    --radius:      10px;
    --radius-lg:   16px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Barlow', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple-dark); text-decoration: underline; }

strong { color: var(--text); }

/* ---- Navbar ---- */
.navbar {
    background: var(--text);
    border-bottom: 3px solid var(--purple);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.6rem 0;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--cream) !important;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(245,238,200,0.85);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--cream); }

.nav-links a.nav-highlight {
    background: var(--purple);
    color: var(--white);
    border-radius: 5px;
}
.nav-links a.nav-highlight:hover { background: var(--purple-dark); }

.nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid rgba(245,238,200,0.5);
    color: var(--cream);
    font-size: 1.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
}

/* ---- Header ---- */
#header {
    background: var(--cream-dark);
    border-bottom: 4px solid var(--gold);
    padding: 3rem 1.5rem 2.5rem;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.braille-deco {
    display: flex;
    gap: 5px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.br-dot {
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
}
.br-dot.lg { width: 14px; height: 14px; }
.br-dot.sm { width: 7px; height: 7px; margin-top: 3.5px; }

.header-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

#header h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--purple);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

#header h2 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--gold);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1.4rem;
}

.header-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    align-items: center;
    margin-bottom: 0 !important;
}

.header-meta .sep { color: var(--gold); }

/* ---- Main & Container ---- */
main { padding: 2.5rem 1.5rem 4rem; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px var(--shadow);
    padding: 2.5rem 2.5rem;
}

/* ---- Sections ---- */
.section-block { margin-bottom: 0; }

.section-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--purple);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--gold-light);
    display: inline-block;
}

.section-head-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head-row .section-title {
    margin-bottom: 0;
    flex: 1;
}

/* ---- Language Toggle ---- */
.lang-input { display: none; }

.lang-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--cream-dark);
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    user-select: none;
}
.lang-btn:hover { background: var(--gold-light); color: var(--white); }

/* Show/hide language content */
.lang-en { display: none; }
.lang-input:checked ~ * .lang-en,
.lang-input:checked + label .lang-en { display: inline; }
.lang-input:checked ~ * .lang-cz,
.lang-input:checked + label .lang-cz { display: none; }

/* Scoped to section-head-row */
.section-block .lang-input:checked ~ .text-cz { display: none; }
.section-block .lang-input:checked ~ .text-en { display: block; }
.text-en { display: none; }
.text-cz { display: block; }

/* ---- Info Cards ---- */
.info-card, .keywords-card {
    background: var(--cream);
    border: 2px solid var(--gold-light);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
}

.card-title {
    font-size: 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
}

.info-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.info-table td { padding: 0.35rem 0.3rem; vertical-align: top; }
.info-table td:first-child { color: var(--text-muted); width: 50%; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    background: var(--cream-dark);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.04em;
}

/* ---- Styled List ---- */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}
.styled-list li {
    padding: 0.4rem 0 0.4rem 1.6rem;
    position: relative;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.95rem;
}
.styled-list li::before {
    content: "▸";
    color: var(--purple);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 0.55rem;
}
.styled-list li:last-child { border-bottom: none; }

/* ---- Accordion ---- */
.accordion {
    border: 2px solid var(--gold-light);
    border-radius: var(--radius);
    margin-bottom: 0.9rem;
    overflow: hidden;
}

.accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gold);
    color: var(--white);
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.accordion-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}
.accordion-head::-webkit-details-marker { display: none; }

.acc-icon {
    font-size: 1.2rem;
    transition: transform 0.25s;
    color: rgba(255,255,255,0.8);
}
details:not([open]) .acc-icon { transform: rotate(-90deg); }

.accordion-body { padding: 1.1rem 1.4rem; }

/* ---- Results ---- */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.result-palette {
    background: var(--cream);
    border: 2px solid var(--gold-light);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
}

.palette-group { margin-bottom: 1rem; }
.palette-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}
.palette { display: flex; gap: 5px; margin-bottom: 6px; }
.swatch {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ---- Conclusion ---- */
.conclusion-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.highlight-box {
    background: var(--cream);
    border-left: 5px solid var(--purple);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.4rem 1.4rem 1.2rem;
}
.highlight-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}
.highlight-source {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

/* ---- Downloads ---- */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.download-group-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dl-icon { font-size: 1.1rem; }

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    border: 2px solid transparent;
}
.dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
    opacity: 0.92;
}

.dl-primary {
    background: var(--purple);
    color: var(--white) !important;
}
.dl-accent {
    background: var(--gold);
    color: var(--white) !important;
}
.dl-model {
    background: var(--cream);
    color: var(--text) !important;
    border-color: var(--gold-light);
}
.dl-model:hover { background: var(--cream-dark); }

.dl-btn-label { flex: 1; }
.dl-btn-type {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.8rem;
    white-space: nowrap;
}
.dl-model .dl-btn-type { background: var(--gold-light); color: var(--white); }

/* ---- Divider ---- */
.divider {
    border: none;
    border-top: 2px solid var(--cream-dark);
    margin: 2.5rem 0;
}

/* ---- Footer ---- */
footer {
    background: var(--text);
    border-top: 3px solid var(--purple);
    color: rgba(245,238,200,0.8);
    padding: 1.4rem 1.5rem;
    font-size: 0.875rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
footer a { color: var(--purple-light); }
footer a:hover { color: var(--cream); }
.footer-copy { color: rgba(245,238,200,0.5); margin: 0; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
    .section-row,
    .results-grid,
    .conclusion-grid,
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .col-right { order: -1; }

    .info-card, .keywords-card { max-width: 100%; }
}

@media (max-width: 700px) {
    .container { padding: 1.5rem 1.2rem; }

    main { padding: 1.5rem 0.8rem 3rem; }

    #header { padding: 2rem 1rem 1.8rem; }

    .header-meta { flex-direction: column; gap: 0.2rem; }
    .header-meta .sep { display: none; }

    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: rgba(255,255,255,0.04);
        border-radius: 6px;
        margin-top: 0.3rem;
        padding: 0.4rem 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.5rem 1rem; }

    .nav-inner { flex-wrap: wrap; }

    .section-title { font-size: 1.3rem; }

    .dl-btn { font-size: 0.84rem; }
}

@media (max-width: 480px) {
    .palette { flex-wrap: wrap; }
    .swatch { width: 30px; height: 30px; }

    .braille-deco { gap: 4px; }
    .br-dot.lg { width: 11px; height: 11px; }
    .br-dot.sm { width: 6px; height: 6px; }
}