/* ==========================================================================
   HEADER & NAVIGACE (SDÍLENÝ STYL)
   ========================================================================== */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 0;
}

.navbar {
    width: 100%;
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Výchozí plný stav */
    background: var(--green-velvet, #061B12);
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Skleněný stav při odscrollování */
header.scrolled .navbar {
    background: rgba(6, 27, 18, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-color: rgba(197, 160, 89, 0.6);
    box-shadow: 0 10px 32px 0 rgba(0, 0, 0, 0.25);
}

.logo {
    font-family: 'Cinzel', serif;
    color: transparent;
    background: var(--gold-gradient, linear-gradient(135deg, #B58D3D 0%, #E8D08F 50%, #B58D3D 100%));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 0;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gold-gradient, linear-gradient(135deg, #B58D3D 0%, #E8D08F 50%, #B58D3D 100%));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.6);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-metallic, #C5A059);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Responsivita pro mobilní hlavičku */
@media (max-width: 900px) {
    header { width: 95%; }
    .navbar { flex-direction: column; gap: 15px; padding: 15px 20px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
}