/* ===== Header Styles - Premium & Fast ===== */
.site-header {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f1117 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ===== Header Brand ===== */
.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ===== Header Navigation ===== */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.2);
}

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

/* Active state for current page (can be added dynamically) */
.nav-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

/* ===== Responsive Header ===== */
@media (max-width: 767px) {
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .header-title {
        font-size: 1.25rem;
    }
    
    .header-subtitle {
        font-size: 0.75rem;
    }
    
    .nav-list {
        justify-content: center;
        width: 100%;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 590px) {
    .site-header                {
        position: relative;
    }

    .header-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .nav-list {
        justify-content: center;
        text-align: center;
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        text-align: center;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header {
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .header-title {
        color: #1e293b !important;
        background: none !important;
        -webkit-text-fill-color: #1e293b !important;
    }
    
    .header-subtitle {
        color: #64748b !important;
    }
    
    .nav-link {
        color: #475569 !important;
    }
}