/*
 * Main Header Component
 * Top navigation bar with logo and menu items
 * Inspired by zenorocha.com and joshwcomeau.com
 */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--theme-bg);
    border-bottom: 1px solid var(--theme-border);
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: rgba(var(--theme-bg-rgb, 255, 255, 255), 0.9);
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo img {
    width: 32px;
    height: 32px;
}

.header-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--theme-text-primary);
    text-transform: uppercase;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.header-nav-item:hover {
    color: var(--theme-text-primary);
}

.header-nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--theme-accent);
    transition:
        width 0.2s ease,
        left 0.2s ease;
}

.header-nav-item:hover::after {
    width: 20px;
    left: calc(50% - 10px);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .header-nav-item {
        font-size: 0.75rem;
    }

    .header-title {
        display: none;
    }
}
