/* ==========================================================================
   TEMA TRIBUNA ECONÔMICA - ESTILO EDITORIAL CORPORATIVO & FINANCEIRO
   Inspirado em: Valor Econômico, Bloomberg Línea, InfoMoney & Revista Exame
   ========================================================================== */

:root {
    --tb-navy: #091626;
    --tb-navy-light: #132742;
    --tb-gold: #b38728;
    --tb-gold-light: #d4af37;
    --tb-gold-subtle: #fdfaf2;
    --tb-gold-border: #e9d5a1;
    --tb-dark: #0f172a;
    --tb-slate: #334155;
    --tb-gray-light: #f8fafc;
    --tb-border: #e2e8f0;
    --tb-green-up: #10b981;
    --tb-red-down: #ef4444;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #fbfcfd;
    color: var(--tb-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
a:hover {
    color: var(--tb-gold);
}

/* --- 1. TICKER SUPERIOR DE MERCADOS & FINANÇAS --- */
.tribuna-market-ticker {
    background-color: var(--tb-navy);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
}
.market-badge-label {
    background-color: var(--tb-gold);
    color: #000000;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}
.market-ticker-track {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.market-ticker-track::-webkit-scrollbar {
    display: none;
}
.market-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ticker-name {
    color: #94a3b8;
    font-weight: 600;
}
.ticker-val {
    font-weight: 700;
    color: #ffffff;
}
.ticker-up {
    color: var(--tb-green-up);
    font-size: 0.72rem;
    font-weight: 600;
}
.ticker-down {
    color: var(--tb-red-down);
    font-size: 0.72rem;
    font-weight: 600;
}

/* --- 2. HEADER EXECUTIVO --- */
.tribuna-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--tb-border);
    padding: 22px 0 16px 0;
}
.header-brand-title {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--tb-navy);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin: 0;
}
.header-brand-tagline {
    font-size: 0.78rem;
    color: var(--tb-slate);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}
.header-badge-authority {
    border: 1px solid var(--tb-gold-border);
    background-color: var(--tb-gold-subtle);
    color: var(--tb-navy);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-block;
}

/* Busca Executiva */
.search-exec-input {
    border-radius: 6px 0 0 6px;
    border: 1px solid #cbd5e1;
    font-size: 0.82rem;
    padding: 7px 12px;
}
.search-exec-input:focus {
    border-color: var(--tb-navy);
    box-shadow: 0 0 0 2px rgba(9, 22, 38, 0.15);
}
.search-exec-btn {
    background-color: var(--tb-navy);
    border-color: var(--tb-navy);
    color: #ffffff;
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    padding: 7px 14px;
    font-weight: 600;
}
.search-exec-btn:hover {
    background-color: var(--tb-gold);
    border-color: var(--tb-gold);
    color: #000000;
}

/* --- 3. BARRA DE NAVEGAÇÃO PRINCIPAL --- */
.tribuna-navbar {
    background-color: var(--tb-navy);
    padding: 0;
    border-bottom: 3px solid var(--tb-gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.tribuna-navbar .nav-link {
    color: #f1f5f9 !important;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 13px 14px !important;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    transition: all 0.18s ease;
}
.tribuna-navbar .nav-link:hover,
.tribuna-navbar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 -3px 0 var(--tb-gold);
}
.tribuna-navbar .dropdown-menu {
    border-radius: 6px;
    border: 1px solid var(--tb-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
}
.tribuna-navbar .dropdown-item {
    font-size: 0.84rem;
    font-weight: 500;
    padding: 8px 18px;
}
.tribuna-navbar .dropdown-item:hover {
    background-color: var(--tb-gold-subtle);
    color: var(--tb-navy);
}

/* --- 4. RADAR DE NOTÍCIAS / TICKER DE PLANTÃO --- */
.tribuna-radar-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--tb-border);
    padding: 8px 0;
}
.radar-tag {
    font-weight: 800;
    font-size: 0.72rem;
    color: var(--tb-navy);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.radar-tag i {
    color: #ef4444;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.radar-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tb-slate);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.radar-link:hover {
    color: var(--tb-navy);
}

/* --- 5. DESTAQUES DA HOME (GRID EDITORIAL DE IMPACTO) --- */
.lead-featured-card {
    background: #ffffff;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.lead-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(9, 22, 38, 0.08);
}
.lead-featured-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #091626;
}
.lead-featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.lead-featured-card:hover .lead-featured-thumb {
    transform: scale(1.03);
}
.lead-featured-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.category-badge-gold {
    background-color: var(--tb-gold);
    color: #000000;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 10px;
}
.lead-featured-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--tb-navy);
    line-height: 1.3;
    margin-bottom: 10px;
}
.lead-featured-title:hover {
    color: var(--tb-gold);
}

/* Sub-Destaques Laterais */
.sub-featured-card {
    background: #ffffff;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}
.sub-featured-card:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(2px);
}
.sub-featured-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tb-navy);
    margin-bottom: 6px;
}
.sub-featured-title:hover {
    color: var(--tb-gold);
}

/* --- 6. POST CARDS DA LISTAGEM GERAL --- */
.tribuna-post-card {
    background: #ffffff;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}
.tribuna-post-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.tribuna-post-card .card-thumb-wrapper {
    width: 200px;
    height: 135px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e2e8f0;
}
.tribuna-post-card .card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.tribuna-post-card:hover .card-thumb {
    transform: scale(1.05);
}
.tribuna-post-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tb-navy);
    line-height: 1.35;
    margin-bottom: 8px;
}
.tribuna-post-title:hover {
    color: var(--tb-gold);
}
.tribuna-meta {
    font-size: 0.76rem;
    color: var(--tb-slate);
}

/* --- 7. SIDEBAR EXECUTIVA --- */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 22px;
}
.sidebar-widget-header {
    border-bottom: 2px solid var(--tb-navy);
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-widget-title {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--tb-navy);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}
.radar-table {
    width: 100%;
    font-size: 0.82rem;
}
.radar-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.radar-table td {
    padding: 7px 0;
}

/* --- 8. PÁGINA DO POST (LEITURA CONFORTÁVEL SERIFADA) --- */
.post-header-badge {
    background-color: var(--tb-navy);
    color: var(--tb-gold);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 14px;
}
.post-title-main {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    font-weight: 900;
    color: var(--tb-navy);
    line-height: 1.22;
    margin-bottom: 16px;
}
.post-lead-text {
    font-size: 1.18rem;
    color: var(--tb-slate);
    line-height: 1.5;
    font-weight: 400;
    border-left: 3px solid var(--tb-gold);
    padding-left: 16px;
    margin-bottom: 24px;
}
.post-author-box {
    border-top: 1px solid var(--tb-border);
    border-bottom: 1px solid var(--tb-border);
    padding: 12px 0;
    margin-bottom: 28px;
    font-size: 0.82rem;
    color: var(--tb-slate);
}
.post-content-body {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #1e293b;
}
.post-content-body p {
    margin-bottom: 1.6rem;
}
.post-content-body h2, .post-content-body h3 {
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--tb-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.post-content-body blockquote {
    font-style: italic;
    border-left: 4px solid var(--tb-gold);
    background-color: var(--tb-gold-subtle);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    color: var(--tb-navy);
}

/* --- 9. FOOTER EXECUTIVO --- */
.tribuna-footer {
    background-color: var(--tb-navy);
    color: #e2e8f0;
    padding-top: 48px;
    padding-bottom: 24px;
    border-top: 4px solid var(--tb-gold);
    margin-top: 60px;
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: inline-block;
    margin-bottom: 8px;
}
.footer-desc {
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.6;
}
.footer-heading {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--tb-gold);
    margin-bottom: 14px;
}
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav-list li {
    margin-bottom: 8px;
}
.footer-nav-list a {
    color: #cbd5e1;
    font-size: 0.82rem;
    transition: color 0.15s ease;
}
.footer-nav-list a:hover {
    color: var(--tb-gold);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 36px;
    padding-top: 20px;
    font-size: 0.76rem;
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .header-brand-title {
        font-size: 2rem;
    }
    .lead-featured-thumb-wrapper {
        height: 220px;
    }
    .tribuna-post-card .card-thumb-wrapper {
        width: 130px;
        height: 95px;
    }
    .post-title-main {
        font-size: 1.8rem;
    }
}
