/*
Theme Name: Portal Notícias Clássico
Theme URI: https://exemplo.com
Author: Você
Description: Tema simples e funcional para portal de notícias, estilo jornal clássico. Página inicial com destaque, últimas notícias e categorias.
Version: 1.0
Requires PHP: 7.4
Text Domain: portal-noticias
*/

/* ===== RESET BÁSICO ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Georgia, 'Times New Roman', serif;
    color: #1a1a1a;
    background: #fdfdfb;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER / MASTHEAD ===== */
.site-topbar {
    background: #1a1a1a;
    color: #eee;
    font-size: 0.8rem;
    padding: 6px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.site-masthead {
    text-align: center;
    padding: 30px 0 15px;
    border-bottom: 4px double #1a1a1a;
}

.site-masthead .site-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.site-masthead .site-title a { color: #1a1a1a; }

.site-masthead .site-description {
    font-style: italic;
    color: #666;
    margin-top: 6px;
    font-size: 0.95rem;
}

/* ===== NAV ===== */
.site-nav {
    background: #fdfdfb;
    border-bottom: 1px solid #1a1a1a;
}
.site-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.site-nav ul li a {
    display: block;
    padding: 12px 18px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-right: 1px solid #ddd;
}
.site-nav ul li:last-child a { border-right: none; }
.site-nav ul li a:hover { background: #1a1a1a; color: #fff; text-decoration: none; }

/* ===== DESTAQUE (HOME) ===== */
.featured-post {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid #ccc;
}
.featured-post img { width: 100%; object-fit: cover; max-height: 420px; }
.featured-post .category-tag {
    display: inline-block;
    background: #a30000;
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 3px 10px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.featured-post h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}
.featured-post h2 a:hover { text-decoration: none; color: #a30000; }
.featured-post .excerpt { color: #333; font-size: 1.05rem; }
.featured-post .meta { color: #888; font-size: 0.8rem; margin-top: 12px; text-transform: uppercase; }

/* ===== GRID DE ÚLTIMAS NOTÍCIAS ===== */
.section-title {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #1a1a1a;
    padding-bottom: 8px;
    margin: 40px 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 20px;
}
.news-card { border-bottom: 1px solid #eee; padding-bottom: 20px; }
.news-card img { margin-bottom: 12px; height: 180px; object-fit: cover; width: 100%; }
.news-card .category-tag {
    color: #a30000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-card h3 { font-size: 1.15rem; margin: 8px 0; line-height: 1.3; }
.news-card h3 a:hover { color: #a30000; text-decoration: none; }
.news-card .meta { color: #999; font-size: 0.75rem; text-transform: uppercase; }

/* ===== BLOCO POR CATEGORIA ===== */
.category-block { padding: 20px 0 10px; border-bottom: 1px solid #ccc; }
.category-block .section-title a { float: right; font-size: 0.75rem; color: #a30000; letter-spacing: 0; text-transform: none; }

/* ===== SINGLE / PAGE ===== */
.single-content, .page-content {
    max-width: 780px;
    margin: 40px auto;
}
.single-content .category-tag {
    display: inline-block;
    background: #a30000;
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 3px 10px;
    margin-bottom: 12px;
}
.single-content h1, .page-content h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
}
.single-content .meta { color: #888; font-size: 0.85rem; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 20px; text-transform: uppercase; }
.single-content .entry-content, .page-content .entry-content { font-size: 1.1rem; }
.single-content .entry-content p, .page-content .entry-content p { margin-bottom: 18px; }
.single-content .entry-content img, .page-content .entry-content img { margin: 20px 0; }
.single-content .entry-content h2, .single-content .entry-content h3 { margin: 30px 0 12px; }

/* ===== RELACIONADAS ===== */
.related-posts { margin-top: 50px; border-top: 3px solid #1a1a1a; padding-top: 20px; }
.related-posts .section-title { margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

/* ===== ARQUIVO / CATEGORIA ===== */
.archive-header { padding: 30px 0 10px; border-bottom: 2px solid #1a1a1a; margin-bottom: 20px; }
.archive-header h1 { text-transform: uppercase; font-size: 1.8rem; letter-spacing: 0.5px; }
.archive-list .news-card { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; }
.archive-list .news-card img { height: 140px; margin-bottom: 0; }

/* ===== PAGINAÇÃO ===== */
.pagination { text-align: center; margin: 30px 0; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ccc;
    margin: 0 3px;
    font-size: 0.85rem;
}
.pagination .current { background: #1a1a1a; color: #fff; }

/* ===== SIDEBAR (opcional, usado em single/page se houver widgets) ===== */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.widget { margin-bottom: 30px; border-top: 3px solid #1a1a1a; padding-top: 12px; }
.widget-title { font-weight: 700; text-transform: uppercase; margin-bottom: 12px; font-size: 0.95rem; }

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    margin-top: 60px;
    padding: 40px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 25px; }
.footer-grid h4 { color: #fff; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 0.5px; }
.footer-grid ul li { margin-bottom: 6px; }
.footer-grid ul li a { color: #ccc; font-size: 0.9rem; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: #888; border-top: 1px solid #333; padding-top: 15px; }

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .featured-post { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .archive-list .news-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-masthead .site-title { font-size: 2rem; }
    .news-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .site-nav ul { flex-direction: column; text-align: center; }
    .site-nav ul li a { border-right: none; border-bottom: 1px solid #eee; }
}
