:root {
    --azul-gazeta: #003B73;
    --laranja-detalhe: #E87A00;
    --texto-escuro: #111111;
    --texto-cinza: #4A4A4A;
    --fundo-site: #F8F9FA;
    --fundo-card: #FFFFFF;
    --borda: #E2E8F0;

    --fonte-titulo: 'Playfair Display', Georgia, serif;
    --fonte-corpo: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--fonte-corpo);
    background-color: var(--fundo-site);
    color: var(--texto-escuro);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Topo */
.top-bar {
    background-color: var(--azul-gazeta);
    color: #FFFFFF;
    font-size: 0.825rem;
    font-weight: 500;
    padding: 8px 20px;
    text-align: center;
    letter-spacing: 0.5px;
}
header {
    background-color: var(--fundo-card);
    border-bottom: 1px solid var(--borda);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ALTERADO: logo recortado (sem margens), então definimos a largura */
.logo-principal {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
}
nav {
    margin-top: 25px;
    display: flex;
    gap: 30px;
}
nav a {
    text-decoration: none;
    color: var(--texto-escuro);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
nav a:hover { color: var(--azul-gazeta); }
/* NOVO: seção atual destacada no menu */
nav a.ativo {
    color: var(--azul-gazeta);
    border-bottom: 2px solid var(--laranja-detalhe);
    padding-bottom: 2px;
}

/* Faixa de Notícias */
.ticker-container {
    background-color: #111111;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid var(--laranja-detalhe);
    height: 40px;
}
.ticker-badge {
    background-color: var(--laranja-detalhe);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: 0.5px;
}
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 50s linear infinite; /* ALTERADO: 35s -> 50s (mais texto) */
}
.ticker-move:hover { animation-play-state: paused; }
.ticker-item { display: inline-block; padding: 0 25px; font-size: 0.875rem; color: #E2E8F0; }
.ticker-item strong { color: var(--laranja-detalhe); margin-right: 5px; }
/* NOVO: títulos do ticker são links */
.ticker-item a { color: inherit; text-decoration: none; }
.ticker-item a:hover { text-decoration: underline; }

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

/* Container Principal */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h1, h2, h3, .section-title {
    font-family: var(--fonte-titulo);
    color: var(--texto-escuro);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tag {
    display: inline-block;
    background-color: var(--azul-gazeta);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
    text-decoration: none; /* NOVO: a tag também pode ser link na matéria */
}
.tag.cotidiano { background-color: var(--laranja-detalhe); }
.tag.economia { background-color: #2E7D32; }
.tag.opiniao { background-color: #6A1B9A; } /* NOVO */

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.card {
    background: var(--fundo-card);
    border: 1px solid var(--borda);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.card-img-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #E9ECEF;
}
.card-content { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.card h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--texto-cinza); margin-bottom: 15px; }

.meta-info {
    font-size: 0.8rem;
    color: #888888;
    margin-top: auto;
    border-top: 1px solid #F0F0F0;
    padding-top: 12px;
    font-weight: 500;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--azul-gazeta);
    display: inline-block;
}

/* NOVO: página de seção e mensagem de lista vazia */
.page-header { margin-bottom: 10px; }
.vazio { color: var(--texto-cinza); padding: 20px 0; }

/* NOVO: página da matéria */
.artigo { max-width: 760px; margin: 0 auto; }
.artigo h1 { font-size: 2.25rem; line-height: 1.2; margin: 10px 0 12px; }
.artigo .meta-info { border-top: 0; padding-top: 0; margin-top: 0; margin-bottom: 20px; }
.artigo-img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 24px; }
.artigo-corpo { font-size: 1.1rem; line-height: 1.8; color: #222222; }
.artigo-corpo p { margin-bottom: 1.2em; }
.artigo-corpo h2 { font-size: 1.5rem; margin: 1.6em 0 0.6em; }
.artigo-corpo a { color: var(--azul-gazeta); }
.artigo-corpo blockquote {
    border-left: 4px solid var(--laranja-detalhe);
    padding-left: 16px;
    color: var(--texto-cinza);
    margin: 1.4em 0;
}

footer {
    background-color: var(--texto-escuro);
    color: white;
    padding: 50px 20px 25px;
    margin-top: 60px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2D2D2D;
    padding-bottom: 30px;
    margin-bottom: 20px;
}
/* ALTERADO: sem filter. O PNG novo (Logotipo_GS_branco.png) já é branco e transparente */
.logo-rodape { width: 72px; height: auto; display: block; }
.footer-links a {
    color: #A0A0A0;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #FFFFFF; }
.copyright { text-align: center; color: #777777; font-size: 0.8rem; }

@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links a { margin: 0 10px; }
}
@media (max-width: 600px) {
    nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .news-grid { grid-template-columns: 1fr; }
    .artigo h1 { font-size: 1.75rem; }
}
