/* ============================================================
   GLOBAL NAVIGATION BAR
   Compact, fixed navigation for site-wide consistency
   ============================================================ */

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 35px;
    
    background: rgba(0, 22, 58, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 9999;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.global-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.global-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 15px;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.global-nav a:hover {
    color: #ffcc33;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.global-nav a.active {
    color: #ffcc33;
    background: rgba(255, 204, 51, 0.1);
}

.global-nav-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    user-select: none;
}

/* Hamburger toggle button - hidden on desktop, shown on mobile */
.global-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 8px;
    top: 0;
    z-index: 10001;
}

.global-nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.global-nav.open .global-nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.global-nav.open .global-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.global-nav.open .global-nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Adjust body padding to prevent content hiding under fixed nav */
body.has-global-nav {
    padding-top: 35px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS - HAMBURGER / SLIDE-DOWN MENU
   ============================================================ */

@media (max-width: 700px) {
    .global-nav {
        justify-content: flex-start;
        height: 50px;
        padding: 0 10px;
    }

    .global-nav-toggle {
        display: flex;
    }

    .global-nav-inner {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(0, 22, 58, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        max-height: calc(100vh - 50px);
        overflow-y: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .global-nav.open .global-nav-inner {
        display: flex;
    }

    .global-nav-inner a {
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        width: 100%;
    }

    .global-nav-inner .global-nav-separator {
        display: none;
    }

    body.has-global-nav {
        padding-top: 50px;
    }
}


