/* Header - Modern SaaS Style */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Area */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary); /* Unified Blue */
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 1rem;
    color: var(--text-light);
    transition: color 0.2s ease;
}

/* Hover Effects */
.nav-link:hover {
    background: var(--surface-50);
    color: var(--primary);
}

.nav-link:hover i {
    color: var(--primary);
}

/* Header Actions (Login/Register) */
.header-actions {
    margin-left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--surface-200);
    height: 32px; /* For separator height */
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .header-actions {
        display: none !important; /* Hide desktop actions on mobile */
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        height: auto;
        border-bottom: 1px solid var(--surface-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        height: auto;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        justify-content: flex-start;
    }
}

/* Overlay for Mobile Menu */
.nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.2); /* Darkened overlay */
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
