/* =====================================================
   HEADER
===================================================== */

header {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

nav {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

.logo-pic {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    width: 2.6rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e7a10f;
}

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

.nav-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(245, 166, 35, 0.1);
    color: var(--brand-gold-dark);
}

.header-cta {
    display: flex;
    gap: 0.75rem;
}

.btn-primary {
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

.btn-secondary {
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--brand-gold-dark);
    border: 1.5px solid var(--brand-gold);
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    background: rgba(245, 166, 35, 0.1);
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    gap: 0.45rem;
}

.user-dropdown-toggle .ud-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.25s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
}

.user-dropdown.open .ud-chevron {
    transform: rotate(180deg);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 18px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    order: 99;
    margin-left: 0.2rem;
    margin-right: auto;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--brand-gold-dark, #c47f0a);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 60%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    padding: 2rem 1.5rem 2rem;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.95rem 1.1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 12px;
    transition: background 0.25s, color 0.25s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(245, 166, 35, 0.12);
    color: var(--brand-gold-dark);
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1050;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    header {
        top: 8px;
        left: 8px;
        right: 8px;
        padding: 0.7rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .logo-pic {
        width: 2.3rem;
    }
}