/**
 * ========================================
 * HEADER.CSS - Estilos do Cabeçalho
 * ========================================
 * 
 * Estilos para header, logo, título e elementos do topo.
 * 
 * @author BluePartner Dashboard Premium
 * @created 2025-10-02
 * @version 2.0 - Modular & Animated
 */

/* ========================================
   HEADER - Cabeçalho Principal
   ======================================== */

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
    contain: layout style;
}

/* Theme Switcher Position */
#theme-switcher-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* ========================================
   LOGO - Imagem Principal
   ======================================== */

.header img {
    height: 180px;
    width: auto;
    margin-bottom: 25px;
    
    /* Efeito de Sombra Azul Brilhante */
    filter: drop-shadow(0 5px 20px rgba(0, 191, 255, 0.6));
    
    /* Transition Suave */
    transition: all 0.3s ease;
    
    /* Performance */
    transform: translate3d(0, 0, 0);
    will-change: transform, filter;
}

/* 🚀 HOVER - Logo "sobe" e brilho aumenta */
.header img:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 10px 30px rgba(0, 191, 255, 0.8));
}

/* ========================================
   TÍTULO - H1 Principal
   ======================================== */

.header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    margin: 0;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header h1 svg {
    filter: drop-shadow(0 2px 4px rgba(0, 191, 255, 0.3));
}

.header-title {
    background: linear-gradient(135deg, #00a4ef, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ========================================
   RESPONSIVO - Mobile First
   ======================================== */

@media (max-width: 768px) {
    .header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .header img {
        height: 120px;
        margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 1rem;
        gap: 8px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header img {
        height: 150px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 15px;
    }
    
    .header img {
        height: 80px;
        margin-bottom: 10px;
    }
}

/* ========================================
   PRINT - Estilos para Impressão
   ======================================== */

@media print {
    .header {
        break-after: avoid;
        background: none;
    }
    
    .header img {
        filter: none;
    }
}

/* ========================================
   HIGH DPI - Retina Displays
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================
   ACESSIBILIDADE - A11y
   ======================================== */

/* Preferência por Movimento Reduzido */
@media (prefers-reduced-motion: reduce) {
    .header img {
        transition: none;
    }
    
    .header img:hover {
        transform: none;
        filter: drop-shadow(0 5px 20px rgba(0, 191, 255, 0.6));
    }
}
