/* ============================================================
   LINK-FIX.CSS — Correção global de links e botões
   Inclua no head.php APÓS o style.css principal.
   Resolve cores incorretas causadas por estilos inline
   sem precisar alterar nenhum arquivo de página.
   ============================================================ */

/* ── 1. RESET BASE DE LINKS ─────────────────────────────────
   Impede o azul/roxo padrão do navegador em qualquer <a>
   que não tenha cor definida explicitamente.
   ──────────────────────────────────────────────────────────── */
a {
    color: inherit;
    text-decoration: none;
}
a:visited {
    color: inherit;
}

/* ── 2. LINKS DE NAVEGAÇÃO ──────────────────────────────────
   Garante branco no menu em todos os estados.
   ──────────────────────────────────────────────────────────── */
nav a,
nav a:link,
nav a:visited,
nav a:active {
    color: #ffffff;
}
nav a.nav-destaque,
nav a.nav-destaque:visited {
    color: #F5A623;
}

/* ── 3. LINKS EM PARÁGRAFOS DE ARTIGOS ──────────────────────
   Links no corpo do texto ficam visíveis com azul + sublinhado.
   ──────────────────────────────────────────────────────────── */
article a:not([class]),
.container p a:not([class]) {
    color: #1a3a6d;
    text-decoration: underline;
}
article a:not([class]):visited,
.container p a:not([class]):visited {
    color: #5a3a8d;
}
article a:not([class]):hover,
.container p a:not([class]):hover {
    color: #F5A623;
}

/* ── 4. BOTÕES COM COR INLINE — OVERRIDE SEGURO ─────────────
   Usa seletores de atributo para capturar botões estilizados
   inline sem precisar alterar o HTML.
   ──────────────────────────────────────────────────────────── */

/* Fundo escuro/colorido → texto sempre branco */
a[style*="background: #0A1F44"],
a[style*="background:#0A1F44"],
a[style*="background: #27ae60"],
a[style*="background:#27ae60"],
a[style*="background: #c53030"],
a[style*="background:#c53030"],
a[style*="background: #28a745"],
a[style*="background:#28a745"],
a[style*="background: #ecc94b"],
a[style*="background:#ecc94b"],
a[style*="background: #1877F2"],
a[style*="background:#1877F2"],
a[style*="background: #25D366"],
a[style*="background:#25D366"] {
    color: #ffffff !important;
    text-decoration: none !important;
}
a[style*="background: #0A1F44"]:visited,
a[style*="background:#0A1F44"]:visited,
a[style*="background: #27ae60"]:visited,
a[style*="background:#27ae60"]:visited,
a[style*="background: #c53030"]:visited,
a[style*="background:#c53030"]:visited,
a[style*="background: #28a745"]:visited,
a[style*="background:#28a745"]:visited,
a[style*="background: #ecc94b"]:visited,
a[style*="background:#ecc94b"]:visited {
    color: #ffffff !important;
}
a[style*="background: #0A1F44"]:hover,
a[style*="background:#0A1F44"]:hover,
a[style*="background: #27ae60"]:hover,
a[style*="background:#27ae60"]:hover,
a[style*="background: #c53030"]:hover,
a[style*="background:#c53030"]:hover,
a[style*="background: #28a745"]:hover,
a[style*="background:#28a745"]:hover,
a[style*="background: #ecc94b"]:hover,
a[style*="background:#ecc94b"]:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Fundo branco com borda → texto escuro visível */
a[style*="background: #ffffff"],
a[style*="background:#ffffff"],
a[style*="background: #fff"],
a[style*="background:#fff"] {
    color: #0A1F44 !important;
    text-decoration: none !important;
}
a[style*="background: #ffffff"]:visited,
a[style*="background:#ffffff"]:visited,
a[style*="background: #fff"]:visited,
a[style*="background:#fff"]:visited {
    color: #0A1F44 !important;
}
a[style*="background: #ffffff"]:hover,
a[style*="background:#ffffff"]:hover,
a[style*="background: #fff"]:hover,
a[style*="background:#fff"]:hover {
    color: #0A1F44 !important;
}

/* ── 5. CLASSES CTA DO SISTEMA PREMIUM ──────────────────────
   Cobre todos os estados dos botões btn-cta-artigo.
   ──────────────────────────────────────────────────────────── */
a.btn-cta-artigo,
a.btn-cta-artigo:link,
a.btn-cta-artigo:visited,
a.btn-cta-artigo:hover,
a.btn-cta-artigo:active,
a.btn-cta-artigo:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ── 6. BOTÕES DE COMPARTILHAMENTO ──────────────────────────
   WhatsApp, Facebook, X — texto sempre branco.
   ──────────────────────────────────────────────────────────── */
a.share-btn,
a.share-btn:link,
a.share-btn:visited,
a.share-btn:hover,
a.share-btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ── 7. FOOTER ───────────────────────────────────────────────
   Links do rodapé em dourado.
   ──────────────────────────────────────────────────────────── */
footer a,
footer a:link,
footer a:visited {
    color: #F5A623;
    text-decoration: none;
}
footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── 8. CONTAINERS ESCUROS ───────────────────────────────────
   Links dentro de fundos pretos/escuros ficam dourados.
   ──────────────────────────────────────────────────────────── */
.cta-container-dark a:not(.btn-cta-artigo),
.slide-content a {
    color: #F5A623;
}
.cta-container-dark a:not(.btn-cta-artigo):hover,
.slide-content a:hover {
    color: #ffffff;
}