/* ---------------------------------------------------
1) RESET + FONTY
--------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lokální fonty jako záloha (pokud máš složku fonty/) */
@font-face {
    font-family: "Rubik";
    src: url("fonty/RubikDistressed-Regular.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Ubuntu";
    src: url("fonty/Ubuntu-Regular.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("fonty/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-display: swap;
}

/* ---------------------------------------------------
2) ZÁKLAD STRÁNKY
--------------------------------------------------- */

html, body {
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    color: #ffffff;
    background-color: #0a0a0a;
    font-family: "Source Sans 3", "Ubuntu", sans-serif;
}

body {
    background-color: #080808;
    background-image: url("obrazky/pozadi.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay upraví pro.css (vignette + hloubka) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,8,0.5) 0%, rgba(8,8,8,0.2) 30%, rgba(8,8,8,0.15) 60%, rgba(8,8,8,0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ---------------------------------------------------
3) VRCHNÍ LIŠTA
--------------------------------------------------- */

.top-bar {
    position: relative;
    height: 100px;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    padding-top: max(0px, env(safe-area-inset-top));
    z-index: 3000;
}

.top-bar-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.festival-date {
    font-family: "Oswald", "Rubik", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

/* Obal loga – zabírá v layoutu stejné místo, uvnitř je logo zvětšené (scale) */
.top-bar-logo-wrap {
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.top-bar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Logo uvnitř obalu – vizuálně zvětšené scale, header se nehýbe */
.top-bar .top-bar-logo-wrap .top-bar-logo,
.top-bar-logo-wrap img.top-bar-logo {
    height: 90px !important;
    min-height: 90px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    transform: scale(4) translateY(8px);
}

/* Fallback pokud wrap chybí (staré stránky) */
.top-bar .top-bar-logo,
img.top-bar-logo {
    height: 90px !important;
    min-height: 90px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.countdown {
    font-family: "Oswald", "Rubik", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

/* ---------------------------------------------------
4) DIVIDER
--------------------------------------------------- */

.divider {
    position: relative;
    height: 50px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(255,120,0,0.25) 100%
    );
    border-bottom: 2px solid rgba(255,120,0,0.8);
    box-shadow: 0 4px 12px rgba(255,120,0,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2500;
    overflow: visible;
}

.divider-left {
    flex-shrink: 0;
    white-space: nowrap;
    font-family: "Oswald", "Rubik", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 8px 18px;
    border: 1px solid #ff7a00;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.divider-left:hover {
    background: #ff7a00;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.5);
    transform: translateY(-1px);
}

.divider-left:focus-visible {
    outline: 2px solid #ffd200;
    outline-offset: 2px;
}

.divider-nav {
    display: flex;
    gap: 24px;
}

.divider-nav a {
    font-family: "Oswald", "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.divider-nav a:hover {
    color: #ff7a00;
}

.divider-nav a.active {
    color: #ff7a00;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(255, 122, 0, 0.4);
}

/* ---------------------------------------------------
5) OBSAH
--------------------------------------------------- */

#page-wrapper {
    margin-top: 0;
    padding: 50px;
    padding-bottom: max(50px, env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ---------------------------------------------------
5b) FOOTER – slabý, lišta nahoře, © 2026
--------------------------------------------------- */
.site-footer {
    text-align: center;
    padding: 28px 20px 36px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: rgba(255, 122, 0, 0.7);
}

/* ---------------------------------------------------
6) TYPOGRAFIE
--------------------------------------------------- */

h1, h2, h3 {
    font-family: "Oswald", "Montserrat", sans-serif;
    font-weight: 600;
    color: #FF5E00;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    color: #ffffff;
}

#page-wrapper a {
    color: #ffd200;
    text-decoration: none;
    transition: 0.2s ease;
}

#page-wrapper a:hover {
    color: #ff7a00;
}

/* ---------------------------------------------------
7) MENU BUTTON (OPRAVENO – vyšší z-index)
--------------------------------------------------- */

.menu-button {
    display: none;
    font-family: "Oswald", "Rubik", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 6px 14px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    transition: 0.2s ease;
    position: relative;
    z-index: 20000; /* FIX */
}

.menu-button:hover {
    background: #ffffff;
    color: #000000;
}

.menu-button.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* ---------------------------------------------------
8) MOBILE MENU (OPRAVENO – vyšší z-index)
--------------------------------------------------- */

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 19000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 90vh;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-family: "Oswald", "Rubik", sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.2s ease;
}

.mobile-menu a:hover {
    color: #ff7a00;
}

/* ---------------------------------------------------
9) VIDEO SEKCE
--------------------------------------------------- */

.video-section-title {
    font-family: "Oswald", "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 60px;
    color: #FF5E00;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    margin-top: 40px;
    text-align: center;
}

.video-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.video-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.video-wrapper {
    flex: 1;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 3px solid #ff7a00;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.3s ease;
}

.video-wrapper:hover {
    box-shadow: 0 0 28px rgba(255, 122, 0, 0.45);
    transform: scale(1.02);
}

.video-center {
    width: 560px;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 3px solid #ff7a00;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
    transition: box-shadow 0.35s ease, transform 0.3s ease;
}

.video-center:hover {
    box-shadow: 0 0 28px rgba(255, 122, 0, 0.45);
    transform: scale(1.02);
}

.video-wrapper iframe,
.video-center iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------------------------------------------------
   DESKTOP – jeden kompaktní header, logo v liště, menu hned pod ním
--------------------------------------------------- */
@media (min-width: 992px) {
    .top-bar {
        height: 100px;
        padding: 0 24px;
        padding-top: max(0px, env(safe-area-inset-top));
    }

    .top-bar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 100%;
    }

    .top-bar-logo-wrap {
        height: 80px;
    }

    .top-bar .top-bar-logo-wrap .top-bar-logo,
    .top-bar-logo-wrap img.top-bar-logo {
        height: 80px !important;
        min-height: 80px !important;
        transform: scale(4) translateY(8px);
    }

    .festival-date {
        position: static;
        margin: 0;
        font-size: 26px;
    }

    .countdown {
        position: static;
        margin: 0;
        font-size: 26px;
    }
}

/* ---------------------------------------------------
   NOTEBOOK (992px–1199px) – logo menší, nepřekrývá sekci Domů
--------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
    .top-bar {
        overflow: hidden;
    }

    .top-bar-logo-wrap {
        max-width: 220px;
        flex-shrink: 0;
    }

    .top-bar .top-bar-logo-wrap .top-bar-logo,
    .top-bar-logo-wrap img.top-bar-logo {
        transform: scale(3.2) translateY(8px);
    }

    .festival-date,
    .countdown {
        font-size: 24px;
    }

    .divider-nav a {
        font-size: 15px;
        padding: 6px 12px;
    }
}

/* ---------------------------------------------------
11) DESKTOP XXL
--------------------------------------------------- */

@media (min-width: 1400px) {
    .top-bar {
        height: 110px;
        padding-left: 24px;
    }

    .top-bar-logo-wrap {
        height: 90px;
    }

    .top-bar .top-bar-logo-wrap .top-bar-logo,
    .top-bar-logo-wrap img.top-bar-logo {
        height: 90px !important;
        min-height: 90px !important;
        transform: scale(4) translateY(8px);
    }

    .festival-date,
    .countdown {
        font-size: 30px;
    }

    .divider {
        height: 56px;
    }

    .divider-left {
        font-size: 26px;
        padding: 10px 22px;
        border-width: 3px;
    }

    .divider-nav a {
        font-size: 18px;
        letter-spacing: 2px;
    }

    #page-wrapper {
        font-size: 40px;
        padding: 40px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 80px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 40px;
    }

    p {
        font-size: 22px;
        line-height: 1.4;
    }
}

/* ---------------------------------------------------
ULTRA CLEAN SMOOTH SCROLL
--------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

/* ---------------------------------------------------
JEMNÝ FADE-IN SEKCÍ
--------------------------------------------------- */

.section-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Aktivní položka v mobilním menu */
.mobile-menu a.active {
    color: #ff7a00;
    font-weight: bold;
}

/* Focus pro přístupnost (klávesnice) */
a:focus-visible,
.divider-left:focus-visible,
.menu-button:focus-visible {
    outline: 2px solid #ffd200;
    outline-offset: 2px;
}

/* ---------------------------------------------------
   TABLET (769px–991px) – menší logo, aby nepřekrývalo „Domů“
--------------------------------------------------- */
@media (min-width: 769px) and (max-width: 991px) {
    .top-bar {
        overflow: hidden;
    }

    .festival-date,
    .countdown {
        font-size: 28px;
    }
    .top-bar-logo-wrap {
        height: 90px;
        max-width: 200px;
        flex-shrink: 0;
    }

    .top-bar .top-bar-logo-wrap .top-bar-logo,
    .top-bar-logo-wrap img.top-bar-logo {
        height: 90px !important;
        min-height: 90px !important;
        transform: scale(3) translateY(8px);
    }

    .divider-nav {
        gap: 16px;
    }
    .divider-nav a {
        font-size: 14px;
    }
    .video-section-title {
        font-size: 42px;
    }
}

/* ---------------------------------------------------
   MOBIL + MALÉ TABLETY
--------------------------------------------------- */
@media (max-width: 768px) {

:root {
    /* VÝŠKY – přizpůsobí se velikosti displeje (clamp = na všech mobilech OK) */
    --hotbar-height: clamp(72px, 18vmin, 100px);
    --divider-height: clamp(44px, 10vmin, 50px);

    /* LOGO – víc vlevo, na výšku lišty */
    --logo-height: 100%;
    --logo-top: 0;
    --logo-left: 2px;

    /* ODSAZENÍ LIŠTY – podle šířky displeje */
    --bar-padding-x: clamp(8px, 2.5vw, 14px);
    --date-right: clamp(8px, 2.5vw, 12px);
    --count-right: clamp(8px, 2.5vw, 12px);

    /* DATUM A ODPOČET – o kousek výš */
    --date-top: 20px;
    --count-top-gap: 18px;

    /* VELIKOSTI TEXTŮ – datum a odpočet */
    --hotbar-date-size: clamp(18px, 4.5vw, 26px);
    --hotbar-countdown-size: clamp(18px, 4.5vw, 26px);

    /* TEXTY OBSAHU */
    --mobile-h1-size: clamp(26px, 6vw, 40px);
    --mobile-h2-size: clamp(22px, 5vw, 30px);
    --mobile-h3-size: clamp(20px, 4.5vw, 30px);
    --mobile-p-size:  clamp(16px, 4vw, 20px);
}

/* VRCHNÍ LIŠTA – přizpůsobí se šířce displeje */
.top-bar {
    height: var(--hotbar-height);
    padding: 0 var(--bar-padding-x);
    background: rgba(0, 0, 0, 0.85);
    position: relative;
    z-index: 2000;
    overflow: hidden;
}

/* vnitřek už nepotřebuje flex – vše řeší absolutní pozice */
.top-bar-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* LOGO VLEVO – víc vlevo, výška = lišta */
.top-bar-logo-wrap {
    position: absolute;
    height: var(--hotbar-height);
    width: calc(100% - 120px);
    max-width: none;
    top: 0;
    left: var(--logo-left);
    transform: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.top-bar-logo-wrap .top-bar-logo,
.top-bar-logo-wrap img.top-bar-logo {
    height: 100% !important;
    max-height: var(--hotbar-height) !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: left top;
    transform: scale(2.25) translateY(-18px) !important;
    transform-origin: left top;
}

/* DATUM VPRAVO NAHOŘE */
.festival-date {
    position: absolute;
    top: var(--date-top);
    right: var(--date-right);
    font-size: var(--hotbar-date-size);
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
    margin: 0;
}

/* ODPOČET POD DATEM */
.countdown {
    position: absolute;
    top: calc(var(--date-top) + var(--count-top-gap));
    right: var(--count-right);
    font-size: var(--hotbar-countdown-size);
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
    margin: 0;
}

/* DIVIDER */
.divider {
    height: var(--divider-height);
    padding: 0 var(--bar-padding-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2000;
}

/* VSTUPENKY – kompaktní, skoro kulatý, vejde se do lišty */
.divider-left {
    padding: 6px 14px;
    font-size: 14px;
    border-width: 1px;
    border-radius: 999px;
}

/* MENU BUTTON – min. 44px touch target, úplně vpravo */
.menu-button {
    display: block;
    position: relative;
    z-index: 3000;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* SKRYTÍ DESKTOP MENU */
.divider-nav {
    display: none;
}

/* HEADER WRAPPER – obal pro top-bar + divider + menu (menu pod ním) */
.header-wrapper {
    position: relative;
}

/* MOBILE MENU – absolute, vždy přesně pod headerem (bottom of .header-wrapper) */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 2500;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s ease-out, opacity 0.35s ease-out;
    margin: 0;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.mobile-menu.active {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
    padding-top: 6px;
    padding-bottom: 20px;
    padding-left: 12px;
    padding-right: 12px;
}

.mobile-menu a {
    font-size: 18px;
    padding: 12px 20px;
}

/* OBSAH */
#page-wrapper {
    padding: 20px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
}

h1 { font-size: var(--mobile-h1-size) !important; }
h2 { font-size: var(--mobile-h2-size) !important; }
h3 { font-size: var(--mobile-h3-size) !important; }
p  { font-size: var(--mobile-p-size)  !important; line-height: 1.35 !important; }

/* VIDEA NA DOMOVSKÉ STRÁNCE – MOBIL */
.video-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.video-wrapper,
.video-center {
    width: 100% !important;
    max-width: 100% !important;
}

.video-wrapper iframe,
.video-center iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
}

/* BOXY NA MOBILU – ne roztažené na celou šířku, přiměřená šířka */
.info-section,
.kontakt-section {
    max-width: min(100%, 440px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.info-box,
.map-section {
    max-width: 100%;
    box-sizing: border-box;
}

.kontakt-box {
    max-width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
}

.program-section .program-day-wrapper {
    max-width: min(100%, 440px);
    margin-left: auto;
    margin-right: auto;
}

.program-section .program-day {
    max-width: 100%;
}

}
