/*
Theme Name: O AZ Theme
Theme URI: https://jornal.oaz.pt
Author: PBWriter Studio
Author URI: https://pbwriter.pt
Description: Tema exclusivo OAZ desenvolvido pela PBWriter Studio, suportando 19 freguesias, publicidade responsiva e retenção de leitores.
Version: 1.8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oaz-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Zilla+Slab:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- DESIGN SYSTEM & CUSTOM PROPERTIES --- */
:root {
    /* Fonts */
    --font-heading: 'Zilla Slab', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Colors (Light Mode Default) */
    --primary: #ec3535;
    --primary-hover: #c82323;
    --primary-light: rgba(236, 53, 53, 0.08);
    
    --bg-site: #f4f5f7;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-footer: #0f1115;
    
    --text-main: #1a1a1e;
    --text-muted: #5e6675;
    --text-on-primary: #ffffff;
    
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --max-width: 1300px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- DARK MODE OVERRIDES --- */
[data-theme="dark"] {
    --bg-site: #0b0c10;
    --bg-card: #151720;
    --bg-header: #151720;
    --bg-footer: #08090d;
    
    --text-main: #f1f3f9;
    --text-muted: #94a3b8;
    
    --border: #222533;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    --primary-light: rgba(236, 53, 53, 0.15);
}

/* --- BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-site);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background-color: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.brand-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(236, 53, 53, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: -4px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Navigation bar */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links li.current-menu-item a,
.nav-links li.active a {
    color: var(--primary);
}

.nav-links li.current-menu-item a::after,
.nav-links li.active a::after {
    width: 100%;
}

.nav-distritos {
    position: relative;
}

.distrito-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    background-color: var(--bg-site);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.distrito-select-wrapper:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.distrito-select-wrapper select {
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    font-weight: 500;
    cursor: pointer;
    padding-right: 4px;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 480px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(15,17,21,0.9) 0%, rgba(15,17,21,0.4) 50%, rgba(15,17,21,0.1) 100%);
    z-index: 1;
}

.hero-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: center;
    transition: transform 0.5s ease;
}

.hero-main:hover img {
    transform: scale(1.03);
}

.hero-main-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #ffffff;
}

.hero-main-content .badge {
    background-color: var(--primary);
    color: white;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-main {
        height: 380px;
    }
    .hero-main-content {
        padding: 20px;
    }
}

.hero-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 16px;
    max-width: 90%;
    font-weight: 300;
}

.hero-meta {
    font-size: 0.8rem;
    opacity: 0.7;
    display: flex;
    gap: 16px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    cursor: pointer;
    transition: var(--transition);
}

.side-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.side-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.side-card:hover .side-card-title {
    color: var(--primary);
}

.side-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- SECTION GENERAL STYLE --- */
.section-wrapper {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

/* --- SECTION REGIONAL: A MINHA TERRA --- */
.regional-section {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.regional-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.concelho-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.concelho-tab-btn {
    border: 1px solid var(--border);
    background-color: var(--bg-site);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.concelho-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.concelho-tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
    box-shadow: 0 4px 10px rgba(236, 53, 53, 0.25);
}

.regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    min-height: 320px;
    transition: opacity 0.25s ease-in-out;
}

/* Card Moderno de Notícia */
.news-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.news-card-img-wrap {
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #eee;
}

.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img-wrap img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-main);
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* --- THEMATIC SECTIONS --- */
.thematic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .thematic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .thematic-grid {
        grid-template-columns: 1fr;
    }
}

/* Gutenberg Row/Blocks */
.gutenberg-row-block {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .gutenberg-row-block {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.gutenberg-row-img-wrap {
    height: 100%;
    min-height: 250px;
}

.gutenberg-row-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gutenberg-row-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.gutenberg-row-title a:hover {
    color: var(--primary);
}

/* --- ARTICLE VIEW PAGE --- */
.article-container {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
    }
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.article-header {
    margin-bottom: 30px;
}

.article-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .article-main-title {
        font-size: 2rem;
    }
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.article-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
}

.article-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    background-color: var(--primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.trending-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.trending-number {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    opacity: 0.3;
    min-width: 30px;
}

.trending-content a {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    display: block;
}

.trending-content a:hover {
    color: var(--primary);
}

.ads-widget {
    background-color: var(--primary-light);
    border: 2px dashed var(--primary);
    color: var(--primary);
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-footer);
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--primary);
    color: var(--text-on-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(236, 53, 53, 0.4);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
}

/* --- STICKY WIDGET --- */
.widget-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 160px;
    z-index: 10;
}

/* --- ADVERTISING SYSTEM & RESPONSIVE SLOTS (DESKTOP VS MOBILE) --- */
.oaz-ad-container {
    margin: 28px auto;
    text-align: center;
    max-width: 100%;
    clear: both;
}
.oaz-ad-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

/* Visibilidade Responsiva */
@media (min-width: 768px) {
    .oaz-ad-desktop {
        display: block !important;
    }
    .oaz-ad-mobile {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .oaz-ad-desktop {
        display: none !important;
    }
    .oaz-ad-mobile {
        display: block !important;
    }
}

/* Demonstração Visual dos Espaços (Placeholder no Protótipo) */
.oaz-ad-placeholder-demo {
    background-color: var(--bg-card);
    border: 2px dashed #cbd5e1;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.desktop-demo {
    min-height: 90px;
    max-width: 970px;
}
.mobile-demo {
    min-height: 100px;
    max-width: 320px;
}

/* Anúncios In-Article (Inseridos no Texto) */
.in-article-ad-wrapper {
    margin: 32px 0 !important;
}

/* Mobile Sticky Bottom Anchor (Rodapé Flutuante Smartphone 320x50) */
.oaz-mobile-anchor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (min-width: 768px) {
    .oaz-mobile-anchor {
        display: none !important;
    }
}
.oaz-mobile-anchor-inner {
    position: relative;
    width: 320px;
    text-align: center;
}
.oaz-mobile-anchor-close {
    position: absolute;
    top: -12px;
    right: -10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.mobile-anchor-demo {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
    padding: 8px;
    font-size: 0.75rem;
    min-height: 50px;
}

/* --- PAGINAÇÃO MODERNA E RETENÇÃO DE LEITORES --- */

/* 1. Paginação de Listas (Arquivos, Freguesias, Pesquisa) */
.oaz-pagination-wrapper {
    margin: 48px auto;
    text-align: center;
}
.oaz-pagination-wrapper .nav-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background-color: var(--bg-card);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.oaz-pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    background-color: transparent;
}
.oaz-pagination-wrapper .page-numbers:hover:not(.current):not(.dots) {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}
.oaz-pagination-wrapper .page-numbers.current {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 40%, transparent);
}
.oaz-pagination-wrapper .page-numbers.dots {
    color: var(--text-muted);
    min-width: 24px;
    padding: 0 4px;
}
.oaz-pagination-wrapper .prev,
.oaz-pagination-wrapper .next {
    gap: 6px;
    font-weight: 700;
}

/* 2. Paginação no Meio do Artigo (Multipágina) */
.oaz-article-pagination-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-light) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.oaz-article-page-info {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.oaz-page-numbers-nav {
    display: flex;
    gap: 8px;
}
.oaz-page-numbers-nav a,
.oaz-page-numbers-nav > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}
.oaz-page-numbers-nav a {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}
.oaz-page-numbers-nav a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
.oaz-page-numbers-nav > span {
    background-color: var(--primary);
    color: white;
}

/* 3. Bloco de Retenção "A Seguir no O AZ" (Single Article Retention Card) */
.oaz-next-article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 40px 0 24px 0;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.oaz-next-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.oaz-next-article-badge-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.oaz-next-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-family: var(--font-body);
}
.oaz-next-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}
.oaz-next-article-content {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: center;
}
@media (max-width: 640px) {
    .oaz-next-article-content {
        grid-template-columns: 1fr;
    }
}
.oaz-next-article-thumb {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.oaz-next-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.oaz-next-article-card:hover .oaz-next-article-thumb img {
    transform: scale(1.08);
}
.oaz-next-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.oaz-next-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 4px;
}
.oaz-next-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.oaz-next-action {
    white-space: nowrap;
}
.oaz-next-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.oaz-next-article-card:hover .oaz-next-btn {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent);
}

/* --- BARRA DE PARTILHA SOCIAL EM ARTIGOS --- */
.oaz-share-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 24px 0;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.oaz-share-bar-top {
    margin-top: 16px;
    margin-bottom: 28px;
}

.oaz-share-bar-bottom {
    margin-top: 32px;
    margin-bottom: 24px;
}

.oaz-share-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oaz-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.oaz-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff !important;
    line-height: 1;
}

.oaz-share-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.share-whatsapp {
    background-color: #25D366;
}
.share-whatsapp:hover {
    background-color: #20bd5a;
}

.share-facebook {
    background-color: #1877F2;
}
.share-facebook:hover {
    background-color: #1464cc;
}

.share-twitter {
    background-color: #0f1419;
}
.share-twitter:hover {
    background-color: #242c34;
}

.share-linkedin {
    background-color: #0A66C2;
}
.share-linkedin:hover {
    background-color: #08529c;
}

.share-email {
    background-color: #64748b;
}
.share-email:hover {
    background-color: #475569;
}

.share-copy {
    background-color: var(--border);
    color: var(--text-main) !important;
}
.share-copy:hover, .share-copy.copied {
    background-color: var(--primary);
    color: #ffffff !important;
}

/* --- NOTÍCIAS MAIS VISTAS / TENDÊNCIAS BLOCK --- */
.popular-section {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, rgba(37, 99, 235, 0.03) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.popular-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.popular-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-fire-badge {
    background: #dc2626;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.popular-period-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .popular-grid {
        grid-template-columns: 1fr;
    }
}

.popular-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.popular-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.popular-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popular-card:nth-child(1) .popular-rank-badge {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border-color: #fef08a;
    color: #ffffff;
}

.popular-card:nth-child(2) .popular-rank-badge {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    border-color: #f1f5f9;
    color: #ffffff;
}

.popular-card:nth-child(3) .popular-rank-badge {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
    border-color: #fde68a;
    color: #ffffff;
}

.popular-img-wrap {
    height: 150px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.popular-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-card:hover .popular-img-wrap img {
    transform: scale(1.06);
}

.popular-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.popular-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.popular-views-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.popular-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-card:hover .popular-card-title {
    color: var(--primary);
}

.popular-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* --- GESTOR DE PUBLICIDADE DIRETA & GOOGLE ADS --- */
.oaz-ad-direct-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.oaz-ad-direct-link {
    display: block;
    max-width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.oaz-ad-direct-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.oaz-ad-direct-img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.oaz-ad-code-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* --- DEMO PROMO BANNER FOR AD SPACES --- */
.oaz-ad-promo-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.06) 0%, rgba(37, 99, 235, 0.06) 100%);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    gap: 16px;
}

.oaz-ad-promo-box.mobile {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 12px;
}

.oaz-ad-promo-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.oaz-ad-promo-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.oaz-ad-promo-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.oaz-ad-promo-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.oaz-ad-promo-btn {
    background-color: var(--primary);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: all 0.25s ease;
}

.oaz-ad-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 50%, transparent);
}

/* --- RESPONSIVIDADE PARA O PLUGIN O AZ AD MANAGER --- */
.oaz-ad-responsive-direct {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .oaz-ad-desktop-only {
        display: block !important;
    }
    .oaz-ad-mobile-only, .oaz-ad-mobile-fallback {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .oaz-ad-desktop-only {
        display: none !important;
    }
    .oaz-ad-mobile-only {
        display: block !important;
    }
    .oaz-ad-mobile-fallback {
        display: block !important;
    }
}
