/**
 * Estilos do Novo Header FUMPREN
 * Baseado nas especificações do header.md
 */

/* ========================================
   1. VARIÁVEIS DE CORES
   ======================================== */
:root {
    --verde-institucional: #1a4a35;
    --verde-profundo: #113324;
    --verde-acento: #2ecc71;
    --verde-acento-escuro: #27ae60;
    --azul-real: #2563eb;
    --verde-borda: #166534;
    --verde-borda-escura: #14532d;
}

/* ========================================
   2. TIPOGRAFIA
   ======================================== */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   3. ACESSIBILIDADE - ALTO CONTRASTE
   ======================================== */
.alto-contraste {
    filter: invert(1) hue-rotate(180deg);
}

.alto-contraste img,
.alto-contraste video,
.alto-contraste iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* Melhorar foco para navegação por teclado */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--verde-acento);
    outline-offset: 2px;
}

/* ========================================
   4. ANIMAÇÕES
   ======================================== */

/* Animação de fade in para dropdowns */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de slide para menu mobile */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }

    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Animação da linha de hover nos links do menu */
.nav-link-underline {
    position: relative;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde-acento);
    transition: width 0.3s ease-in-out;
}

.nav-link-underline:hover::after {
    width: 100%;
}

/* ========================================
   5. RESPONSIVIDADE
   ======================================== */

/* Mobile First - Ajustes para telas pequenas */
@media (max-width: 767px) {

    /* Reduzir tamanho do logo no mobile */
    .logo-fumpren {
        width: 48px !important;
        height: 48px !important;
    }

    .logo-fumpren i {
        font-size: 1.5rem !important;
    }

    /* Ajustar título no mobile */
    .titulo-fumpren {
        font-size: 1.5rem !important;
    }

    .subtitulo-fumpren {
        font-size: 0.75rem !important;
    }

    /* Menu mobile */
    #mobileMenu {
        animation: slideDown 0.3s ease-in-out;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Ajustes para tablets */
    .container {
        max-width: 720px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

/* ========================================
   6. UTILITÁRIOS
   ======================================== */

/* Sombras customizadas */
.shadow-fumpren {
    box-shadow: 0 2px 8px rgba(26, 74, 53, 0.1);
}

.shadow-fumpren-lg {
    box-shadow: 0 4px 16px rgba(26, 74, 53, 0.15);
}

/* Transições suaves */
.transition-fumpren {
    transition: all 0.3s ease-in-out;
}

/* Hover states customizados */
.hover-verde:hover {
    color: var(--verde-acento) !important;
}

.hover-bg-verde:hover {
    background-color: var(--verde-acento) !important;
}

/* ========================================
   7. COMPONENTES ESPECÍFICOS
   ======================================== */

/* Top Bar */
.topbar-fumpren {
    background-color: var(--verde-profundo);
    border-bottom: 1px solid var(--verde-borda-escura);
}

/* Main Header */
.main-header-fumpren {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar-fumpren {
    background-color: var(--verde-institucional);
    border-top: 1px solid var(--verde-borda);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Dropdown Menu */
.dropdown-fumpren {
    border-top: 2px solid var(--verde-acento);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-fumpren a {
    transition: all 0.2s ease-in-out;
}

.dropdown-fumpren a:hover {
    background-color: #f9fafb;
    color: var(--verde-acento);
    padding-left: 1.25rem;
}

/* Botões */
.btn-transparencia {
    background-color: var(--azul-real);
    transition: all 0.3s ease-in-out;
}

.btn-transparencia:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-contracheque {
    background-color: var(--verde-acento);
    transition: all 0.3s ease-in-out;
}

.btn-contracheque:hover {
    background-color: var(--verde-acento-escuro);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

/* Campo de Busca */
.search-input-fumpren {
    transition: all 0.3s ease-in-out;
}

.search-input-fumpren:focus {
    border-color: var(--verde-acento);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* ========================================
   8. ESTADOS DE LOADING
   ======================================== */

/* Skeleton loading para menu dinâmico */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   9. IMPRESSÃO
   ======================================== */

@media print {

    /* Ocultar elementos não essenciais na impressão */
    .topbar-fumpren,
    .navbar-fumpren,
    .btn-transparencia,
    .btn-contracheque,
    .search-input-fumpren {
        display: none !important;
    }

    /* Ajustar cores para impressão */
    body {
        color: #000;
        background: #fff;
    }
}

/* ========================================
   10. ACESSIBILIDADE ADICIONAL
   ======================================== */

/* Melhorar visibilidade de links para usuários com daltonismo */
a {
    text-decoration-skip-ink: auto;
}

/* Garantir contraste adequado */
.text-contrast {
    color: #000;
    background-color: #fff;
}

/* Indicador visual para elementos interativos */
button,
a,
[role="button"] {
    cursor: pointer;
}

button:disabled,
a.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Skip to content - acessibilidade */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--verde-acento);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}