#header {
    position: fixed;
    width: 100%;
    top: 0;

    height: var(--menu-height);
    box-shadow: var(--shadow-sm);
    z-index: 996;

    background-color: var(--color-bg);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 0;
    padding-bottom: 0;
}

.header-logo-wrapper {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.header-logo-image {
    width: var(--font-size-lg);
    fill: var(--color-text);
}

.header-logo-text {
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.button-menu-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-menu-hamburger svg {
    width: var(--font-size-xl);
}

/* Mobile Actions */
.header-mobile-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header-theme-button-mobile {
    background: none;
    border: var(--border-sm) solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.header-theme-button-mobile:hover,
.header-theme-button-mobile:focus {
    background-color: var(--color-bg-muted);
    border-color: var(--color-text);
}

.header-theme-button-mobile:active {
    transform: scale(0.95);
}

/* Desktop Navigation - Hidden on mobile */
.header-nav {
    display: none;
}

/* Desktop styles */
@media (min-width: 768px) {
    .button-menu-hamburger,
    .header-mobile-actions {
        display: none;
    }

    .header-nav {
        display: flex;
        align-items: center;
        gap: var(--space-lg);
        flex: 1;
        justify-content: flex-end;
    }

    .header-nav-links {
        display: flex;
        gap: var(--space-md);
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .header-nav-item {
        margin: 0;
    }

    .header-nav-link {
        text-decoration: none;
        color: var(--color-text);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-md);
        padding: 0.25rem 0;
        display: block;
        position: relative;
    }

    .header-nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: var(--color-primary);
        transition: width 0.3s ease;
    }

    .header-nav-link:hover::after,
    .header-nav-link:focus::after {
        width: 100%;
    }

    .header-nav-link:active {
        opacity: 0.7;
    }

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

    .header-theme-button {
        background: none;
        border: var(--border-sm) solid var(--color-border);
        border-radius: var(--radius-md);
        cursor: pointer;
        padding: var(--space-sm);
        color: var(--color-text);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    }

    .header-theme-button:hover,
    .header-theme-button:focus {
        background-color: var(--color-bg-muted);
        border-color: var(--color-text);
    }

    .header-theme-button:active {
        transform: scale(0.95);
    }

    .header-theme-icon {
        font-size: var(--font-size-lg);
    }
}

/* Larger desktop - more spacing */
@media (min-width: 1024px) {
    .header-nav {
        gap: var(--space-xl);
    }

    .header-nav-links {
        gap: var(--space-lg);
    }

    .header-nav-link {
        font-size: var(--font-size-md);
    }
}