/* ==========================================================================
   6º BATALHÃO DE CAÇADORES — "TENENTE CORONEL PEDRO ARBUES"
   Identidade Visual: Militar Institucional Premium
   ========================================================================== */

@import url('variables.css');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Mantém a janela fixa, permitindo rolagem apenas no iframe */
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== ANIMAÇÃO DE BRILHO METÁLICO DOURADO ===== */
@keyframes goldShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGoldGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
    }
    50% {
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px rgba(212, 175, 55, 0.45));
    }
}

@keyframes lightBeam {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* ==========================================================================
   1. TOPO DO SITE (HEADER INSTITUCIONAL)
   ========================================================================== */
.topo-site {
    height: var(--header-height);
    background: radial-gradient(ellipse at 50% -20%, #1a202c 0%, #0d0f14 70%, #07080a 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

/* Iluminação de fundo sutil no topo */
.topo-site::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.6) 50%, transparent 100%);
}

.topo-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 36px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logotipo Médio */
.logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-medio {
    height: 86px;
    width: auto;
    object-fit: contain;
    animation: pulseGoldGlow 4s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-medio:hover {
    transform: scale(1.05) translateY(-2px);
}

/* Títulos do Topo */
.titulos-topo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 6º Batalhão de Caçadores em Dourado com Efeitos */
.titulo-batalhao {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-bottom: 4px;
    text-transform: uppercase;

    /* Gradiente em fios de ouro metálico */
    background: linear-gradient(
        135deg,
        #fff7d6 0%,
        #e5b95c 18%,
        #fffae8 32%,
        #d19730 48%,
        #fff1be 65%,
        #aa771c 82%,
        #fce396 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Efeito de Relevo Esculpido / Bordado a Ouro */
    filter: 
        drop-shadow(0 1px 0px rgba(255, 248, 220, 0.75))
        drop-shadow(0 2px 1px rgba(107, 76, 12, 0.95))
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.85))
        drop-shadow(0 0 20px rgba(212, 168, 75, 0.4));

    animation: goldShimmer 8s ease-in-out infinite;
}

/* Tenente Coronel Pedro Arbues em Branco com Letra Arial Menor */
.subtitulo-comandante {
    font-family: var(--font-subtitle) !important;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subtitulo-comandante::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
}

/* ==========================================================================
   2. BARRA DE DIVISÃO COM EFEITOS E MENUS
   ========================================================================== */
.barra-navegacao {
    height: var(--nav-bar-height);
    background: linear-gradient(90deg, #090b0e 0%, #141820 40%, #191e28 50%, #141820 60%, #090b0e 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.45);
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 90;
    display: flex;
    align-items: center;
}

/* Feixe de luz animado percorrendo a barra */
.barra-navegacao::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff2b2, #ffd700, transparent);
    animation: lightBeam 7s ease-in-out infinite;
    pointer-events: none;
}

.barra-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Emblema / Detalhe Militar à Esquerda da Barra */
.barra-esquerda {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-militar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-gold-light);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

/* Menus Alinhados à Direita */
.menu-direita {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item {
    position: relative;
}

/* Botões de Navegação */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e5e7eb;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn i {
    font-size: 14px;
    color: var(--accent-gold);
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Efeito Hover nos Menus */
.nav-btn:hover {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.5),
        0 0 14px rgba(212, 175, 55, 0.3);
    transform: translateY(-1.5px);
}

.nav-btn:hover i {
    transform: scale(1.15);
    color: #fff1be;
}

/* Estado Ativo do Menu */
.nav-btn.active {
    color: #fff9e6;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.28) 0%, rgba(170, 119, 28, 0.15) 100%);
    border-color: var(--accent-gold);
    box-shadow: 
        0 2px 14px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Indicador de linha no botão ativo */
.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold);
}

/* Ícone de seta no Institucional */
.arrow-icon {
    font-size: 10px !important;
    margin-left: 2px;
    transition: transform 0.3s ease !important;
}

.dropdown-item:hover .arrow-icon {
    transform: rotate(180deg) !important;
}

/* Submenu Institucional (Dropdown Elegante) */
.submenu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: linear-gradient(180deg, #161b24 0%, #0d1016 100%);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 
        0 14px 35px rgba(0, 0, 0, 0.75),
        0 0 20px rgba(212, 175, 55, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dropdown-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin-bottom: 3px;
}

.submenu li:last-child {
    margin-bottom: 0;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.2s ease;
}

.submenu a i {
    font-size: 12px;
    color: var(--accent-gold);
}

.submenu a:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(4px);
}

/* ==========================================================================
   3. ÁREA PRINCIPAL DO SITE (IFRAME)
   ========================================================================== */
.area-principal {
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--nav-bar-height));
    position: relative;
    background: #090b0e;
    overflow: hidden;
    padding-bottom: 28px;
}

.frame-conteudo {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background-color: transparent;
}

/* ==========================================================================
   4. RESPONSIVIDADE E ADAPTAÇÕES
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --header-height: 100px;
        --nav-bar-height: 50px;
    }

    .topo-container {
        padding: 0 20px;
        gap: 18px;
    }

    .logo-medio {
        height: 72px;
    }

    .titulo-batalhao {
        font-size: 24px;
    }

    .subtitulo-comandante {
        font-size: 12px;
        letter-spacing: 1.2px;
    }

    .barra-container {
        padding: 0 20px;
    }

    .nav-btn {
        padding: 7px 14px;
        font-size: 12.5px;
    }
}

@media (max-width: 680px) {
    :root {
        --header-height: auto;
        --nav-bar-height: auto;
    }

    html, body {
        overflow-y: auto;
    }

    .topo-site {
        padding: 16px 0;
    }

    .topo-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .logo-medio {
        height: 70px;
    }

    .titulos-topo {
        align-items: center;
    }

    .titulo-batalhao {
        font-size: 20px;
    }

    .subtitulo-comandante {
        font-size: 11px;
        letter-spacing: 1px;
        justify-content: center;
    }

    .subtitulo-comandante::before {
        display: none;
    }

    .barra-navegacao {
        padding: 8px 0;
    }

    .barra-container {
        flex-direction: column;
        gap: 8px;
    }

    .barra-esquerda {
        display: none;
    }

    .menu-direita {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .area-principal {
        height: calc(100vh - 160px);
        min-height: 480px;
    }
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL
   ========================================================================== */
.rodape-institucional {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, #0a0c10 0%, transparent 100%);
    padding: 6px 16px;
    z-index: 50;
    pointer-events: none;
}
.rodape-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.05em;
    pointer-events: auto;
}
.rodape-admin {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.4;
    transition: opacity 0.3s, color 0.3s;
}
.rodape-admin:hover { opacity: 1; color: var(--accent-gold); }
.rodape-admin i { font-size: 10px; margin-right: 4px; }
@media (max-width: 680px) {
    .rodape-container { flex-direction: column; gap: 4px; font-size: 10px; }
}