/* Header Geral */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Ticker / Breaking News */
.ticker-bar {
    background-color: var(--primary-10);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.ticker-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    font-size: 12px;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticker-track-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex; /* Garante o alinhamento em linha */
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: max-content; /* OBRIGATÓRIO: impede que a esteira encolha para caber na tela */
    animation: marquee 90s linear infinite; /* 30s deixa a velocidade confortável */
}

.ticker-item {
    display: inline-block;
    margin: 0 32px; /* Espaço generoso entre uma notícia e outra */
    color: var(--muted-foreground);
    flex-shrink: 0; /* OBRIGATÓRIO: impede que os títulos fiquem esmagados ou quebrem linha */
}
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Navbar Principal */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .logo { font-size: 24px; }
}

.logo-highlight {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(60, 131, 246, 0.1), 
                 0 0 20px rgba(60, 131, 246, 0.3);
}

/* =========================================================================
   MENU DESKTOP (AQUI ESTAVA O BUG)
   ========================================================================= */

/* 1. POR PADRÃO (MOBILE): O menu desktop fica TOTALMENTE ESCONDIDO */
.nav-desktop {
    display: none;
}

/* 2. EM TELAS MAIORES (TABLET/PC): O menu desktop passa a aparecer */
@media (min-width: 768px) {
    .nav-desktop { 
        display: flex; 
    }
}

/* Links Desktop - Estrutura de listas do WordPress */
.nav-desktop-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop-list a, .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-desktop-list a:hover, .nav-link:hover {
    color: var(--foreground);
}

/* =========================================================================
   COMPORTAMENTO MOBILE
   ========================================================================= */

/* Botão de Hambúrguer */
.menu-toggle {
    background: none;
    border: none;
    color: var(--foreground);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Esconde o botão de hambúrguer no PC, já que lá usamos o menu horizontal */
@media (min-width: 768px) {
    .menu-toggle { display: none; }
}

/* Menu Aberto Mobile */
.nav-mobile {
    border-top: 1px solid var(--border);
    padding: 16px;
    background-color: rgba(11, 15, 25, 0.95);
}

/* Força o menu mobile a sumir se o usuário esticar a tela do navegador no PC */
@media (min-width: 768px) {
    .nav-mobile { display: none !important; }
}

.nav-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-mobile-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    display: block;
    padding: 4px 0;
}

.nav-mobile-list a:hover {
    color: var(--foreground);
}