/* --- Unified Header & Menu CSS --- */

/* HEADER CONTAINER */
.layout-header {
    background: rgba(5, 4, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #fff;
    /* Ensure logo text is white if present, though we rely on img now */
}

/* Remove text if we only want image, but keep style for structure */
.logo img {
    filter: drop-shadow(0 0 8px rgba(255, 200, 87, 0.3));
}

/* NAV - Desktop Default */
.layout-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.layout-nav a:hover,
.layout-nav a.active {
    color: var(--accent-gold);
}

/* SEARCH - Desktop */
.header-search {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.header-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: #fff;
    font-family: var(--font-body);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f0a1e;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

/* MOBILE TOGGLE (Defaults) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .header-search {
        display: none;
        /* Hide search on mobile */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .layout-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(11, 9, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        padding: 4rem 0;
        display: flex;
        align-items: center;
        /* Center items vertically in column */
    }

    .layout-nav.active {
        right: 0;
    }

    .layout-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        width: 100%;
    }

    .layout-nav a {
        font-size: 1.3rem;
        font-family: var(--font-display);
        border-bottom: 2px solid transparent;
    }

    .layout-nav a:hover,
    .layout-nav a:focus {
        color: var(--accent-gold);
        border-bottom-color: var(--accent-gold);
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}