/*
Theme Name: BR Notícias V2
Theme URI: https://github.com/google-deepmind/antigravity
Author: Antigravity AI
Author URI: https://github.com/google-deepmind/antigravity
Description: Um tema WordPress elegante, responsivo e personalizável inspirado no portal de notícias G1.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: br-noticias
Tags: news, blog, custom-colors, custom-logo, two-columns, right-sidebar, responsive-layout

This theme, like WordPress, is licensed under the GPL.
*/

/* ----------------------------------------------------
   1. TOKENS DE DESIGN (PADRÕES INSPIRADOS NO G1)
   ---------------------------------------------------- */
:root {
    /* Cores */
    --br-primary-color: #04003a;          /* Azul Escuro */
    --br-primary-hover-color: #110c66;    /* Azul Escuro Hover */
    --br-bg-color: #ffffff;               /* Fundo */
    --br-text-color: #333333;             /* Texto Principal */
    --br-title-color: #111111;            /* Títulos */
    --br-aux-text-color: #666666;         /* Texto Auxiliar/Data */
    --br-border-color: #e0e0e0;           /* Bordas */
    --br-light-bg: #f6f6f6;               /* Fundo Claro */
    --br-topbar-bg: #1f1f1f;              /* Topbar Globo.com */
    --br-link-color: #04003a;             /* Links */
    --br-link-hover-color: #110c66;       /* Links Hover */

    /* Tipografia */
    --br-font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --br-font-title: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Espaçamentos e Estrutura */
    --br-container-width: 1040px;
    --br-spacing-xs: 4px;
    --br-spacing-sm: 8px;
    --br-spacing-md: 16px;
    --br-spacing-lg: 24px;
    --br-spacing-xl: 40px;
}

/* ----------------------------------------------------
   2. RESET CSS & ESTRUTURA BÁSICA
   ---------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--br-font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--br-text-color);
    background-color: var(--br-bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--br-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--br-link-hover-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--br-font-title);
    color: var(--br-title-color);
    font-weight: 700;
    line-height: 1.2;
}

/* ----------------------------------------------------
   3. LAYOUT GERAL
   ---------------------------------------------------- */
.container {
    max-width: var(--br-container-width);
    margin: 0 auto;
    padding: 0 var(--br-spacing-md);
    width: 100%;
}

.site-main {
    display: flex;
    gap: var(--br-spacing-xl);
    padding: var(--br-spacing-xl) 0;
}

.content-area {
    flex: 1;
    min-width: 0; /* Impede quebras de layout flexbox */
}

/* ----------------------------------------------------
   4. CABEÇALHO (HEADER)
   ---------------------------------------------------- */
/* Topbar (Simulador Globo.com) */
.br-topbar {
    background-color: var(--br-topbar-bg);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    height: 32px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2d2d2d;
    text-transform: lowercase;
}

.br-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.br-topbar-links {
    display: flex;
    list-style: none;
    gap: var(--br-spacing-md);
}

.br-topbar-links a {
    color: #b0b0b0;
    transition: color 0.2s;
}

.br-topbar-links a:hover {
    color: #ffffff;
}

.br-topbar-links .active a {
    color: #ffffff;
}

.br-topbar-right {
    display: flex;
    gap: var(--br-spacing-md);
    align-items: center;
}

/* ---- WIDGET DE CLIMA NA TOPBAR ---- */
.br-weather-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

.br-weather-icon {
    display: flex;
    align-items: center;
    color: #ffffffcc;
    flex-shrink: 0;
}

.br-weather-icon svg {
    display: block;
}

.br-weather-temp {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.br-weather-info {
    display: flex;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
}

.br-weather-sep {
    color: rgba(255, 255, 255, 0.5);
}

/* Animação de entrada quando os dados carregam */
#br-weather-location.loaded,
#br-weather-temp.loaded {
    animation: weather-fade-in 0.4s ease;
}

@keyframes weather-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile: compacta o widget */
@media (max-width: 600px) {
    .br-weather-info {
        display: none; /* mostra só temp + ícone em telas muito pequenas */
    }
}

/* Header Principal (Estilo G1) */
.site-header {
    background-color: var(--br-primary-color);
    color: #ffffff;
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--br-spacing-md);
}

/* Botão Menu Hambúrguer */
.menu-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Estado Ativo do Menu Toggle */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Logo */
.site-branding a {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
}

.site-branding img {
    max-height: 40px;
    width: auto;
}

/* Nome da Editoria (Breadcrumb no Header) */
.header-editoria {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: var(--br-spacing-md);
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    color: #ffffff;
}

/* Barra de Busca */
.header-search {
    position: relative;
}

.search-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.header-search-form {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #ffffff;
    padding: var(--br-spacing-sm);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 4px;
    border: 1px solid var(--br-border-color);
}

.header-search-form.active {
    display: block;
}

.header-search-form input[type="search"] {
    padding: 8px 12px;
    border: 1px solid var(--br-border-color);
    outline: none;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.header-search-form button {
    background: var(--br-primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
}

/* Menu Lateral Gaveta (Hambúrguer Drawer) */
.br-drawer {
    position: fixed;
    top: 92px; /* 32px topbar + 60px header */
    left: -320px;
    width: 300px;
    height: calc(100vh - 92px);
    background-color: var(--br-topbar-bg);
    z-index: 99;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
    padding: var(--br-spacing-lg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.br-drawer.open {
    left: 0;
}

.br-drawer-overlay {
    display: none;
    position: fixed;
    top: 92px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 92px);
    background-color: rgba(0,0,0,0.5);
    z-index: 98;
}

.br-drawer-overlay.active {
    display: block;
}

/* Links do Menu Gaveta */
.br-drawer-menu {
    list-style: none;
}

.br-drawer-menu li {
    border-bottom: 1px solid #2d2d2d;
}

.br-drawer-menu a {
    display: block;
    color: #e0e0e0;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s, padding-left 0.2s;
}

.br-drawer-menu a:hover {
    color: #ffffff;
    padding-left: var(--br-spacing-sm);
}

/* ----------------------------------------------------
   5. PÁGINA INICIAL (INDEX / HOME) - LAYOUT DE DESTAQUES
   ---------------------------------------------------- */
.destaques-section {
    margin-bottom: var(--br-spacing-xl);
    border-bottom: 1px solid var(--br-border-color);
    padding-bottom: var(--br-spacing-xl);
}

/* Grid G1 para Destaques */
.destaques-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--br-spacing-lg);
}

/* Manchete Principal (Esquerda) */
.destaque-principal {
    display: flex;
    flex-direction: column;
    gap: var(--br-spacing-md);
}

.destaque-principal .destaque-category {
    font-size: 12px;
    font-weight: 800;
    color: var(--br-primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.destaque-principal .destaque-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.destaque-principal .destaque-title a {
    color: var(--br-title-color);
}

.destaque-principal .destaque-title a:hover {
    color: var(--br-primary-color);
}

.destaque-principal .destaque-excerpt {
    font-size: 16px;
    color: var(--br-aux-text-color);
    line-height: 1.4;
}

.destaque-principal .destaque-img-wrapper {
    overflow: hidden;
    border-radius: 4px;
}

.destaque-principal .destaque-img-wrapper img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destaque-principal:hover .destaque-img-wrapper img {
    transform: scale(1.02);
}

/* Destaques Secundários (Coluna Direita) */
.destaques-secundarios {
    display: flex;
    flex-direction: column;
    gap: var(--br-spacing-lg);
}

.destaque-secundario {
    border-bottom: 1px solid var(--br-border-color);
    padding-bottom: var(--br-spacing-md);
}

.destaque-secundario:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.destaque-secundario .destaque-category {
    font-size: 11px;
    font-weight: 800;
    color: var(--br-primary-color);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: inline-block;
}

.destaque-secundario .destaque-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.destaque-secundario .destaque-title a {
    color: var(--br-title-color);
}

.destaque-secundario .destaque-title a:hover {
    color: var(--br-primary-color);
}

.destaque-secundario .destaque-img-wrapper {
    margin-top: var(--br-spacing-sm);
    border-radius: 4px;
    overflow: hidden;
}

/* ----------------------------------------------------
   6. FEED DE NOTÍCIAS (CHRONOLOGICAL FEED)
   ---------------------------------------------------- */
.feed-title {
    font-size: 20px;
    font-weight: 800;
    border-bottom: 2px solid var(--br-primary-color);
    padding-bottom: var(--br-spacing-xs);
    margin-bottom: var(--br-spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.feed-list {
    display: flex;
    flex-direction: column;
}

/* Item Individual do Feed */
.feed-item {
    display: flex;
    justify-content: space-between;
    gap: var(--br-spacing-lg);
    padding: var(--br-spacing-lg) 0;
    border-bottom: 1px solid var(--br-border-color);
}

.feed-item:first-child {
    padding-top: 0;
}

.feed-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-item-meta {
    display: flex;
    align-items: center;
    gap: var(--br-spacing-sm);
    font-size: 11px;
    font-weight: 700;
}

.feed-item-category {
    color: var(--br-primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-item-time {
    color: var(--br-aux-text-color);
}

.feed-item-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.feed-item-title a {
    color: var(--br-title-color);
}

.feed-item-title a:hover {
    color: var(--br-primary-color);
}

.feed-item-excerpt {
    font-size: 14px;
    color: var(--br-aux-text-color);
    line-height: 1.4;
    margin-top: 2px;
}

.feed-item-image {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .feed-layout-large .feed-item-image {
        width: 300px;
        height: 200px;
    }
}

.feed-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feed-item:hover .feed-item-image img {
    transform: scale(1.03);
}

/* Paginação */
.br-pagination {
    display: flex;
    justify-content: center;
    margin: var(--br-spacing-xl) 0;
    gap: var(--br-spacing-xs);
}

.br-pagination a, .br-pagination span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--br-border-color);
    border-radius: 4px;
    color: var(--br-title-color);
    font-weight: 700;
    font-size: 14px;
}

.br-pagination .current {
    background-color: var(--br-primary-color);
    color: #ffffff;
    border-color: var(--br-primary-color);
}

.br-pagination a:hover {
    background-color: var(--br-light-bg);
}

/* ----------------------------------------------------
   7. BARRA LATERAL (SIDEBAR)
   ---------------------------------------------------- */
.widget-area {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--br-spacing-xl);
}

/* Widgets Padrão */
.widget {
    background: #ffffff;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--br-border-color);
    line-height: 1.4;
    font-size: 14px;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li:first-child {
    padding-top: 0;
}

.widget ul li a {
    color: var(--br-text-color);
    font-weight: 600;
    display: inline-block;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: var(--br-primary-color);
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px solid var(--br-title-color);
    padding-bottom: var(--br-spacing-xs);
    margin-bottom: var(--br-spacing-md);
    letter-spacing: 0.5px;
}

/* Widget "Mais Lidas" */
.widget_mais_lidas ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--br-spacing-md);
}

.widget_mais_lidas li {
    display: flex;
    gap: var(--br-spacing-md);
    align-items: flex-start;
}

.mais-lida-rank {
    font-size: 32px;
    font-weight: 800;
    color: var(--br-primary-color);
    line-height: 0.9;
    width: 25px;
    text-align: center;
}

.mais-lida-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.mais-lida-title a {
    color: var(--br-title-color);
}

.mais-lida-title a:hover {
    color: var(--br-primary-color);
}

/* ----------------------------------------------------
   8. MODELO SINGLE (POST INDIVIDUAL)
   ---------------------------------------------------- */
.post-header {
    margin-bottom: var(--br-spacing-lg);
}

.post-header-category {
    font-size: 12px;
    font-weight: 800;
    color: var(--br-primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--br-spacing-sm);
    display: inline-block;
}

.post-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: var(--br-spacing-sm);
    color: var(--br-title-color);
}

.post-subtitle {
    font-size: 18px;
    color: var(--br-aux-text-color);
    line-height: 1.4;
    margin-bottom: var(--br-spacing-md);
}

.post-meta {
    border-top: 1px solid var(--br-border-color);
    border-bottom: 1px solid var(--br-border-color);
    padding: var(--br-spacing-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--br-spacing-sm);
}

.post-author-date {
    font-size: 12px;
    color: var(--br-aux-text-color);
    line-height: 1.5;
}

.post-author-name {
    font-weight: 700;
    color: var(--br-title-color);
}

/* Compartilhamento Social */
.social-share {
    display: flex;
    gap: var(--br-spacing-sm);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 14px;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
    color: #ffffff;
}

.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-whatsapp { background-color: #25d366; }

/* Conteúdo do Post */
.post-content {
    font-size: 18px;
    line-height: 1.6;
    color: var(--br-text-color);
}

.post-content p {
    margin-bottom: var(--br-spacing-lg);
}

.post-content h2, .post-content h3 {
    margin: var(--br-spacing-xl) 0 var(--br-spacing-md) 0;
    font-size: 24px;
}

.post-content img {
    margin: var(--br-spacing-lg) 0;
    border-radius: 4px;
    width: 100%;
}

.post-content figcaption {
    font-size: 12px;
    color: var(--br-aux-text-color);
    margin-top: -12px;
    margin-bottom: var(--br-spacing-lg);
    line-height: 1.4;
}

/* Veja Também Box */
.veja-tambem {
    background-color: var(--br-light-bg);
    border-left: 4px solid var(--br-primary-color);
    padding: var(--br-spacing-md);
    margin: var(--br-spacing-lg) 0;
    border-radius: 0 4px 4px 0;
}

.veja-tambem-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--br-primary-color);
    text-transform: uppercase;
    margin-bottom: var(--br-spacing-xs);
    letter-spacing: 0.5px;
}

.veja-tambem-link {
    font-size: 15px;
    font-weight: 700;
}

.veja-tambem-link a {
    color: var(--br-title-color);
}

.veja-tambem-link a:hover {
    color: var(--br-primary-color);
}

/* Blockquote do G1 */
.post-content blockquote {
    border-left: 4px solid var(--br-primary-color);
    padding-left: var(--br-spacing-lg);
    margin: var(--br-spacing-xl) 0;
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--br-title-color);
}

/* Comentários */
.comments-area {
    margin-top: var(--br-spacing-xl);
    border-top: 2px solid var(--br-border-color);
    padding-top: var(--br-spacing-xl);
}

.comments-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: var(--br-spacing-lg);
    text-transform: uppercase;
}

.comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--br-spacing-lg);
}

.comment-body {
    border-bottom: 1px solid var(--br-border-color);
    padding-bottom: var(--br-spacing-md);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: var(--br-spacing-sm);
    margin-bottom: var(--br-spacing-sm);
    font-size: 13px;
}

.comment-author {
    font-weight: 700;
    color: var(--br-title-color);
}

.comment-metadata {
    color: var(--br-aux-text-color);
    font-size: 11px;
}

.comment-content {
    font-size: 15px;
    line-height: 1.5;
}

.comment-reply {
    margin-top: var(--br-spacing-sm);
    font-size: 13px;
    font-weight: 700;
}

/* Formulário de Comentários */
.comment-respond {
    margin-bottom: var(--br-spacing-xl);
    background-color: var(--br-light-bg);
    padding: var(--br-spacing-lg);
    border-radius: 4px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: var(--br-spacing-md);
}

.comment-form textarea {
    padding: var(--br-spacing-sm);
    border: 1px solid var(--br-border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--br-spacing-md);
}

.comment-form input[type="text"], .comment-form input[type="email"] {
    padding: 10px;
    border: 1px solid var(--br-border-color);
    border-radius: 4px;
    font-size: 14px;
}

.comment-form .form-submit input[type="submit"] {
    background-color: var(--br-primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .form-submit input[type="submit"]:hover {
    background-color: var(--br-primary-hover-color);
}

/* ----------------------------------------------------
   9. ESPAÇOS DE ANÚNCIOS (PUBLICIDADE)
   ---------------------------------------------------- */
.br-ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--br-light-bg);
    border: 1px dashed var(--br-border-color);
    margin: var(--br-spacing-lg) auto;
    position: relative;
    overflow: hidden;
}

.br-ad-wrapper::before {
    content: "PUBLICIDADE";
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 9px;
    font-weight: 700;
    color: var(--br-aux-text-color);
    letter-spacing: 0.5px;
}

.br-ad-topo {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.br-ad-sidebar {
    width: 300px;
    height: 250px; /* Ou 600px */
}

.br-ad-meio-post {
    max-width: 100%;
    width: 300px;
    height: 250px;
    margin: var(--br-spacing-xl) auto;
}

.br-ad-rodape {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

/* ----------------------------------------------------
   10. RODAPÉ (FOOTER)
   ---------------------------------------------------- */
.site-footer {
    background-color: var(--br-topbar-bg);
    color: #b0b0b0;
    padding: var(--br-spacing-xl) 0 var(--br-spacing-lg) 0;
    font-size: 14px;
    border-top: 4px solid var(--br-primary-color);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--br-spacing-lg);
    margin-bottom: var(--br-spacing-xl);
}

.footer-widget-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: var(--br-spacing-md);
    letter-spacing: 0.5px;
}

.footer-widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--br-spacing-sm);
}

.footer-widget a {
    color: #b0b0b0;
}

.footer-widget a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #2d2d2d;
    padding-top: var(--br-spacing-lg);
    text-align: center;
    font-size: 12px;
}

/* ----------------------------------------------------
   11. MEDIA QUERIES (RESPONSIVIDADE)
   ---------------------------------------------------- */
@media (max-width: 991px) {
    .site-main {
        flex-direction: column;
    }

    .widget-area {
        width: 100%;
    }

    .destaques-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --br-spacing-xl: 24px;
    }

    .br-topbar {
        display: none; /* Oculta a barra Globo no celular para economizar espaço */
    }

    .header-editoria {
        font-size: 14px;
    }

    .destaque-principal .destaque-title {
        font-size: 28px;
    }

    .feed-item {
        flex-direction: column-reverse;
        gap: var(--br-spacing-sm);
    }

    .feed-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .post-title {
        font-size: 30px;
    }

    .comment-form-row {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .br-ad-topo, .br-ad-rodape {
        width: 320px;
        height: 50px;
    }
}

/* ====================================================
   12. RECURSOS ADICIONAIS - BR NOTÍCIAS V2
   ==================================================== */

/* --- BANNER ADS ADAPTATIVOS --- */
.br-ad-wrapper:has(.br-ad-picture) {
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    max-width: 100% !important;
}

.br-ad-picture {
    display: block;
    width: 100%;
    height: auto;
}

.br-ad-img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* --- BUSCA EM TELA CHEIA (FULLSCREEN OVERLAY) --- */
body.search-open {
    overflow: hidden;
}

.br-search-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.br-search-fullscreen.open {
    opacity: 1;
    pointer-events: auto;
}

.br-search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.br-search-close:hover {
    transform: scale(1.1);
}

.br-search-fullscreen-content {
    width: 100%;
    max-width: 800px;
    padding: 0 var(--br-spacing-lg);
    text-align: center;
    color: #ffffff;
}

.br-search-fullscreen-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--br-spacing-xl);
    color: #ffffff;
}

/* Customizações do Form de Busca dentro do Fullscreen overlay */
.br-search-fullscreen .search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ffffff !important;
    padding-bottom: 10px;
    background: transparent !important;
}

.br-search-fullscreen .search-form label {
    flex: 1;
}

.br-search-fullscreen .search-field {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 36px !important;
    padding: 10px 0 !important;
    width: 100% !important;
    font-weight: 700;
}

.br-search-fullscreen .search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.br-search-fullscreen .search-submit {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    font-weight: 700 !important;
}

.br-search-fullscreen .search-submit:hover {
    color: var(--br-primary-color) !important;
}

@media (max-width: 767px) {
    .br-search-fullscreen .search-field {
        font-size: 24px !important;
    }
    .br-search-fullscreen .search-submit {
        font-size: 18px !important;
    }
}

/* --- STORIES SECTION & BUBBLES --- */
.br-stories-section {
    background: #ffffff;
    border-bottom: 1px solid var(--br-border-color);
    padding: var(--br-spacing-md) 0;
    margin-bottom: var(--br-spacing-md);
    overflow: hidden;
    margin-top: 16px; /* Espaço entre os stories e a barra de topo */
}

.br-stories-wrapper {
    display: flex;
    gap: var(--br-spacing-md);
    overflow-x: auto;
    padding: var(--br-spacing-xs) 0;
    -webkit-overflow-scrolling: touch;
}

/* Remove scrollbars */
.br-stories-wrapper::-webkit-scrollbar {
    display: none;
}
.br-stories-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.br-story-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    user-select: none;
}

.br-story-thumbnail {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    margin-bottom: var(--br-spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.br-story-bubble:hover .br-story-thumbnail {
    transform: scale(1.05);
}

.br-story-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.br-story-bubble.viewed .br-story-thumbnail {
    background: #cccccc; /* Tons cinzas para visualizado */
}

.br-story-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--br-title-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- STORIES MODAL VISUALIZER --- */
body.stories-open {
    overflow: hidden;
}

.br-stories-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.br-stories-modal.open {
    display: flex;
}

.br-stories-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.br-stories-modal-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    max-height: 800px;
    background: #000000;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 480px) {
    .br-stories-modal-container {
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* Progress bar superior */
.br-stories-progress-container {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10005;
}

.br-story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.br-story-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
}

/* Header do stories */
.br-stories-header {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    z-index: 10004;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
    color: #ffffff;
}

.br-stories-author-info {
    display: flex;
    align-items: center;
    gap: var(--br-spacing-sm);
}

.br-stories-author-name {
    font-size: 14px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.br-stories-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: transform 0.2s;
}

.br-stories-close-btn:hover {
    transform: scale(1.15);
}

/* Body / Imagem */
.br-stories-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-stories-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-stories-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.br-stories-text-content {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    max-height: 35%;
    overflow-y: auto;
}

.br-stories-text-content::-webkit-scrollbar {
    width: 4px;
}
.br-stories-text-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Tap Zones para Navegação */
.br-stories-nav-left, .br-stories-nav-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 25%;
    z-index: 10003;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.br-stories-nav-left {
    left: 0;
}

.br-stories-nav-right {
    right: 0;
}

/* Setas externas de Navegação para Desktop */
.br-stories-nav-left::before, .br-stories-nav-right::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    pointer-events: none;
    line-height: 36px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.br-stories-nav-left::before {
    content: "‹";
    left: 10px;
}

.br-stories-nav-right::before {
    content: "›";
    right: 10px;
}

@media (min-width: 768px) {
    .br-stories-nav-left:hover::before, .br-stories-nav-right:hover::before {
        opacity: 1;
    }
}

/* Footer & Botão */
.br-stories-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: center;
    z-index: 10004;
}

.br-stories-action-btn {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
}

.br-stories-action-btn:hover {
    transform: translateY(-2px);
    background-color: var(--br-light-bg);
    color: #000000;
}

/* --- DESTAQUES VISUAIS (HERO COM IMAGEM DE FUNDO) --- */
.br-hero-destaques {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 8px;
    margin-bottom: var(--br-spacing-xl);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px; /* Espaço entre o hero e a barra de topo */
}

/* Evita margem excessiva se os stories estiverem ativos logo acima */
.br-stories-section + .br-hero-destaques {
    margin-top: 0;
}

.br-hero-main,
.br-hero-secondary {
    position: relative;
    overflow: hidden;
}

.br-hero-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
}

.br-hero-link:hover {
    color: #ffffff;
}

.br-hero-main {
    min-height: 380px;
}

.br-hero-secundarios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.br-hero-secondary {
    flex: 1;
    min-height: 184px;
}

/* Background image fills the card */
.br-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
    will-change: transform;
}

.br-hero-bg--empty {
    background-color: var(--br-topbar-bg);
}

.br-hero-main:hover .br-hero-bg,
.br-hero-secondary:hover .br-hero-bg {
    transform: scale(1.04);
}

/* Dark gradient overlay */
.br-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.15) 70%,
        transparent 100%
    );
    transition: background 0.3s ease;
}

.br-hero-main:hover .br-hero-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.55) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        transparent 100%
    );
}

/* Content container sits above overlay */
.br-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px 20px 20px;
    z-index: 2;
}

/* Category badge (top-left) */
.br-hero-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 10px;
}

/* Titles */
.br-hero-title {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.br-hero-date {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.br-hero-title--main {
    font-size: 30px;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.br-hero-secondary .br-hero-title {
    font-size: 18px;
    letter-spacing: -0.3px;
}

/* Sub-item list (links abaixo do título principal) */
.br-hero-subitems {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.br-hero-subitems li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.88);
}

.br-hero-subitems li::before {
    content: "·";
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: -1px;
}

.br-hero-subitem-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.br-hero-subitem-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Category badge repositioned to top-left of card */
.br-hero-main .br-hero-category,
.br-hero-secondary .br-hero-category {
    position: absolute;
    top: 14px;
    left: 14px;
    margin-bottom: 0;
    z-index: 3;
}

/* Responsive */
@media (max-width: 767px) {
    .br-hero-destaques {
        grid-template-columns: 1fr;
    }

    .br-hero-main {
        min-height: 260px;
    }

    .br-hero-secondary {
        min-height: 160px;
    }

    .br-hero-title--main {
        font-size: 22px;
    }

    .br-hero-secondary .br-hero-title {
        font-size: 16px;
    }

    /* Evita que a categoria e o título se sobreponham no mobile */
    .br-hero-main .br-hero-category,
    .br-hero-secondary .br-hero-category {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
    }

    /* Oculta os links secundários dentro do card principal no mobile para dar espaço e clareza */
    .br-hero-subitems {
        display: none;
    }
}

@media (max-width: 480px) {
    .br-hero-main {
        min-height: 220px;
    }

    .br-hero-title--main {
        font-size: 18px;
    }
}

/* --- GRID SLIDE POR CATEGORIA --- */
.br-grid-slide-section {
    margin-bottom: var(--br-spacing-xl);
    padding: var(--br-spacing-lg) 0;
    border-bottom: 1px solid var(--br-border-color);
    position: relative;
    overflow: hidden;
    --cols-device: var(--cols-desktop, 4);
}


@media (max-width: 991px) {
    .br-grid-slide-section {
        --cols-device: var(--cols-tablet, 2);
    }
}

@media (max-width: 767px) {
    .br-grid-slide-section {
        --cols-device: var(--cols-mobile, 1);
    }
}

.br-grid-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--br-spacing-lg);
}

.br-grid-slide-title {
    font-size: 20px;
    font-weight: 800;
    border-bottom: 2px solid var(--br-primary-color);
    padding-bottom: var(--br-spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-grid-slide-title a {
    color: var(--br-title-color);
}

.br-grid-slide-title a:hover {
    color: var(--br-primary-color);
}

.br-grid-slide-controls {
    display: flex;
    gap: var(--br-spacing-sm);
}

.br-grid-slide-controls button {
    background: var(--br-light-bg);
    border: 1px solid var(--br-border-color);
    color: var(--br-title-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
}

.br-grid-slide-controls button:hover {
    background: var(--br-primary-color);
    color: #ffffff;
    border-color: var(--br-primary-color);
}

.br-grid-slide-slider {
    overflow: hidden;
    width: 100%;
}

.br-grid-slide-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.br-grid-slide-item {
    flex: 0 0 calc(100% / var(--cols-device));
    padding: 0 var(--br-spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--br-spacing-sm);
}

.br-grid-slide-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--br-light-bg);
}

.br-grid-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.br-grid-slide-item:hover .br-grid-slide-thumb img {
    transform: scale(1.03);
}

.br-grid-slide-no-thumb {
    width: 100%;
    height: 100%;
    background: #eaeaea;
}

.br-grid-slide-meta {
    font-size: 11px;
    font-weight: 700;
    color: var(--br-aux-text-color);
}

.br-grid-slide-item-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.br-grid-slide-item-title a {
    color: var(--br-title-color);
}

.br-grid-slide-item-title a:hover {
    color: var(--br-primary-color);
}

/* ====================================================
   13. CABEÇALHO FIXO (STICKY) E ALINHAMENTO DA LOGO
   ==================================================== */

/* Wrapper sticky que engloba topbar + header */
.br-sticky-header {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Garante que a barra superior não desapareça */
.br-sticky-header .br-topbar {
    position: relative;
    z-index: 201;
}

.br-sticky-header .site-header {
    position: relative;
    z-index: 200;
    box-shadow: none; /* sombra já aplicada no wrapper */
}

/* Compensa o espaço do cabeçalho fixo no conteúdo */
body {
    scroll-padding-top: 92px; /* 32px topbar + 60px header */
}

/* ---- LAYOUT DO HEADER COM ALINHAMENTO DA LOGO ---- */

/* Estrutura base: hamburguer | logo | right-group */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--br-spacing-md);
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--br-spacing-md);
    flex-shrink: 0;
}

/* Logo centralizada: usa position absolute para ficar exatamente no centro */
.header-logo-center .site-branding {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

/* Logo à esquerda (padrão) */
.header-logo-left .site-branding {
    position: static;
    transform: none;
    flex: 1;
}

/* Logo à direita */
.header-logo-right {
    flex-direction: row-reverse;
}

.header-logo-right .site-branding {
    position: static;
    transform: none;
}

.header-logo-right .header-right {
    flex-direction: row-reverse;
}

/* Garante que o header-container tenha position:relative para o absolute funcionar */
.header-logo-center {
    position: relative;
}

/* ====================================================
   14. BOTÕES DE COMPARTILHAMENTO ADICIONAIS
   ==================================================== */

/* Print / PDF */
.share-print {
    background-color: #37474f;
    border: none;
    cursor: pointer;
}

.share-print:hover {
    background-color: #263238;
    opacity: 1;
}

/* Snapshot */
.share-snapshot {
    background-color: #c4170c;
    border: none;
    cursor: pointer;
}

.share-snapshot:hover {
    background-color: #a8130a;
    opacity: 1;
}

/* Feedback visual ao capturar snapshot */
.share-snapshot.capturing {
    animation: snapshot-pulse 0.4s ease;
}

@keyframes snapshot-pulse {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.25); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Toast de feedback para snapshot */
.br-snapshot-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.br-snapshot-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ====================================================
   14. BARRA DE COTAÇÕES (TICKER)
   ==================================================== */
.br-ticker-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--br-border-color);
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 99;
}

.br-ticker-container {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.br-ticker-track {
    display: flex;
    width: max-content;
    animation: br-ticker-marquee 30s linear infinite;
}

.br-ticker-track:hover {
    animation-play-state: paused;
}

.br-ticker-items {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
}

.br-ticker-item {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.br-ticker-item.ticker-item-finance {
    padding: 4px 8px;
    border-radius: 0; /* Totalmente reto, sem cantos arredondados */
    border: none; /* Sem contornos */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.br-ticker-item.ticker-item-finance:hover {
    filter: brightness(0.95);
}

/* 1. Destaque específico para o Dólar (Fundo verde reto sem bordas) */
.br-ticker-item.ticker-item-usd {
    background-color: #eafaf1;
}
.br-ticker-item.ticker-item-usd .ticker-label {
    color: #27ae60;
    font-weight: 700;
}
.br-ticker-item.ticker-item-usd .ticker-val {
    color: #196f3d;
}

/* 2. Destaque específico para o Bitcoin (Fundo laranja reto sem bordas) */
.br-ticker-item.ticker-item-btc {
    background-color: #fef5e7;
}
.br-ticker-item.ticker-item-btc .ticker-label {
    color: #d35400;
    font-weight: 700;
}
.br-ticker-item.ticker-item-btc .ticker-val {
    color: #873a03;
}

/* 3. Destaque específico para o Ibovespa (Fundo azul reto sem bordas) */
.br-ticker-item.ticker-item-ibov {
    background-color: #ebf5fb;
}
.br-ticker-item.ticker-item-ibov .ticker-label {
    color: #2980b9;
    font-weight: 700;
}
.br-ticker-item.ticker-item-ibov .ticker-val {
    color: #1b4f72;
}

.br-ticker-item.ticker-item-finance .ticker-change {
    font-weight: 700;
    font-size: 11px;
}

.br-ticker-item .ticker-label {
    color: #666666;
}

.br-ticker-item .ticker-val {
    color: #111111;
    font-weight: 700;
}

.br-ticker-item .ticker-change.up {
    color: #06aa48;
}

.br-ticker-item .ticker-change.down {
    color: #ff3b30;
}

@keyframes br-ticker-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ====================================================
   15. ESTILOS PARA IMPRESSÃO / EXPORTAÇÃO PDF
   ==================================================== */
@media print {
    /* Oculta elementos de navegação e interface */
    .br-topbar,
    .br-sticky-header,
    .site-header,
    .br-drawer,
    .br-drawer-overlay,
    .br-search-fullscreen,
    .widget-area,
    .site-footer,
    .social-share,
    .br-stories-section,
    .br-stories-modal,
    .br-hero-destaques,
    .br-grid-slide-section,
    .br-ad-wrapper,
    .br-pagination-wrapper,
    .veja-tambem,
    .comments-area,
    .menu-toggle,
    .nav-links,
    #wpadminbar {
        display: none !important;
    }

    /* Reseta layout para coluna única */
    body {
        font-size: 12pt;
        line-height: 1.6;
        color: #000000;
        background: #ffffff;
    }

    .container,
    .site-main,
    .content-area {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .post-title {
        font-size: 22pt;
        letter-spacing: -0.5px;
    }

    .post-content {
        font-size: 11pt;
    }

    /* Mostra URL dos links */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }

    /* Evita quebra de página dentro de elementos importantes */
    article,
    h1, h2, h3,
    .post-featured-image {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
