/*
Theme Name: ArbitrageMax Pro
Theme URI: https://arbitragemax.pro
Author: ArbitrageMax
Author URI: https://arbitragemax.pro
Description: Tema WordPress ultra-otimizado para arbitragem AdSense/Taboola. Máximo RPM, posicionamento estratégico de anúncios, carregamento ultra-rápido e design de portal de notícias profissional.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arbitragemax
Tags: news, blog, ads, adsense, monetization, fast, mobile-first
*/

/* ============================================
   VARIÁVEIS E RESET
   ============================================ */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --accent2: #f5a623;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --bg: #f4f4f4;
  --bg-card: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 6px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'Barlow', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --content-width: 720px;
  --sidebar-width: 300px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
video, iframe, embed, object { max-width: 100%; }
.single-content img,
.single-content video,
.single-content iframe,
.single-content embed,
.single-content object {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.single-content .wp-block-embed,
.single-content .wp-block-video,
.single-content .wp-block-image,
.single-content figure {
  max-width: 100% !important;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Source+Serif+4:wght@300;400;600&family=Barlow:wght@400;500;600;700&display=swap');

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.site-wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 30px;
  margin: 24px auto;
  max-width: var(--max-width);
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 600px) {
  .content-area {
    padding: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }
}

/* ============================================
   HEADER / TOPO
   ============================================ */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  width: 100%;
  box-sizing: border-box;
}

.header-top-bar {
  background: var(--accent);
  padding: 4px 16px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.header-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.site-logo a {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--accent); }

/* Anúncio no header - leaderboard */
.header-ad-slot {
  flex: 1;
  text-align: center;
  max-width: 728px;
}

.header-ad-slot ins { display: inline-block !important; }

/* Nav */
.site-nav {
  background: var(--secondary);
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  box-sizing: border-box;
}

.nav-inner { background: var(--secondary); }

.nav-inner a:hover, .nav-inner a.active {
  color: white;
  border-bottom-color: var(--accent);
}

/* Reset da ul gerada pelo WordPress */
.nav-inner ul.nav-menu-list {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner ul.nav-menu-list::-webkit-scrollbar { display: none; }

.nav-inner ul.nav-menu-list > li > a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  padding: 10px 16px;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-inner ul.nav-menu-list > li > a:hover,
.nav-inner ul.nav-menu-list > li.current-menu-item > a,
.nav-inner ul.nav-menu-list > li.current-menu-parent > a {
  color: white;
  border-bottom-color: var(--accent);
}

/* Dropdown submenu */
.nav-inner ul.nav-menu-list li {
  position: relative;
}

.nav-inner ul.nav-menu-list li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary);
  min-width: 220px;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border-top: 2px solid var(--accent);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-inner ul.nav-menu-list li:hover > ul {
  display: block;
}

.nav-inner ul.nav-menu-list li ul li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
  transition: var(--transition);
}

.nav-inner ul.nav-menu-list li ul li a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
  padding-left: 24px;
}

/* Hamburger mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .header-ad-slot { display: none; }
  .site-logo a { font-size: 1.3rem; }
}

/* ============================================
   BREAKING NEWS / TICKER
   ============================================ */
.breaking-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  width: 100%;
  box-sizing: border-box;
}

.breaking-label {
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 8px 14px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.breaking-ticker {
  flex: 1;
  overflow: hidden;
  padding: 8px 16px;
  min-width: 0;
}

.ticker-inner {
  display: flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-inner a {
  color: var(--text);
  transition: var(--transition);
}

.ticker-inner a:hover { color: var(--accent); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   BANNER TOPO (ABA LEADERBOARD ANTES DO CONTEÚDO)
   ============================================ */
/* Ad slot vazio não ocupa espaço */
.ad-slot:empty,
.ad-slot ins:empty,
.top-banner-ad:empty {
  display: none !important;
}

/* Limite de altura para slots que ainda não carregaram */
.top-banner-ad {
  background: #f9f9f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  text-align: center;
  min-height: 0;
  overflow: hidden;
}

/* Evita espaço em branco gigante no mobile quando ad não carrega */
.top-banner-ad ins[data-ad-status="unfilled"],
.ad-slot ins[data-ad-status="unfilled"] {
  display: none !important;
}

@media (max-width: 768px) {
  .top-banner-ad {
    padding: 6px 8px;
  }
  /* Esconde slots desktop no mobile se vazios */
  .top-banner-ad ins {
    max-height: 100px;
    overflow: hidden;
  }
}

/* ============================================
   HERO / FEATURED POSTS
   ============================================ */
.hero-section {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-main { position: relative; overflow: hidden; border-radius: var(--radius); }

.hero-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main:hover img { transform: scale(1.03); }

.hero-main-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
  padding: 30px 20px 20px;
}

.hero-cat {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.hero-main-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.hero-main-content h2 a { color: white; transition: var(--transition); }
.hero-main-content h2 a:hover { color: var(--accent2); }

.hero-sidebar-posts { display: flex; flex-direction: column; gap: 12px; }

.hero-side-post {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.hero-side-post:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.hero-side-post img { width: 90px; height: 70px; object-fit: cover; }

.hero-side-content {
  padding: 8px 10px 8px 0;
}

.hero-side-content h3 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.hero-side-content h3 a:hover { color: var(--accent); }

/* ============================================
   CARDS DE POST
   ============================================ */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

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

.post-card-body { padding: 14px 16px 16px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cat-badge {
  background: var(--accent);
  color: white;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cat-badge.finance { background: #2563eb; }
.cat-badge.health { background: #059669; }
.cat-badge.tech { background: #7c3aed; }
.cat-badge.legal { background: #d97706; }

.post-card-body h2, .post-card-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}

.post-card-body h2 a:hover, .post-card-body h3 a:hover { color: var(--accent); }

.post-excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
}

.read-more:hover { gap: 8px; }

/* ============================================
   GRID DE POSTS
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .posts-grid { grid-template-columns: 1fr; } }

.posts-grid-2col { grid-template-columns: repeat(2, 1fr) !important; }

/* ============================================
   SEÇÃO COM TÍTULO
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

.see-all {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
}

.see-all:hover { opacity: 0.7; }

/* ============================================
   ANÚNCIOS IN-CONTENT
   ============================================ */
.ad-slot {
  text-align: center;
  padding: 12px 0;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.ad-slot ins,
.ad-slot iframe,
.ad-slot > div {
  max-width: 100% !important;
  width: auto !important;
  overflow: hidden;
}

/* Mid-content ad block com destaque */
.ad-slot-mid {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 28px 0;
  text-align: center;
}

/* Ad entre seções de posts */
.ad-between-sections {
  background: #f0f4ff;
  border: 1px solid #d0daf0;
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
  text-align: center;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { width: var(--sidebar-width); }

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow: hidden;
}

.widget-title {
  background: var(--primary);
  color: white;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
}

.widget-body { padding: 16px; }

/* Sticky ad na sidebar */
.sidebar-ad-sticky {
  position: sticky;
  top: 80px;
}

.sidebar-ad-sticky .ad-slot {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Popular posts */
.popular-posts { display: flex; flex-direction: column; gap: 0; }

.popular-post-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.popular-post-item:last-child { border-bottom: none; }
.popular-post-item:hover { background: #f9f9f9; }

.popular-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  padding-top: 2px;
}

.popular-post-item:hover .popular-num { color: var(--accent); }

.popular-post-text h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.popular-post-text h4 a:hover { color: var(--accent); }

/* ============================================
   PÁGINA DE ARTIGO SINGLE
   ============================================ */
.single-post-wrap {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
}

.single-header { padding: 24px 30px 0; }

.single-header .cat-badge { margin-bottom: 12px; display: inline-block; }

.single-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}

@media (max-width: 600px) { .single-title { font-size: 1.4rem; } }

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.single-meta-item { display: flex; align-items: center; gap: 5px; }

/* Imagem destacada — full width do card, zero padding */
.single-post-wrap > figure {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
  line-height: 0;
}

.single-post-wrap > figure img,
.single-featured-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* Ad ABAIXO DA IMAGEM - altíssimo RPM */
.ad-below-image {
  background: #f9f9f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 30px;
  text-align: center;
}

.single-content {
  padding: 24px 30px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Imagens e vídeos dentro do conteúdo nunca ultrapassam o container */
.single-content img,
.single-content video,
.single-content iframe,
.single-content embed,
.single-content object {
  max-width: 100% !important;
  height: auto;
}

/* Wrapper responsivo para iframes (YouTube, etc) */
.single-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

@media (max-width: 768px) {
  .single-content {
    padding: 16px;
    width: calc(100% - 0px);
    box-sizing: border-box;
  }
  .single-header {
    padding: 16px 16px 0;
  }
  .single-post-wrap {
    margin: 0 8px;
  }
}

@media (max-width: 600px) {
  .single-content, .single-header { padding-left: 16px; padding-right: 16px; }
  .single-post-wrap { border-radius: 0; border-left: none; border-right: none; }
  .tags-wrap, .share-bar, .related-posts, .ad-after-related { padding-left: 16px; padding-right: 16px; }
  .ad-below-image { padding-left: 16px; padding-right: 16px; }
}


.single-content p { margin-bottom: 1.4em; font-size: 1.05rem; line-height: 1.75; }

.single-content h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
  color: var(--text);
}

.single-content h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
}

.single-content ul, .single-content ol {
  margin: 0 0 1.4em 1.4em;
  padding: 0;
}

.single-content li { margin-bottom: 0.5em; list-style: disc; }

.single-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: #f9f0f2;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* AD APÓS 1º PARÁGRAFO — melhor posição de RPM */
.ad-after-p1 {
  margin: 20px 0 24px;
  padding: 14px;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: var(--radius);
  text-align: center;
}

/* AD NO MEIO DO CONTEÚDO */
.ad-mid-content {
  margin: 28px 0;
  padding: 14px;
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  text-align: center;
}

/* AD ANTES DO FIM */
.ad-pre-footer {
  margin: 28px 0 0;
  padding: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  text-align: center;
}

/* ============================================
   POSTS RELACIONADOS
   ============================================ */
.related-posts {
  padding: 24px 30px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

@media (max-width: 600px) { .related-posts { padding: 20px 16px; } }

.related-posts .section-title { font-size: 1.1rem; margin-bottom: 16px; }

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

@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

.related-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.related-card:hover { box-shadow: var(--shadow-hover); }

.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.related-card-body { padding: 10px 12px 12px; }

.related-card-body h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.related-card-body h4 a:hover { color: var(--accent); }

/* Ad após relacionados - ótima posição */
.ad-after-related {
  padding: 20px 30px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ============================================
   ÂNCORA STICKY MOBILE — altíssimo CTR
   ============================================ */
.mobile-anchor-ad {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: white;
  border-top: 2px solid var(--accent);
  text-align: center;
  padding: 6px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.mobile-anchor-ad .close-anchor {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 768px) {
  .mobile-anchor-ad { display: block; }
  body { padding-bottom: 70px; }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  font-family: var(--font-ui);
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  transition: var(--transition);
}

.pagination a:hover, .pagination .current {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================================
   TAGS / CATEGORIAS
   ============================================ */
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 30px;
  border-top: 1px solid var(--border);
}

.tag-item {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
  transition: var(--transition);
}

.tag-item:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.share-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.copy { background: #6b7280; }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
  display: flex;
  gap: 16px;
  padding: 20px 30px;
  border-top: 1px solid var(--border);
  background: #f9f9f9;
}

.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.author-info h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-info p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  margin-top: 40px;
}

.footer-ad {
  background: var(--secondary);
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-widgets {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 16px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-widgets { grid-template-columns: 1fr; }
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.footer-col p { font-size: 0.85rem; line-height: 1.65; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-links a:hover { color: white; padding-left: 4px; }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  text-align: center;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: white; }

/* ============================================
   PROGRESS BAR DE LEITURA
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  z-index: 9999;
  transition: width 0.1s;
  width: 0%;
}

/* ============================================
   NOTIFICAÇÃO / PUSH CTA
   ============================================ */
.push-cta {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.push-cta-icon { font-size: 1.5rem; }

.push-cta-text { flex: 1; }
.push-cta-text strong { display: block; margin-bottom: 2px; }

.push-cta-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.push-cta-btn:hover { background: #c73550; }

/* ============================================
   UTILITY
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
