/* =============================================
   NAVIGATION STYLES
   ============================================= */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    position: relative;
}

.nav-left, .nav-right, .nav-links, .nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    margin-left: var(--space-md);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
        margin-left: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 50vw;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
    }
    /* Ensure .nav-right itself is not hidden, so its children can be controlled */
    .nav-right {
        /* display: none; */ /* Removed this line */
        /* We might need to adjust other properties of nav-right if needed,
           but for now, let's see if only removing display:none is enough,
           relying on .nav-links's transform property. */
    }
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

.mobile-menu-toggle.active .menu-icon {
    background: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-brand {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.site-logo {
    height: 2.1rem;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

.nav-link {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}
