/* ============================================================
   VideoFest.cz — kinematicky laděný design system
   ============================================================ */

:root {
    --bg: #0a0a0c;
    --bg-soft: #131319;
    --bg-elev: #1a1a22;
    --bg-card: #16161e;
    --border: #2a2a36;
    --border-soft: #20202a;

    --text: #f4f4f6;
    --text-soft: #b9b9c4;
    --text-mute: #777787;

    --gold: #f5c542;
    --gold-soft: #ffd97a;
    --red: #e50914;
    --red-soft: #ff3b47;
    --teal: #2dd4bf;

    --accent: var(--gold);

    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;

    --shadow: 0 10px 30px rgba(0,0,0,.45);
    --shadow-strong: 0 24px 60px rgba(0,0,0,.55);

    --max: 1240px;
    --gap: 24px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 0%, rgba(245,197,66,.06), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(229,9,20,.05), transparent 50%);
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
    color: var(--gold);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--gold-soft); }

p { margin: 0 0 1em; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -.01em;
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

ul, ol { color: var(--text-soft); padding-left: 1.2em; }
li { margin-bottom: .3em; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ───────── Skip link & a11y ───────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--gold);
    color: #111;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 6px;
    font-weight: 600;
}
.skip-link:focus { top: 10px; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ───────── Header ───────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -.01em;
}
.logo svg { width: 38px; height: 38px; }
.logo span small {
    display: block;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-mute);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
    align-items: center;
}
.main-nav a {
    color: var(--text-soft);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
}
.main-nav a.active,
.main-nav a:hover { color: var(--text); }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.btn-cta {
    display: inline-block;
    background: var(--gold);
    color: #111 !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    transition: transform .15s ease, background .15s ease;
}
.btn-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* ───────── Hero ───────── */
.hero {
    position: relative;
    padding: 96px 0 80px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(245,197,66,.15), transparent 60%),
        linear-gradient(180deg, transparent, var(--bg));
    z-index: -1;
}
.hero .eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245,197,66,.1);
    border: 1px solid rgba(245,197,66,.3);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: .04em;
    margin-bottom: 24px;
}
.hero h1 {
    max-width: 16ch;
    margin: 0 auto .5em;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold);
}
.hero .lead {
    max-width: 56ch;
    margin: 0 auto 36px;
    font-size: 1.15rem;
    color: var(--text-soft);
}
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all .18s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--gold);
    color: #111;
}
.btn-primary:hover { background: var(--gold-soft); color: #111; transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-elev); color: var(--text); border-color: var(--border); }

/* hero-stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    flex-wrap: wrap;
}
.hero-stats div {
    text-align: center;
}
.hero-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gold);
}
.hero-stats span {
    color: var(--text-mute);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ───────── Sections ───────── */
section { padding: 72px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-head h2 { margin: 0; }
.section-head .lead {
    color: var(--text-mute);
    max-width: 50ch;
    margin-top: 8px;
}
.section-head a { font-weight: 500; font-size: .95rem; }

/* ───────── Festival cards ───────── */
.fest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.fest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    color: var(--text);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
    min-height: 220px;
}
.fest-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--card-accent, var(--gold));
    transition: opacity .25s ease;
    opacity: .85;
}
.fest-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent, var(--gold));
    box-shadow: var(--shadow);
    color: var(--text);
}
.fest-card .country {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-mute);
    margin-bottom: 12px;
    font-weight: 500;
}
.fest-card .flag {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    background: var(--border);
}
.fest-card h3 {
    margin: 0 0 .4em;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.25;
}
.fest-card p {
    color: var(--text-soft);
    font-size: .95rem;
    margin-bottom: 18px;
}
.fest-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    font-size: .82rem;
}
.fest-card .meta time {
    color: var(--text-mute);
}
.fest-card .meta .month {
    color: var(--card-accent, var(--gold));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
}

/* ───────── Filter bar ───────── */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}
.filter-bar select,
.filter-bar input {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: .92rem;
    min-width: 160px;
}
.filter-bar input { flex: 1; min-width: 220px; }
.filter-bar select:focus,
.filter-bar input:focus { outline: none; border-color: var(--gold); }

.filter-info {
    font-size: .9rem;
    color: var(--text-mute);
    margin: 0 0 20px;
}

/* ───────── Festival detail page ───────── */
.fest-hero {
    position: relative;
    padding: 96px 0 64px;
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}
.fest-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, var(--accent-fade), transparent 60%);
    z-index: -1;
}
.breadcrumb {
    font-size: .85rem;
    color: var(--text-mute);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb span { color: var(--text-mute); margin: 0 6px; }
.fest-hero h1 { margin-bottom: .2em; }
.fest-hero h1 em { color: var(--accent); font-style: italic; }
.fest-hero .tagline {
    font-size: 1.15rem;
    color: var(--text-soft);
    max-width: 60ch;
    margin-bottom: 24px;
}
.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--text-soft);
}
.badge-accent {
    background: var(--accent-fade);
    border-color: var(--accent);
    color: var(--accent);
}

/* facts grid */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 36px 0;
}
.fact {
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}
.fact span {
    display: block;
    color: var(--text-mute);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 4px;
}
.fact strong {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
}

/* article body */
.fest-body {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    gap: 56px;
    margin: 56px 0;
}
.fest-body article h2 {
    margin-top: 1.6em;
    margin-bottom: .6em;
    padding-bottom: .35em;
    border-bottom: 1px solid var(--border-soft);
}
.fest-body article h2:first-child { margin-top: 0; }
.fest-body article p, .fest-body article li {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.fest-body aside {
    align-self: start;
    position: sticky;
    top: 96px;
}
.sidecard {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.sidecard h3 {
    margin-top: 0;
    font-family: var(--font);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-mute);
    font-weight: 600;
}
.sidecard ul { list-style: none; padding: 0; margin: 0; }
.sidecard li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.sidecard li:last-child { border-bottom: 0; }
.sidecard li b { color: var(--text); font-weight: 600; font-size: .92rem; }
.sidecard li span { color: var(--text-mute); font-size: .85rem; }

.winner-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}
.winner-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
}
.winner-list .year {
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}
.winner-list .name {
    color: var(--text);
    font-weight: 600;
}
.winner-list .name small {
    display: block;
    color: var(--text-mute);
    font-size: .82rem;
    font-weight: 400;
    margin-top: 2px;
}
.winner-list .fz-link {
    color: var(--accent);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px;
}
.winner-list .fz-link:hover { background: var(--bg-elev); border-color: var(--accent); }

/* CTA strip */
.cta-strip {
    background: linear-gradient(135deg, rgba(245,197,66,.08), rgba(229,9,20,.06));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 36px;
    margin: 48px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cta-strip > div { padding: 0; }
.cta-strip h3 {
    margin: 0 0 .4em;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}
.cta-strip p { font-size: .95rem; color: var(--text-soft); margin-bottom: 14px; }
.cta-strip a.btn-link {
    color: var(--gold);
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

/* partner block */
.partners-band {
    background: var(--bg-soft);
    padding: 64px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.partner-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.partner-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    transition: border-color .25s ease, transform .25s ease;
    color: var(--text);
}
.partner-card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--text); }
.partner-card h3 {
    color: var(--text);
    margin: 0 0 .4em;
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 600;
}
.partner-card p {
    color: var(--text-soft);
    font-size: .92rem;
    margin-bottom: 12px;
}
.partner-card .arrow {
    color: var(--gold);
    font-weight: 600;
    font-size: .9rem;
}

/* ───────── Footer ───────── */
.site-footer {
    background: #07070a;
    padding: 56px 0 28px;
    border-top: 1px solid var(--border-soft);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    font-family: var(--font);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-mute);
    margin: 0 0 16px;
    font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a {
    color: var(--text-soft);
    font-size: .92rem;
}
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { font-size: .92rem; max-width: 38ch; }
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-mute);
    font-size: .85rem;
}

/* ───────── Misc ───────── */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 14px;
}
.tag-list span {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    color: var(--text-mute);
    font-size: .72rem;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.calendar-strip {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    margin-top: 24px;
}
.cal-month {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 14px 8px;
    text-align: center;
    color: var(--text-mute);
    font-size: .8rem;
}
.cal-month strong {
    display: block;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.cal-month.has-event { border-color: var(--gold); color: var(--text); }
.cal-month.has-event strong { color: var(--gold); }
.cal-month a { color: inherit; display: block; }

/* responsive */
@media (max-width: 980px) {
    .fest-body { grid-template-columns: 1fr; }
    .fest-body aside { position: static; }
    .cta-strip { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .calendar-strip { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .main-nav {
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: rgba(10,10,12,.97);
        backdrop-filter: blur(12px);
        padding: 20px 24px 32px;
        border-bottom: 1px solid var(--border-soft);
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--border-soft); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 14px 0; font-size: 1.05rem; }
    .main-nav a.active::after { display: none; }
    .hero { padding: 64px 0 48px; }
    .hero-stats { gap: 28px; }
    section { padding: 48px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .winner-list li { grid-template-columns: 48px 1fr; }
    .winner-list .fz-link { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 480px) {
    .calendar-strip { grid-template-columns: repeat(4, 1fr); }
    .filter-bar { padding: 14px; }
    .filter-bar select, .filter-bar input { min-width: 100%; }
    .hero h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* fade-in for content */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fest-card { animation: fadeUp .5s ease backwards; }
.fest-grid .fest-card:nth-child(1) { animation-delay: .03s; }
.fest-grid .fest-card:nth-child(2) { animation-delay: .07s; }
.fest-grid .fest-card:nth-child(3) { animation-delay: .11s; }
.fest-grid .fest-card:nth-child(4) { animation-delay: .15s; }
.fest-grid .fest-card:nth-child(5) { animation-delay: .19s; }
.fest-grid .fest-card:nth-child(6) { animation-delay: .23s; }

/* 404 */
.center-card {
    max-width: 560px;
    margin: 80px auto;
    text-align: center;
    padding: 56px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
}
.center-card h1 { font-size: 4rem; color: var(--gold); margin-bottom: 0; }

.prose { max-width: 70ch; }
.prose p, .prose li { font-size: 1.05rem; }
