/* ========================================================================== */
/* Navigation (site header and mobile menu)                                    */
/* Load order: 3                                                               */
/* Styles for `.navbar`, menu links, and hamburger interactions.               */
/* ========================================================================== */
/* Navigation */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    /* Prevent horizontal overflow */
    width: 100%;
    overflow-x: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    /* Prevent horizontal overflow */
    width: 100%;
    overflow-x: hidden;
}

.nav-logo-link {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 16px; }

.nav-item { margin: 0; }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    position: static; /* prevent shimmer overlay from components.css */
    overflow: visible; /* prevent clipping from components.css */
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Disable any global shimmer/overlay effect for navbar links */
.navbar .nav-link::before { content: none !important; display: none !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transform-origin: center;
}

/* Remove hamburger morphing animations */
/* No active state animations for hamburger */

/* Mobile Nav */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 15px 0; }
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 30px;
        width: 200px;
        text-align: center;
        border-radius: 8px;
    }
    .nav-link.active { background: var(--bg-tertiary); }

    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}
