/*
Theme Name: GNews Portal
Author: Desenvolvedor
Description: Tema Completo (v26) - Widget Econômico com API Real-time, sem Badge PRO, Bitcoin adicionado e cores ajustadas.
Version: 26.0
*/

:root {
    --gnews-primary: #002452; 
    --gnews-primary-hover: #001838; 
    --gnews-secondary: #0056b3; 
    --gnews-accent: #ffc107; 
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.12);
    --radius-card: 12px;
    --radius-img: 8px;
    --radius-pill: 30px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f7f9fc;
    color: #333;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header & Menu Sanduíche */
.site-header { 
    background: #fff; 
    box-shadow: var(--shadow-sm); 
    position: relative; 
    z-index: 1000; 
}
.top-bar { 
    background: linear-gradient(135deg, var(--gnews-primary) 0%, var(--gnews-primary-hover) 100%);
    padding: 15px 0; 
    box-shadow: 0 4px 12px rgba(0,36,82,0.2);
}
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; position: relative; min-height: 38px; }

.header-left { display: flex; align-items: center; }

.menu-toggle-btn {
    background: none; border: none; color: #fff; font-size: 28px; cursor: pointer;
    margin-right: 7px; padding: 0; display: flex; align-items: center;
    transition: var(--transition-smooth);
}
.menu-toggle-btn:hover { transform: scale(1.05); }

.menu-toggle-label {
    color: #fff; font-size: 15px; font-weight: 600; line-height: 1;
}

.logo-category {
    color: #fff; font-size: 18px; font-weight: 300; text-decoration: none;
    margin-left: 14px; letter-spacing: -0.5px; text-transform: lowercase;
}

.logo {
    color: #fff; font-size: 32px; font-weight: bold; text-decoration: none; letter-spacing: -1px;
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}

/* Sidebar Menu (Sanduíche Aberto) */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,36,82,0.4); backdrop-filter: blur(3px); z-index: 9998;
    display: none; opacity: 0; transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }

.sidebar-menu {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
    background: #fff; z-index: 9999; box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow-y: auto;
    border-radius: 0 20px 20px 0;
}
.sidebar-menu.active { left: 0; }

.sidebar-header {
    background: linear-gradient(135deg, var(--gnews-primary) 0%, var(--gnews-primary-hover) 100%);
    padding: 20px; display: flex; justify-content: space-between; align-items: center;
    border-radius: 0 20px 0 0;
}
.sidebar-header .logo { font-size: 24px; }
.sidebar-close-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; transition: transform 0.2s; }
.sidebar-close-btn:hover { transform: rotate(90deg); }

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav ul li { border-bottom: 1px solid #f0f0f0; }
.sidebar-nav ul li a {
    display: block; padding: 16px 24px; color: #333;
    text-decoration: none; font-weight: 600; font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.sidebar-nav ul li a:hover { background: #f4f7fb; color: var(--gnews-primary); padding-left: 28px; }

.sidebar-nav ul li.has-children > a.highlight-cat {
    background-color: #f4f7fb; color: var(--gnews-primary);
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-nav ul li.has-children > a.highlight-cat::after {
    content: '▼'; font-size: 10px; transition: transform 0.3s;
}
.sidebar-nav ul li.has-children.open > a.highlight-cat::after { transform: rotate(180deg); }
.sidebar-submenu { display: none; background-color: #fff; border-top: 1px solid #f0f0f0; }
.sidebar-submenu li { border-bottom: 1px dashed #f5f5f5; }
.sidebar-submenu li:last-child { border-bottom: none; }
.sidebar-submenu li a { padding: 12px 20px 12px 40px; font-size: 14px; font-weight: normal; color: #666; }
.sidebar-submenu li a.ver-tudo { font-weight: bold; color: var(--gnews-primary); }

/* =========================================
   DESTAQUES (HOME E CATEGORIAS)
========================================= */
.destaques-principais { padding: 40px 0 20px 0; border-bottom: 2px solid transparent; margin-bottom: 30px; }
.grid-destaques { display: grid; gap: 20px; }

.noticia-card { 
    position: relative; 
    border-radius: var(--radius-card); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    background: #fff;
    transform: translateZ(0);
}
.noticia-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px) scale(1.005);
}

.link-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; }

.noticia-com-foto { background: #000; border: none; }
.noticia-com-foto img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; display: block; opacity: 0.85; 
    transition: opacity 0.4s, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); 
    z-index: 1; 
}
.noticia-com-foto:hover img { 
    opacity: 0.95; 
    transform: scale(1.03); 
}
.noticia-com-foto .noticia-conteudo { 
    position: absolute; bottom: 0; left: 0; right: 0; padding: 50px 25px 25px 25px; 
    background: linear-gradient(to top, rgba(0,15,35,0.95) 0%, rgba(0,15,35,0.6) 60%, rgba(0,0,0,0) 100%); 
    pointer-events: none; z-index: 3; 
}
.noticia-com-foto .noticia-categoria { 
    color: #fff; background-color: var(--gnews-primary); 
    padding: 6px 12px; border-radius: var(--radius-pill); 
    display: inline-block; font-size: 11px; text-shadow: none; 
    margin-bottom: 12px; font-weight: bold; letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.noticia-com-foto .noticia-titulo { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.6); margin-bottom: 8px; }
.noticia-com-foto .noticia-subtitulo-home { color: #e0e6ed; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

.grid-destaques.layout-1 { grid-template-columns: 1fr; width: 100%; }
.grid-destaques.layout-1 .destaque-1 { min-height: 500px; }
.grid-destaques.layout-1 .destaque-1 .noticia-titulo { font-size: 48px; line-height: 1.1; }
.grid-destaques.layout-1 .destaque-1 .noticia-subtitulo-home { font-size: 22px; }

.grid-destaques.layout-2 { grid-template-columns: repeat(2, 1fr); }
.grid-destaques.layout-2 .noticia-card { min-height: 400px; }
.grid-destaques.layout-2 .noticia-titulo { font-size: 32px; }

.grid-destaques.layout-3 { grid-template-columns: 6fr 4fr; grid-template-rows: repeat(2, 280px); gap: 20px; }
.grid-destaques.layout-3 .destaque-1 { grid-column: 1 / 2; grid-row: 1 / 3; height: 100%; }
.grid-destaques.layout-3 .destaque-1 .noticia-titulo { font-size: 44px; }
.grid-destaques.layout-3 .destaque-2, .grid-destaques.layout-3 .destaque-3 { grid-column: 2 / 3; height: 100%; }
.grid-destaques.layout-3 .destaque-2 { grid-row: 1 / 2; }
.grid-destaques.layout-3 .destaque-3 { grid-row: 2 / 3; }
.grid-destaques.layout-3 .destaque-2 .noticia-titulo, .grid-destaques.layout-3 .destaque-3 .noticia-titulo { font-size: 26px; }

.grid-destaques.layout-3 .noticia-com-foto.destaque-2 .noticia-subtitulo-home,
.grid-destaques.layout-3 .noticia-com-foto.destaque-3 .noticia-subtitulo-home { display: none; }
.grid-destaques.layout-3 .noticia-com-foto.destaque-2 .noticia-conteudo,
.grid-destaques.layout-3 .noticia-com-foto.destaque-3 .noticia-conteudo { padding-bottom: 25px; }

.noticia-sem-foto { background: #fff; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: center; }
.noticia-sem-foto.destaque-1 { min-height: 250px; }
.noticia-sem-foto.destaque-2, .noticia-sem-foto.destaque-3 { min-height: 200px; }
.noticia-sem-foto .noticia-conteudo { padding: 35px; position: static; background: none; }
.noticia-sem-foto .noticia-titulo { color: #111; text-shadow: none; }
.noticia-sem-foto .noticia-subtitulo-home { color: #666; text-shadow: none; display: block !important; }

/* Tipografia e Títulos */
.noticia-categoria { 
    color: var(--gnews-primary); font-weight: 700; font-size: 12px; display: inline-block; 
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(0, 36, 82, 0.08); padding: 4px 10px; border-radius: var(--radius-pill);
}
.noticia-titulo { font-size: 22px; line-height: 1.2; color: #111; margin: 0 0 10px 0; font-weight: 800; letter-spacing: -0.5px; }
.noticia-sem-foto:hover .noticia-titulo { color: var(--gnews-primary); }
.noticia-subtitulo-home, .noticia-resumo { font-size: 16px; color: #555; line-height: 1.5; margin: 0; }
.ultimas-noticias-header { font-size: 26px; border-left: 5px solid var(--gnews-primary); padding-left: 15px; margin-bottom: 30px; color: #111; font-weight: 800; letter-spacing: -0.5px; }
.categoria-titulo-pagina { margin: 40px 0 20px; font-size: 36px; color: var(--gnews-primary); padding-bottom: 15px; border-bottom: 3px solid rgba(0,36,82,0.1); font-weight: 800; }

/* =========================================
   LAYOUT 70/30 (FEED DE NOTÍCIAS + WIDGETS)
========================================= */
.layout-conteudo-principal { display: flex; gap: 40px; margin-top: 10px; }
.coluna-feed { flex: 0 0 68%; max-width: 68%; }
.coluna-widgets { flex: 0 0 32%; max-width: 32%; }

.widget-area {
    background: #fff; padding: 25px; border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.02);
    margin-bottom: 30px;
}
.widget-area h3.widget-title {
    font-size: 18px; color: var(--gnews-primary);
    border-bottom: 2px solid rgba(0,36,82,0.1); padding-bottom: 12px;
    margin-top: 0; margin-bottom: 20px; font-weight: 800; text-transform: uppercase;
}

/* Feed Vertical Moderno (Lista em Cards 3D) */
.feed-lista { display: flex; flex-direction: column; gap: 25px; }
.feed-item { 
    display: flex; gap: 25px; padding: 20px; background: #fff; 
    border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth); border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}
.feed-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feed-item .feed-imagem { 
    flex: 0 0 260px; height: 170px; border-radius: var(--radius-img); overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.feed-item .feed-imagem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.feed-item:hover .feed-imagem img { transform: scale(1.03); }
.feed-item .feed-texto { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.feed-item:hover .noticia-titulo { color: var(--gnews-primary); }

/* Frontend Edit Button */
.btn-editar-frontend { 
    display: inline-block; background: var(--gnews-accent); color: #000; 
    padding: 6px 14px; font-size: 12px; text-decoration: none; 
    border-radius: var(--radius-pill); font-weight: bold; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); border: none; cursor: pointer; 
    position: absolute; top: 15px; right: 15px; z-index: 10; transition: all 0.2s;
}
.btn-editar-frontend:hover { background: #e0a800; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Modal Frontend */
.gnews-modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,15,35,0.7); backdrop-filter: blur(4px); }
.gnews-modal-content { background-color: #fff; margin: 8% auto; padding: 30px; border: none; width: 90%; max-width: 600px; border-radius: var(--radius-card); box-shadow: var(--shadow-lg); }
.gnews-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; transition: color 0.2s; }
.gnews-close:hover { color: var(--gnews-primary); }
.gnews-modal-title { font-size: 24px; margin-top: 0; border-bottom: 2px solid rgba(0,36,82,0.1); padding-bottom: 15px; color: var(--gnews-primary); font-weight: 800; }
.gnews-form-group { margin-bottom: 20px; }
.gnews-form-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 14px; color: #444; }
.gnews-form-group input, .gnews-form-group textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 15px; background: #fdfdfd; transition: border-color 0.2s; }
.gnews-form-group input:focus, .gnews-form-group textarea:focus { border-color: var(--gnews-primary); outline: none; }
.gnews-btn-salvar { background: var(--gnews-primary); color: #fff; border: none; padding: 14px 24px; font-size: 16px; font-weight: bold; border-radius: var(--radius-pill); cursor: pointer; box-shadow: 0 4px 10px rgba(0,36,82,0.2); transition: all 0.2s; }
.gnews-btn-salvar:hover { background: var(--gnews-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,36,82,0.3); }

/* =========================================
   PÁGINA DO ARTIGO (SINGLE)
========================================= */
.artigo-conteudo { padding: 50px; background: #fff; max-width: 820px; margin: 40px auto; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.artigo-header { margin-bottom: 30px; position: relative; }
.artigo-categoria { color: #fff; background: var(--gnews-primary); padding: 6px 14px; border-radius: var(--radius-pill); font-weight: bold; font-size: 13px; text-transform: uppercase; margin-bottom: 20px; display: inline-block; letter-spacing: 0.5px; text-decoration: none; }
.artigo-titulo { font-size: 46px; line-height: 1.15; color: #111; margin: 0 0 15px 0; letter-spacing: -1px; font-weight: 800; }
.artigo-subtitulo { font-size: 24px; color: #555; line-height: 1.4; margin-bottom: 25px; font-weight: normal; }
.artigo-meta { font-size: 14px; color: #777; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; padding: 15px 0; margin-bottom: 35px; }
.artigo-meta span { display: block; }
.artigo-meta .autor { font-weight: bold; color: var(--gnews-primary); font-size: 15px; margin-bottom: 4px; }
.artigo-imagem-destaque { margin-bottom: 40px; }
.artigo-imagem-destaque img { width: 100%; height: auto; border-radius: var(--radius-img); box-shadow: var(--shadow-sm); }
.artigo-imagem-legenda { font-size: 13px; color: #888; margin-top: 10px; text-align: right; font-style: italic; }
.artigo-texto { font-size: 19px; line-height: 1.7; color: #222; margin-bottom: 40px; }
.artigo-texto p { margin-bottom: 25px; }
.artigo-texto h2 { font-size: 26px; margin: 40px 0 20px; color: var(--gnews-primary); font-weight: 800; }

/* =========================================
   NOTÍCIAS RECOMENDADAS / VEJA TAMBÉM
========================================= */
.artigo-relacionados {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid #edf1f7;
}

.relacionados-cabecalho {
    font-size: 24px;
    color: var(--gnews-primary);
    font-weight: 800;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.relacionado-card {
    background: #fbfcfe;
    border: 1px solid #edf1f7;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.relacionado-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,36,82,0.15);
}

.relacionado-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.relacionado-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #eef2f6;
}

.relacionado-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.relacionado-card:hover .relacionado-thumb img {
    transform: scale(1.05);
}

.relacionado-corpo {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.relacionado-corpo .noticia-categoria {
    align-self: flex-start;
    margin-bottom: 8px;
    font-size: 11px;
    padding: 3px 8px;
}

.relacionado-titulo-post {
    font-size: 16px;
    line-height: 1.3;
    color: #111;
    margin: 0;
    font-weight: 700;
    transition: color 0.2s;
}

.relacionado-card:hover .relacionado-titulo-post {
    color: var(--gnews-primary);
}

.site-footer { background: var(--gnews-primary); color: #fff; padding: 10px 0; text-align: center; margin-top: 40px; }

/* Responsivo */
@media (max-width: 992px) {
    .grid-destaques.layout-3 { grid-template-columns: 1fr; grid-template-rows: auto; }
    .grid-destaques.layout-3 .destaque-1, .grid-destaques.layout-3 .destaque-2, .grid-destaques.layout-3 .destaque-3 { grid-column: 1 / -1; }
    .grid-destaques.layout-3 .destaque-1 { grid-row: auto; min-height: 400px; }
    .grid-destaques.layout-3 .destaque-2 { grid-row: auto; min-height: 280px; }
    .grid-destaques.layout-3 .destaque-3 { grid-row: auto; min-height: 280px; }
    .grid-destaques.layout-3 .noticia-com-foto.destaque-2 .noticia-subtitulo-home,
    .grid-destaques.layout-3 .noticia-com-foto.destaque-3 .noticia-subtitulo-home { display: block; }
    
    .layout-conteudo-principal { flex-direction: column; }
    .coluna-feed, .coluna-widgets { flex: 0 0 100%; max-width: 100%; }
    
    .artigo-conteudo { padding: 30px 20px; margin: 20px 10px; }
    .relacionados-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-destaques.layout-2 { grid-template-columns: 1fr; }
    .grid-destaques.layout-1 .destaque-1 .noticia-titulo { font-size: 32px; }
    .grid-destaques.layout-1 .destaque-1 { min-height: 350px; }
    .artigo-titulo { font-size: 34px; }
    .artigo-subtitulo { font-size: 20px; }
    
    .feed-item { flex-direction: column; gap: 15px; padding: 15px; }
    .feed-item .feed-imagem { flex: none; width: 100%; height: auto; max-height: 250px; }
}

/* =========================================
   PESQUISA NO HEADER (BUSCAR)
========================================= */
.header-left { display: flex; align-items: center; }

.gnews-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-pill);
    overflow: hidden;
    width: 280px;
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.gnews-search-form:focus-within {
    box-shadow: 0 0 0 2px var(--gnews-accent), inset 0 1px 3px rgba(0,0,0,0.1);
}
.gnews-search-input {
    border: none;
    padding: 10px 15px;
    font-size: 15px;
    width: 100%;
    outline: none;
    color: #333;
    background: transparent;
    font-family: inherit;
}
.gnews-search-input::placeholder {
    color: #999;
}
.gnews-search-submit {
    background: transparent;
    border: none;
    color: var(--gnews-primary);
    padding: 0 15px 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}
.gnews-search-submit:hover {
    color: var(--gnews-primary-hover);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gnews-search-form { width: 160px; }
    .logo { font-size: 26px; }
}
@media (max-width: 480px) {
    .gnews-search-form { width: 120px; }
    .gnews-search-input { padding: 8px 10px; font-size: 13px; }
}

/* =========================================
   WIDGET ECONOMIA (ESTILO VALOR PRO / B3)
========================================= */
/* Remove o padding do container padrão do WordPress APENAS para este widget, para ele grudar nas bordas */
.widget_gnews_economia_api_widget {
    padding: 0 !important;
}
.widget_gnews_economia_api_widget .widget-title {
    display: none; /* Esconde o título padrão pois o widget já tem o próprio header */
}

.gnews-widget-economia {
    background: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    position: relative;
}

.eco-loading {
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: rgba(255,255,255,0.9); display: flex; justify-content: center; 
    align-items: center; z-index: 10; font-weight: bold; color: var(--gnews-primary);
}

.eco-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid #f0f0f0;
}
.eco-header h4 { margin: 0; font-size: 18px; font-weight: 800; color: #222; }
.eco-badge { font-size: 12px; color: #5a738e; font-weight: bold; display: flex; align-items: center; gap: 4px; }
.eco-badge svg { width: 16px; height: 16px; fill: #5a738e; }

.eco-body { padding: 20px; }

/* Ibovespa Section */
.eco-section-ibov { margin-bottom: 20px; }
.eco-ibov-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 15px; }

.eco-ibov-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.eco-ibov-data { display: flex; flex-direction: column; }
.eco-var-grande { font-size: 32px; line-height: 1; font-weight: 300; margin-bottom: 8px; }
.eco-pts-pequeno { font-size: 16px; color: #666; }

.eco-chart-container {
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.eco-sparkline { width: 100%; height: 40px; border-bottom: 1px dotted #ccc; padding-bottom: 5px; margin-bottom: 5px; }
.eco-chart-labels { width: 100%; display: flex; justify-content: space-between; font-size: 11px; color: #999; }

.eco-update-text { font-size: 13px; color: #666; margin-top: 15px; }

.eco-divider { border: 0; border-top: 1px solid #eee; margin: 20px 0; }

/* Moedas Section */
.eco-section-moedas h5 { font-size: 17px; margin: 0 0 15px 0; color: #222; font-weight: 700; }
.eco-moeda-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 12px; color: #444; align-items: center;}
.eco-moeda-nome { flex: 1; }
.eco-moeda-val { width: 90px; text-align: right; color: #555;}
.eco-moeda-var { width: 70px; text-align: right; font-weight: 500; }

.eco-positivo { color: #50a72e; }
.eco-negativo { color: #d32f2f; }
.eco-neutro { color: #777; }

/* Footer */
.eco-footer { border-top: 1px solid #f0f0f0; padding: 15px 20px; text-align: left; }
.eco-footer a { color: var(--gnews-primary); text-decoration: none; font-weight: bold; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s; }
.eco-footer a:hover { color: var(--gnews-primary-hover); text-decoration: underline; }

/* Ajuste de alinhamento e largura dos valores de moeda para caber R$ perfeitamente */
.eco-moeda-val {
    width: 140px !important;
    text-align: right;
    color: #333;
    font-weight: 600;
}



/* =========================================
   LOGO CATEGORY (RESPONSIVO)
========================================= */
@media (max-width: 768px) {
    .logo-category {
        font-size: 24px !important;
        margin-left: 4px !important;
        letter-spacing: -0.5px !important;
    }
}
@media (max-width: 480px) {
    .logo-category {
        font-size: 20px !important;
    }
}

/* =========================================
   TICKER HORIZONTAL E ALTAS/BAIXAS
========================================= */
.eco-ticker-container {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.02);
}
.eco-ticker-item {
    display: flex;
    align-items: center;
    border-right: 1px solid #eaeaea;
    padding-right: 30px;
}
.eco-ticker-item:last-child { border-right: none; padding-right: 0; }
.eco-ticker-label { font-weight: 800; color: var(--gnews-primary); text-transform: uppercase; font-size: 14px;}

/* Tabs Altas e Baixas */
.altas-baixas-body { padding: 10px 20px 20px; }
.altas-baixas-grid { display: grid; grid-template-columns: 1fr; gap: 15px; } /* MUDANÇA: de 1fr 1fr para 1fr */
.altas-baixas-col { min-width: 0; background: #fafafa; padding: 15px; border-radius: 8px; border: 1px solid #eee; } /* Adicionado fundo e borda para as colunas */
.ab-title { font-size: 15px; margin: 0 0 15px 0; color: #222; font-weight: 700; display: block; padding-bottom: 8px; border-bottom: 2px solid; text-align: center;} /* Centralizado e ajustado tamanho */
.ab-title-alta { border-bottom-color: #50a72e; color: #50a72e; } /* Cor verde no título */
.ab-title-baixa { border-bottom-color: #d32f2f; color: #d32f2f; } /* Cor vermelha no título */

.altas-baixas-tabs { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 15px; }
.ab-tab { 
    flex: 1; text-align: center; padding: 12px 10px; background: none; border: none; 
    font-weight: bold; cursor: pointer; color: #888; transition: 0.2s; font-size: 14px;
}
.ab-tab.active { color: var(--gnews-primary); border-bottom: 2px solid var(--gnews-primary); margin-bottom: -2px; }
.ab-tab:hover { color: var(--gnews-primary); }

.ab-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #e0e0e0; } /* Ajuste de padding e cor da borda */
.ab-item:last-child { border-bottom: none; padding-bottom: 0;}
.ab-stock { font-weight: 700; width: 35%; color: #333; font-size: 14px;} /* Ajuste de larguras e tamanhos */
.ab-price { width: 35%; text-align: center; color: #555; font-weight: 600; font-size: 14px;}
.ab-change { width: 30%; text-align: right; font-weight: bold; font-size: 14px; padding-left: 5px;}

/* Custom Scrollbar for Ticker */
.eco-ticker-container::-webkit-scrollbar { height: 6px; }
.eco-ticker-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px;}
.eco-ticker-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px;}
.eco-ticker-container::-webkit-scrollbar-thumb:hover { background: #aaa; }

.eco-ticker-container {
    margin-bottom: 15px; /* Mais respiro entre o ticker e a capa */
}


@media (max-width: 700px) {
    .altas-baixas-grid { grid-template-columns: 1fr; gap: 10px; }
    .logo { font-size: 28px; }
    .menu-toggle-label { font-size: 14px; }
}
