/* ===================================
   UNIVERSAL HEADER STYLES
   =================================== */

/* Header Container */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.lang-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Header Navigation (if needed) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .logo-title {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .language-switcher {
        padding: 2px;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
}

/* Header Theme Variations */
.header.transparent {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.header.dark {
    background: var(--bg-tertiary);
    border-bottom-color: var(--border-secondary);
}

/* Header Animation */
.header {
    animation: headerSlideDown 0.3s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .header {
        position: static;
        box-shadow: none;
        border-bottom: 2px solid #000;
    }
    
    .language-switcher {
        display: none;
    }
}
