/* --- ZÁKLADNÍ NASTAVENÍ --- */
:root {
    --bg-dark: #15181a;
    --antracit: #262b2f;
    --accent: #f3f5f7;
    --accent-blue: #1f3342;
    --accent-blue-soft: #3a5364;
    --panel-bg: #1e2327;
    --panel-soft: #2d343a;
    --text-muted: #a7b0b8;
    --border-soft: #45515b;
    --transition-speed: 1.5s;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
    --font-heading: 'Cinzel Decorative', serif;
    --font-body: 'Special Elite', system-ui;
    --topbar-height: 72px;
    --banner-hover-shift: 21%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Special Elite', serif;
    background-color: var(--antracit);
    color: var(--accent);
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* --- HLAVIČKA (HEADER) --- */
header {
    height: var(--topbar-height);
    background: var(--antracit);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: min(92%, 1400px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-login-link {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.topbar-login-link:hover,
.topbar-login-link:focus-visible {
    color: #fff;
    opacity: 1;
}

.logo-mark {
    display: flex;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    line-height: 0;
}

.logo-mark .logo-svg-mark {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hamburger menu */
.menu-trigger {
    width: 30px;
    height: 22px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1100;
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s var(--easing);
}

.menu-trigger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-trigger.active span:nth-child(2) { opacity: 0; }
.menu-trigger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* --- MENU OVERLAY (OPRAVENO CENTROVÁNÍ) --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98); 
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    transition: all 0.4s ease;
    z-index: 1050;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-content {
    width: 100%; /* Roztažení pro vnitřní centrování */
}

.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;    /* Horizontální střed pro LI */
    justify-content: center;
}

.menu-content ul li {
    margin: 15px 0;
    width: 100%;            /* LI na celou šířku */
    display: flex;
    justify-content: center; /* Vystředění odkazu v LI */
}

.menu-content ul li a {
    font-family: var(--font-body) !important;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    color: white !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
    text-align: center;
    
    transition: 
        letter-spacing 0.4s var(--easing), 
        transform 0.4s var(--easing), 
        color 0.4s var(--easing),
        text-shadow 0.4s var(--easing);
    
    transform: translateY(0) scale(1);
}

.menu-content ul li a:hover {
    color: var(--accent) !important;
    transform: scale(1.15);
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* --- BANNERY --- */
main {
    margin-top: 0px;
    flex: 1 0 auto;
}

.banner-heading {
    text-align: center;
    color: #fff;
    font-family: 'Cinzel', serif;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 
                 0 0 20px rgba(255, 255, 255, 0.1);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.banner, 
.banner:link, 
.banner:visited, 
.banner:hover, 
.banner:active {
    display: block;
    position: relative;
    height: 25vh;
    min-height: 180px;
    width: 100%;
    text-decoration: none !important;
    color: #ffffff !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.banner:first-of-type {
    height: calc(25vh + var(--topbar-height));
    min-height: calc(180px + var(--topbar-height));
}

.banner:first-of-type .banner-content {
    padding-top: var(--topbar-height);
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--panel-bg);
    background-size: cover;
    background-position: center;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) var(--easing);
    pointer-events: none;
}

.banner-content h2 {
    font-family: var(--font-heading) !important;
    color: #ffffff !important;
    font-size: clamp(1.5rem, 5vw, 3rem);
    text-transform: capitalize;
    letter-spacing: 8px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    margin: 0;
    text-align: center; 
    width: 100%;        
    padding: 0 15px;
}

.reveal-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: grayscale(30%) brightness(0.7);
    transition: filter 0.5s;
}

.banner:hover .reveal-visual {
    filter: grayscale(0%) brightness(1);
}

@media (hover: hover) and (pointer: fine) {
    .banner.odd:hover .banner-content,
    .banner.odd:focus-visible .banner-content {
        transform: translateX(calc(-1 * var(--banner-hover-shift)));
    }

    .banner.even:hover .banner-content,
    .banner.even:focus-visible .banner-content {
        transform: translateX(var(--banner-hover-shift));
    }
}

@media (hover: none) {
    .banner.odd:active .banner-content {
        transform: translateX(calc(-1 * var(--banner-hover-shift)));
    }

    .banner.even:active .banner-content {
        transform: translateX(var(--banner-hover-shift));
    }
}

/* --- GLOBÁLNÍ <select> (Safari respektuje radius až po vypnutí nativního vzhledu) --- */
select {
    border-radius: 1px;
}

select:not([multiple]) {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23a7b0b8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.75 4.25L6 7.5l3.25-3.25'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 0.75rem;
    padding-inline-end: 2rem;
}

/* --- RESPONSIVITA --- */
@media (max-width: 768px) {
    :root { --topbar-height: 64px; }
    .banner { height: 20vh; }
    .topbar-login-link {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }
}

/* --- PATIČKA --- */
footer {
    flex-shrink: 0;
    padding: 60px 20px;
    text-align: center;
    background-color: black;
    color: #ffffff;
}

footer p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
}