/*
Theme Name: News Famous
Theme URI: https://newsfamous.example.com/
Author: News Famous Team
Author URI: https://newsfamous.example.com/
Description: News Famous é um tema WordPress leve, rápido e moderno para sites de música, entretenimento e notícias. Inspirado em portais de notícias como a Folha de Maputo, com carregamento ultra-rápido, design limpo, totalmente editável e responsivo. Seções organizadas (Em Destaque, categorias), cabeçalho com data e menu, suporte a widgets, banners publicitários e rodapé completo.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-famous
Tags: news, music, entertainment, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, block-styles, wide-blocks
*/

/* =====================================================================
   NEWS FAMOUS - Folha de estilos principal
   Objetivo: leve, rápido, sem frameworks pesados, CSS puro otimizado
   ===================================================================== */

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background: #f4f4f4;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c8181e; text-decoration: none; transition: color .15s ease; }
a:hover { color: #8f0f14; text-decoration: underline; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Georgia', 'Times New Roman', serif; line-height: 1.25; color: #111; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

/* ---------- Layout / Container ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.nf-clearfix::after { content: ""; display: table; clear: both; }
.nf-row { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Top bar (data + redes) ---------- */
.nf-topbar {
    background: #111;
    color: #ddd;
    font-size: .8rem;
    border-bottom: 1px solid #000;
}
.nf-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.nf-topbar a { color: #ffcb05; }
.nf-topbar .nf-date { font-weight: 600; letter-spacing: .3px; }
.nf-topbar .nf-social a { margin-left: 10px; font-size: .85rem; }

/* ---------- Header / Logo ---------- */
.nf-header {
    background: #fff;
    border-bottom: 3px solid #c8181e;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.nf-logo { display: flex; align-items: center; gap: 10px; }
.nf-logo img { max-height: 64px; width: auto; }
.nf-logo .nf-logo-text {
    font-family: 'Georgia', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #c8181e;
    letter-spacing: -.5px;
    line-height: 1;
}
.nf-logo .nf-logo-text small {
    display: block;
    font-size: .7rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.nf-header-tools { display: flex; align-items: center; gap: 14px; }
.nf-search-form { display: flex; }
.nf-search-form input {
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: .9rem;
    border-radius: 3px 0 0 3px;
    outline: none;
    width: 180px;
}
.nf-search-form button {
    background: #c8181e;
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    font-size: .85rem;
}
.nf-search-form button:hover { background: #8f0f14; }

/* ---------- Menu principal ---------- */
.nf-navbar {
    background: #c8181e;
    position: relative;
}
.nf-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 10px 14px;
}
.nf-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}
.nf-menu > li { position: relative; }
.nf-menu > li > a {
    display: block;
    color: #fff;
    padding: 13px 18px;
    font-weight: 600;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-right: 1px solid rgba(255,255,255,.12);
}
.nf-menu > li > a:hover { background: rgba(0,0,0,.18); text-decoration: none; }
.nf-menu .current-menu-item > a,
.nf-menu .current-menu-parent > a { background: #8f0f14; }
.nf-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    display: none;
    z-index: 1100;
}
.nf-menu li:hover > .sub-menu { display: block; }
.nf-menu .sub-menu a {
    display: block;
    color: #222;
    padding: 10px 16px;
    font-size: .88rem;
    border-bottom: 1px solid #eee;
    text-transform: none;
}
.nf-menu .sub-menu a:hover { background: #f4f4f4; color: #c8181e; }

/* ---------- Breadcrumb ---------- */
.nf-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    font-size: .8rem;
    color: #777;
    padding: 8px 0;
}
.nf-breadcrumb a { color: #c8181e; }
.nf-breadcrumb span { margin: 0 6px; color: #aaa; }

/* ---------- Banner publicitário ---------- */
.nf-ad-banner {
    text-align: center;
    margin: 18px auto;
    background: #fff;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}
.nf-ad-banner .nf-ad-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 6px;
}

/* ---------- Grid principal ---------- */
.nf-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    padding: 20px 0 40px;
}
.nf-content { min-width: 0; }
.nf-sidebar { min-width: 0; }

/* ---------- Section title ---------- */
.nf-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #c8181e;
}
.nf-section-title h2 {
    font-family: 'Georgia', serif;
    font-size: 1.35rem;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.nf-section-title h2 a { color: inherit; }
.nf-section-title .nf-more {
    margin-left: auto;
    font-size: .75rem;
    color: #c8181e;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
}
.nf-section-title::before {
    content: "";
    width: 6px;
    height: 22px;
    background: #c8181e;
    border-radius: 2px;
}

/* ---------- Em Destaque (slider simples) ---------- */
.nf-featured {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}
.nf-featured-main {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    min-height: 380px;
}
.nf-featured-main img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.nf-featured-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 50px 22px 20px;
    color: #fff;
}
.nf-featured-caption .nf-cat-tag {
    display: inline-block;
    background: #c8181e;
    color: #fff;
    font-size: .7rem;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.nf-featured-caption h3 {
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.3;
}
.nf-featured-caption h3 a { color: #fff; }
.nf-featured-caption h3 a:hover { text-decoration: none; color: #ffcb05; }
.nf-featured-side { display: flex; flex-direction: column; gap: 14px; }
.nf-featured-side .nf-mini {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nf-featured-side .nf-mini-img { width: 110px; flex: 0 0 110px; border-radius: 4px; overflow: hidden; }
.nf-featured-side .nf-mini-img img { width: 100%; height: 80px; object-fit: cover; }
.nf-featured-side .nf-mini h4 { font-size: .95rem; line-height: 1.3; }
.nf-featured-side .nf-mini h4 a { color: #111; }
.nf-featured-side .nf-mini .nf-cat-mini { font-size: .68rem; color: #c8181e; text-transform: uppercase; font-weight: 700; margin-bottom: 3px; display: block; }

/* ---------- Lista de seção (1 grande + 2 pequenos) ---------- */
.nf-cat-block { margin-bottom: 30px; }
.nf-cat-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}
.nf-cat-lead {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nf-cat-lead img { width: 100%; height: 240px; object-fit: cover; }
.nf-cat-lead .nf-cat-body { padding: 14px 16px 18px; }
.nf-cat-lead .nf-cat-tag { display: inline-block; background: #c8181e; color: #fff; font-size: .68rem; padding: 3px 9px; border-radius: 3px; text-transform: uppercase; margin-bottom: 8px; }
.nf-cat-lead h3 { font-size: 1.25rem; margin-bottom: 8px; }
.nf-cat-lead h3 a { color: #111; }
.nf-cat-lead .nf-excerpt { font-size: .9rem; color: #555; }
.nf-cat-list { display: flex; flex-direction: column; gap: 14px; }
.nf-cat-item {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nf-cat-item .nf-cat-item-img { width: 100px; flex: 0 0 100px; border-radius: 4px; overflow: hidden; }
.nf-cat-item .nf-cat-item-img img { width: 100%; height: 72px; object-fit: cover; }
.nf-cat-item h4 { font-size: .92rem; line-height: 1.3; }
.nf-cat-item h4 a { color: #111; }
.nf-cat-item .nf-meta { font-size: .72rem; color: #999; margin-top: 4px; }

/* ---------- Meta info ---------- */
.nf-meta { font-size: .78rem; color: #888; }
.nf-meta .nf-author { font-weight: 600; color: #c8181e; }
.nf-meta span { margin-right: 10px; }

/* ---------- Sidebar / Widgets ---------- */
.nf-widget {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
}
.nf-widget-title {
    background: #111;
    color: #fff;
    padding: 12px 16px;
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
}
.nf-widget-title::after {
    content: "";
    position: absolute;
    left: 16px; bottom: 0;
    width: 40px; height: 3px;
    background: #c8181e;
}
.nf-widget ul { padding: 12px 16px; }
.nf-widget li { padding: 9px 0; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
.nf-widget li:last-child { border-bottom: none; }
.nf-widget .nf-widget-thumb { display: flex; gap: 10px; align-items: flex-start; }
.nf-widget .nf-widget-thumb img { width: 70px; height: 52px; object-fit: cover; border-radius: 4px; flex: 0 0 70px; }
.nf-widget .nf-widget-thumb h4 { font-size: .85rem; line-height: 1.3; }
.nf-widget .nf-widget-thumb h4 a { color: #222; }

/* ---------- Footer ---------- */
.nf-footer {
    background: #111;
    color: #bbb;
    margin-top: 30px;
    padding: 40px 0 0;
}
.nf-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding-bottom: 30px;
}
.nf-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid #c8181e; padding-bottom: 8px; display: inline-block; }
.nf-footer a { color: #bbb; }
.nf-footer a:hover { color: #ffcb05; }
.nf-footer ul li { padding: 6px 0; font-size: .88rem; border-bottom: 1px solid #222; }
.nf-footer ul li:last-child { border-bottom: none; }
.nf-footer .nf-footer-logo { font-family: 'Georgia', serif; font-size: 1.6rem; color: #c8181e; font-weight: 700; margin-bottom: 10px; }
.nf-footer-bottom {
    border-top: 1px solid #222;
    padding: 16px 0;
    font-size: .8rem;
    text-align: center;
    color: #888;
}
.nf-footer-bottom a { color: #ffcb05; }

/* ---------- Single post ---------- */
.nf-single {
    background: #fff;
    border-radius: 6px;
    padding: 26px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.nf-single .nf-cat-tag { display: inline-block; background: #c8181e; color: #fff; font-size: .72rem; padding: 4px 12px; border-radius: 3px; text-transform: uppercase; margin-bottom: 12px; }
.nf-single h1 { font-size: 2rem; margin-bottom: 12px; line-height: 1.25; }
.nf-single .nf-meta { border-bottom: 1px solid #eee; padding-bottom: 14px; margin-bottom: 18px; }
.nf-single .nf-featured-img { margin-bottom: 18px; border-radius: 4px; overflow: hidden; }
.nf-single .nf-featured-img img { width: 100%; }
.nf-single .nf-featured-img figcaption { font-size: .78rem; color: #888; padding: 6px 0; text-align: center; }
.nf-entry-content { font-size: 1.02rem; line-height: 1.75; color: #2a2a2a; }
.nf-entry-content p { margin-bottom: 1.2em; }
.nf-entry-content h2, .nf-entry-content h3 { margin: 1.2em 0 .6em; }
.nf-entry-content img { border-radius: 4px; margin: 1em 0; }
.nf-entry-content blockquote {
    border-left: 4px solid #c8181e;
    padding: 10px 20px;
    margin: 1.4em 0;
    background: #fafafa;
    font-style: italic;
    color: #444;
}
.nf-entry-content a { color: #c8181e; text-decoration: underline; }
.nf-entry-content ul, .nf-entry-content ol { margin: 1em 0 1em 1.4em; }
.nf-entry-content li { margin-bottom: .5em; list-style: disc; }
.nf-entry-content ul li { list-style: disc; }
.nf-entry-content ol li { list-style: decimal; }
.nf-tags { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.nf-tags a { display: inline-block; background: #f0f0f0; color: #555; padding: 4px 12px; border-radius: 20px; font-size: .8rem; margin: 0 6px 6px 0; }
.nf-tags a:hover { background: #c8181e; color: #fff; text-decoration: none; }
.nf-share { margin: 18px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.nf-share a { padding: 8px 14px; border-radius: 4px; color: #fff; font-size: .82rem; font-weight: 600; }
.nf-share .nf-share-fb { background: #1877f2; }
.nf-share .nf-share-tw { background: #000; }
.nf-share .nf-share-wa { background: #25d366; }

/* ---------- Autor box ---------- */
.nf-author-box {
    display: flex;
    gap: 16px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 18px;
    margin: 24px 0;
}
.nf-author-box .nf-author-avatar img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.nf-author-box .nf-author-name { font-weight: 700; color: #111; font-size: 1.05rem; }
.nf-author-box .nf-author-bio { font-size: .9rem; color: #555; margin-top: 4px; }

/* ---------- Posts relacionados ---------- */
.nf-related { margin: 26px 0; }
.nf-related .nf-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.nf-related .nf-related-item { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.nf-related .nf-related-item img { width: 100%; height: 130px; object-fit: cover; }
.nf-related .nf-related-item h4 { padding: 10px 12px; font-size: .9rem; line-height: 1.3; }
.nf-related .nf-related-item h4 a { color: #111; }

/* ---------- Paginação ---------- */
.nf-pagination { text-align: center; margin: 30px 0; }
.nf-pagination .page-numbers {
    display: inline-block;
    padding: 9px 15px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-weight: 600;
    font-size: .9rem;
}
.nf-pagination .page-numbers.current,
.nf-pagination .page-numbers:hover { background: #c8181e; color: #fff; border-color: #c8181e; text-decoration: none; }

/* ---------- Comments ---------- */
.nf-comments { background: #fff; border-radius: 6px; padding: 22px; margin-top: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.nf-comments h3 { margin-bottom: 16px; font-size: 1.2rem; }
.nf-comment-list { list-style: none; }
.nf-comment { padding: 14px 0; border-bottom: 1px solid #eee; }
.nf-comment .nf-comment-author { font-weight: 700; color: #c8181e; }
.nf-comment .nf-comment-meta { font-size: .78rem; color: #999; margin-bottom: 6px; }
.nf-comment-respond { margin-top: 20px; }
.nf-comment-form input, .nf-comment-form textarea { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: .9rem; }
.nf-comment-form input[type="submit"] { width: auto; background: #c8181e; color: #fff; border: none; padding: 11px 26px; cursor: pointer; font-weight: 600; }
.nf-comment-form input[type="submit"]:hover { background: #8f0f14; }

/* ---------- 404 ---------- */
.nf-404 { text-align: center; padding: 60px 20px; }
.nf-404 h1 { font-size: 5rem; color: #c8181e; margin-bottom: 10px; }
.nf-404 p { font-size: 1.1rem; color: #555; margin-bottom: 20px; }
.nf-404 .nf-btn { display: inline-block; background: #c8181e; color: #fff; padding: 12px 28px; border-radius: 4px; font-weight: 600; }
.nf-404 .nf-btn:hover { background: #8f0f14; text-decoration: none; }

/* ---------- Search no results ---------- */
.nf-no-results { background: #fff; padding: 30px; border-radius: 6px; text-align: center; }

/* ---------- Block editor (Gutenberg) ---------- */
.wp-block-button .wp-block-button__link { background: #c8181e; border-radius: 4px; }
.wp-block-quote { border-left: 4px solid #c8181e; padding-left: 16px; color: #444; font-style: italic; }
.alignwide { width: 100%; }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.has-large-font-size { line-height: 1.4; }

/* ---------- Assistência / Acessibilidade ---------- */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: #c8181e; color: #fff; padding: 10px 18px; z-index: 9999;
    border-radius: 0 0 4px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 992px) {
    .nf-main-grid { grid-template-columns: 1fr; }
    .nf-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .nf-featured { grid-template-columns: 1fr; }
    .nf-cat-grid { grid-template-columns: 1fr; }
    .nf-related .nf-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nf-menu-toggle { display: block; }
    .nf-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #c8181e;
        z-index: 1100;
        max-height: 70vh;
        overflow-y: auto;
    }
    .nf-menu.open { display: flex; }
    .nf-menu > li > a { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
    .nf-menu .sub-menu { position: static; box-shadow: none; min-width: 100%; }
    .nf-menu .sub-menu a { padding-left: 32px; background: #a01418; }
    .nf-header-tools .nf-search-form { display: none; }
    .nf-topbar .container { justify-content: center; text-align: center; }
    .nf-logo .nf-logo-text { font-size: 1.4rem; }
    .nf-single h1 { font-size: 1.5rem; }
    .nf-featured-caption h3 { font-size: 1.1rem; }
    .nf-related .nf-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .nf-footer-grid { grid-template-columns: 1fr; }
    .nf-featured-side .nf-mini-img, .nf-cat-item .nf-cat-item-img { width: 80px; flex-basis: 80px; }
    .nf-single { padding: 16px; }
}
