/**
 * Header Styles
 * Top navigation and branding
 */

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: var(--white);
    padding: 1.25rem 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    animation: patternFloat 20s linear infinite;
}

@keyframes patternFloat {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.header-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tag-primary { border-left: 3px solid #3b82f6; }
.tag-secondary { border-left: 3px solid #8b5cf6; }
.tag-accent { border-left: 3px solid #06b6d4; }

.header-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stat-card.stat-primary {
    border-left: 3px solid #3b82f6;
}

.stat-card.stat-success {
    border-left: 3px solid #10b981;
}

.stat-icon {
    font-size: 1.75rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-brand {
        flex-direction: column;
    }
}

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

    .header-title {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .header-subtitle {
        font-size: 0.75rem;
    }

    .header-tags {
        gap: 0.375rem;
        margin-top: 0.5rem;
    }

    .tag {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.625rem;
    }
    
    .stat-card {
        padding: 0.625rem 1rem;
        flex: 1;
        min-width: 0;
    }
    
    .stat-number {
        font-size: 1.375rem;
    }

    .stat-label {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .header-icon {
        font-size: 2rem;
    }
    
    .header-title {
        font-size: 1rem;
    }

    .header-subtitle {
        font-size: 0.6875rem;
    }

    .header-container {
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .header-stats {
        width: 100%;
        gap: 0.625rem;
    }
    
    .stat-card {
        flex-direction: row;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }
}
