/* Header/Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Specific override for outline buttons in nav */
.nav-links a.btn-outline:hover {
    color: #ffffff !important;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--background-light);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.theme-icon {
    transition: all 0.3s ease;
}

/* Default light theme - show sun icon, hide moon */
.theme-icon.moon {
    display: none;
}

.theme-icon.sun {
    display: block;
}

/* Light theme explicitly */
[data-theme="light"] .theme-icon.moon {
    display: none;
}

[data-theme="light"] .theme-icon.sun {
    display: block;
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-white);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-primary);
    }

    .theme-toggle {
        width: 2rem;
        height: 2rem;
        padding: 0.25rem;
    }

    .theme-toggle svg {
        width: 1rem;
        height: 1rem;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}