/**
 * Header Colors & Spacing Fix - Cyan com hover amarelo e espaçamento otimizado
 */

/* === VARIÁVEIS DE COR === */
:root {
    --cyan-primary: #2CB7E6;
    --cyan-light: #4FC8F0;
    --cyan-dark: #1A9BC7;
    --pantone-yellow: #FFCD00;
    --pantone-yellow-light: #FFDB2C;
    --cyan-alpha: rgba(44, 183, 230, 0.1);
    --cyan-alpha-strong: rgba(44, 183, 230, 0.2);
    --yellow-alpha: rgba(255, 205, 0, 0.1);
    --yellow-alpha-strong: rgba(255, 205, 0, 0.2);
}

/* === NAVEGAÇÃO PRINCIPAL === */
.main-nav a {
    color: var(--cyan-primary) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.3rem !important;
    border-radius: 6px !important;
}

.main-nav a:hover {
    color: var(--pantone-yellow) !important;
    background: var(--yellow-alpha) !important;
    text-shadow: 0 0 8px rgba(255, 205, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

.main-nav a:focus {
    color: var(--pantone-yellow) !important;
    outline: 2px solid var(--pantone-yellow) !important;
    outline-offset: 2px !important;
    background: var(--yellow-alpha) !important;
}

.main-nav a.active {
    color: var(--pantone-yellow) !important;
    background: var(--yellow-alpha-strong) !important;
    text-shadow: 0 0 12px rgba(255, 205, 0, 0.6) !important;
}

/* === DROPDOWN TOGGLE === */
.nav-dropdown-toggle {
    color: var(--cyan-primary) !important;
    font-weight: 600 !important;
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.3rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.nav-dropdown-toggle:hover {
    color: var(--pantone-yellow) !important;
    background: var(--yellow-alpha) !important;
    text-shadow: 0 0 8px rgba(255, 205, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* === DROPDOWN MENU === */
.nav-dropdown-menu {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%) !important;
    border: 1px solid var(--cyan-primary) !important;
    box-shadow: 0 8px 32px rgba(44, 183, 230, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
    padding: 0.8rem 1.2rem !important;
    border-radius: 4px !important;
    margin: 0.2rem !important;
}

.dropdown-item:hover {
    background: var(--yellow-alpha-strong) !important;
    color: var(--pantone-yellow-light) !important;
    text-shadow: 0 0 6px rgba(255, 205, 0, 0.5) !important;
    transform: translateX(4px) !important;
}

.dropdown-item i[data-lucide] {
    color: var(--cyan-primary) !important;
    transition: all 0.3s ease !important;
    margin-right: 0.5rem !important;
}

.dropdown-item:hover i[data-lucide] {
    color: var(--pantone-yellow) !important;
    filter: brightness(1.2) !important;
}

/* === CONTAINER DA NAVEGAÇÃO === */
.main-nav .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* === HEADER CONTAINER === */
.main-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    gap: 2rem !important;
}

/* === LOGO === */
.logo-section {
    flex: 0 0 auto !important;
    min-width: 200px !important;
}

/* === NAVEGAÇÃO === */
.main-nav {
    flex: 1 !important;
    max-width: 800px !important;
    margin: 0 2rem !important;
}

/* === AÇÕES DA HEADER === */
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex: 0 0 auto !important;
    min-width: 300px !important;
    justify-content: flex-end !important;
}

/* === BOTÃO DIAGNÓSTICO === */
.btn-diagnostico {
    background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--cyan-light) 100%) !important;
    color: #ffffff !important;
    border: 2px solid var(--cyan-primary) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.btn-diagnostico:hover {
    background: linear-gradient(135deg, var(--pantone-yellow) 0%, var(--pantone-yellow-light) 100%) !important;
    border-color: var(--pantone-yellow) !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.3) !important;
}

/* === ÍCONES SOCIAIS === */
.social-icons {
    display: flex !important;
    gap: 0.8rem !important;
    align-items: center !important;
}

.social-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(44, 183, 230, 0.1) !important;
    border: 2px solid var(--cyan-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    color: var(--cyan-primary) !important;
}

.social-icon:hover {
    background: rgba(255, 205, 0, 0.1) !important;
    border-color: var(--pantone-yellow) !important;
    color: var(--pantone-yellow) !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.3) !important;
}

/* === LANGUAGE SELECTOR === */
.language-selector {
    border: 1px solid var(--cyan-primary) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
}

.language-btn-new {
    color: var(--cyan-primary) !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.3s ease !important;
    padding: 0.6rem 1rem !important;
    border-radius: 6px !important;
}

.language-btn-new:hover {
    color: var(--pantone-yellow) !important;
    background: var(--yellow-alpha) !important;
    text-shadow: 0 0 8px rgba(255, 205, 0, 0.4) !important;
}

.language-dropdown-new {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%) !important;
    border: 1px solid var(--cyan-primary) !important;
    box-shadow: 0 8px 32px rgba(44, 183, 230, 0.2) !important;
    border-radius: 8px !important;
}

.language-option {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
    padding: 0.6rem 1rem !important;
    border-radius: 4px !important;
}

.language-option:hover {
    background: var(--yellow-alpha-strong) !important;
    color: var(--pantone-yellow-light) !important;
    text-shadow: 0 0 6px rgba(255, 205, 0, 0.5) !important;
}

.language-option.active {
    background: var(--cyan-alpha) !important;
    color: var(--cyan-light) !important;
    border-left: 3px solid var(--cyan-primary) !important;
}

/* === RESPONSIVIDADE === */

/* Desktop Grande (2048px+) */
@media (min-width: 2048px) {
    .main-header .container {
        padding: 1.2rem 3rem !important;
        gap: 3rem !important;
    }
    
    .main-nav .nav-container {
        gap: 0.8rem !important;
        max-width: 900px !important;
    }
    
    .main-nav a,
    .nav-dropdown-toggle {
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
    }
    
    .header-actions {
        gap: 1.5rem !important;
        min-width: 350px !important;
    }
    
    .btn-diagnostico {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
    }
    
    .social-icon {
        width: 45px !important;
        height: 45px !important;
    }
}

/* Tablet (769px - 2047px) */
@media (min-width: 769px) and (max-width: 2047px) {
    .main-header .container {
        padding: 0.8rem 1.5rem !important;
        gap: 1.5rem !important;
    }
    
    .main-nav .nav-container {
        gap: 0.3rem !important;
        max-width: 700px !important;
    }
    
    .main-nav a,
    .nav-dropdown-toggle {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem !important;
        margin: 0 0.2rem !important;
    }
    
    .header-actions {
        gap: 0.8rem !important;
        min-width: 250px !important;
    }
    
    .btn-diagnostico {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    .social-icon {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 1rem !important;
    }
    
    .logo-section {
        min-width: auto !important;
        text-align: center !important;
    }
    
    .main-nav {
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .main-nav .nav-container {
        gap: 0.2rem !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    
    .main-nav a,
    .nav-dropdown-toggle {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
        margin: 0 0.1rem !important;
    }
    
    .header-actions {
        gap: 0.6rem !important;
        min-width: auto !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .btn-diagnostico {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .social-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .language-btn-new {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}

/* === EFEITOS ESPECIAIS === */

/* Glow effect para itens ativos */
.main-nav a.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, var(--pantone-yellow) 50%, transparent 100%) !important;
    box-shadow: 0 0 8px rgba(255, 205, 0, 0.6) !important;
    border-radius: 2px !important;
}

/* Animação de hover para dropdown */
.nav-dropdown-menu {
    animation: slideDown 0.3s ease-out !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de brilho para ícones */
.dropdown-item i[data-lucide],
.social-icon i[data-lucide] {
    filter: drop-shadow(0 0 4px rgba(44, 183, 230, 0.3)) !important;
}

.dropdown-item:hover i[data-lucide] {
    filter: drop-shadow(0 0 6px rgba(255, 205, 0, 0.5)) !important;
}

/* === ACESSIBILIDADE === */
.main-nav a:focus-visible,
.nav-dropdown-toggle:focus-visible,
.language-btn-new:focus-visible,
.btn-diagnostico:focus-visible {
    outline: 2px solid var(--pantone-yellow) !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

/* === CONTRASTE E LEGIBILIDADE === */
.main-nav a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.language-option {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}
