/*
Theme Name: Reduto
Theme URI: https://reduto.com.br
Author: Reduto
Description: Reduto — tema marinho e âmbar, corpo do artigo em fundo claro para leitura. Reconquiste seu foco.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: reduto
*/

/* ============================================
   VARIÁVEIS E RESET
   ============================================ */
:root {
  /* Chrome escuro (header, hero, rodapé, listagens) — marinho */
  --color-bg:        #0C1626;
  --color-bg2:       #12294A;
  --color-bg3:       #1C3556;
  --color-border:    #1C3556;
  --color-border2:   #2C4A70;
  --color-text:      #F5F1E8;
  --color-muted:     #9FB0C8;
  --color-muted2:    #8CA0BC;
  /* Acento âmbar (substitui o antigo cyan) */
  --color-cyan:      #E9A23B;
  --color-cyan-dark: #E9A23B;
  --color-cyan-hover:#F4B75E;
  /* Papel claro (corpo do artigo — leitura) */
  --paper:           #FBFAF7;
  --paper-text:      #12294A;
  --paper-muted:     #51617A;
  --paper-border:    #E4DFD4;
  --paper-code-bg:   #F1ECE2;
  --amber-text:      #946013;
  /* Fontes */
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Títulos em Sora (corpo em Archivo) */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); letter-spacing: -0.01em; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1; }

/* ============================================
   HEADER
   ============================================ */
.adsense-top-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.adsense-placeholder {
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--color-muted2);
  font-size: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 41, 74, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 2rem; height: 2rem; }

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-text span { color: var(--color-cyan); }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }

.main-nav a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--color-cyan); }

/* Dropdown categorias */
.nav-dropdown { position: relative; }

.nav-dropdown > button {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown:hover > button { color: var(--color-cyan); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--color-bg3);
  border: 1px solid var(--color-border2);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}

.dropdown-menu a:hover { background: var(--color-bg2); color: var(--color-cyan); }

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan-dark), #C8862A);
  flex-shrink: 0;
}

/* Search header */
.header-search { display: flex; align-items: center; }

.header-search-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  padding: 0.4rem;
  border-radius: 6px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.header-search-btn:hover { color: var(--color-cyan); }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  color: var(--color-text);
  padding: 0.4rem;
  border-radius: 6px;
}

/* Search bar expandido */
.header-search-bar {
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 0;
  display: none;
}

.header-search-bar.active { display: block; }

.search-bar-form {
  display: flex;
  gap: 0.5rem;
}

.search-bar-form input {
  flex: 1;
  background: var(--color-bg3);
  border: 1px solid var(--color-border2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: var(--color-text);
  font-size: 0.95rem;
  outline: none;
}

.search-bar-form input:focus { border-color: var(--color-cyan-dark); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-nav.open { display: block; }

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--color-bg2);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-close {
  align-self: flex-end;
  color: var(--color-muted);
  font-size: 1.5rem;
  background: none;
  border: none;
}

.mobile-nav-panel a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s;
}

.mobile-nav-panel a:hover { color: var(--color-cyan); }

.mobile-nav-panel h4 {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0C1626 0%, #12294A 50%, #0C1626 100%);
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 45%, transparent 0%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(to bottom, transparent 40%, var(--color-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  will-change: opacity, transform;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(233, 162, 59, 0.1);
  border: 1px solid rgba(233, 162, 59, 0.3);
  color: var(--color-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.hero h1 span { color: var(--color-cyan); }

.hero p {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin: 0 auto 2rem;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-cyan-dark);
  color: #12294A; font-family: var(--font-head); font-weight: 700;
}

.btn-primary:hover { background: #F4B75E; color: #12294A; }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border2);
}

.btn-outline:hover {
  background: var(--color-bg3);
  border-color: var(--color-cyan-dark);
  color: var(--color-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
}

.btn-ghost:hover { color: var(--color-text); background: var(--color-bg3); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section { padding: 3.5rem 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-group { display: flex; align-items: center; gap: 0.75rem; }

.section-icon {
  background: rgba(233, 162, 59, 0.1);
  border: 1px solid rgba(233, 162, 59, 0.2);
  padding: 0.65rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
}

.section-icon svg { width: 1.5rem; height: 1.5rem; }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

/* ============================================
   ARTICLE CARD
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: var(--color-border2);
  transform: translateY(-3px);
}

.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-bg3);
}

.article-card-img-placeholder {
  position: relative;
  width: 100%;
  height: 180px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(233, 162, 59, 0.18), transparent 60%),
    linear-gradient(135deg, var(--color-bg3), var(--color-bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
}
.article-card-img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}
.article-card-img-placeholder .placeholder-icon {
  position: relative;
  display: inline-flex;
  color: var(--color-cyan);
  filter: drop-shadow(0 2px 10px rgba(233, 162, 59, 0.35));
}
.article-card-img-placeholder .placeholder-icon svg {
  width: 40px;
  height: 40px;
}
.article-card-img-placeholder .placeholder-brand {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  text-transform: uppercase;
}
.article-card-img-placeholder .placeholder-brand strong {
  color: var(--color-cyan);
  font-weight: 700;
}

.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.article-card-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cyan);
  background: rgba(233, 162, 59, 0.1);
  border: 1px solid rgba(233, 162, 59, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.article-card:hover .article-card-title { color: var(--color-cyan); }

.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--color-muted2);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.article-card-meta span { display: flex; align-items: center; gap: 0.3rem; }

.article-card-meta svg { width: 0.9rem; height: 0.9rem; }

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}

.category-card:hover {
  border-color: var(--color-cyan-dark);
  transform: translateY(-3px);
  color: var(--color-text);
}

.category-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--color-cyan-dark), #C8862A);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: white;
}

.category-card-icon svg { width: 1.5rem; height: 1.5rem; }

.category-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.category-card-count {
  font-size: 0.78rem;
  color: var(--color-muted2);
}

/* ============================================
   MOST VIEWED
   ============================================ */
.most-viewed-list {
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.most-viewed-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: background 0.15s;
  text-decoration: none;
}

.most-viewed-item:last-child { border-bottom: none; }
.most-viewed-item:hover { background: rgba(30, 41, 59, 0.5); }

.most-viewed-rank {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-bg3);
  border: 1px solid var(--color-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.most-viewed-item:hover .most-viewed-rank {
  border-color: var(--color-cyan-dark);
  color: var(--color-cyan);
}

.most-viewed-info { flex: 1; min-width: 0; }

.most-viewed-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.most-viewed-item:hover .most-viewed-title { color: var(--color-cyan); }

.most-viewed-slug {
  font-size: 0.75rem;
  color: var(--color-muted2);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.most-viewed-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  flex-shrink: 0;
}

.most-viewed-count svg { width: 1rem; height: 1rem; color: var(--color-cyan); }

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.article-header { margin-bottom: 2rem; }

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-breadcrumb a { transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--color-cyan); }
.article-breadcrumb .current { color: var(--color-cyan); }
.breadcrumb-sep { color: var(--color-muted2); }

.article-cat-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-cyan-dark), #C8862A);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.article-meta span { display: flex; align-items: center; gap: 0.4rem; }
.article-meta svg { width: 1rem; height: 1rem; }

.article-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 3rem;
  background: var(--color-bg2);
}

/* Conteúdo do artigo — "papel" claro para leitura (o híbrido) */
.article-content {
  font-size: 1.075rem;
  color: var(--paper-text);
  line-height: 1.8;
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: 16px;
  padding: 2.75rem 3rem;
}
.article-content h1, .article-content h2, .article-content h3,
.article-content h4 {
  color: var(--paper-text);
  font-family: var(--font-head);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content a { color: var(--amber-text); text-decoration: underline; }
.article-content a:hover { color: var(--paper-text); }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content blockquote {
  border-left: 4px solid var(--color-cyan);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #F4EFE4;
  border-radius: 0 8px 8px 0;
  color: var(--paper-muted);
  font-style: italic;
}
.article-content img { border-radius: 12px; margin: 1.5rem 0; }
.article-content strong { color: var(--paper-text); font-weight: 700; }
.article-content code {
  background: var(--paper-code-bg);
  border: 1px solid var(--paper-border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.875em;
  color: var(--amber-text);
}
.article-content pre {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.article-content pre code { background: none; border: none; padding: 0; color: #e2e8f0; }
@media (max-width: 640px) { .article-content { padding: 1.5rem 1.35rem; } }

/* Tags */
.article-tags { margin: 2rem 0; }
.article-tags h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-link {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--color-bg3);
  border: 1px solid var(--color-border2);
  border-radius: 99px;
  font-size: 0.85rem;
  color: #cbd5e1;
  transition: all 0.2s;
}
.tag-link:hover { border-color: var(--color-cyan-dark); color: var(--color-cyan); }

/* Social share */
.social-share {
  background: var(--color-bg3);
  border: 1px solid var(--color-border2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.social-share h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.social-share-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s;
  color: white;
}
.share-btn:hover { opacity: 0.85; color: white; }
.share-btn-facebook { background: #1877f2; }
.share-btn-twitter  { background: #0ea5e9; }
.share-btn-whatsapp { background: #25d366; }
.share-btn-linkedin { background: #0a66c2; }
.share-btn svg { width: 1rem; height: 1rem; }

/* Related articles */
.related-articles { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--color-border); }
.related-articles h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.75rem; }

/* Sidebar */
.sidebar { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem;
}

.sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-cat-list { display: flex; flex-direction: column; gap: 0.25rem; }

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}

.sidebar-cat-item:hover { background: var(--color-bg3); color: var(--color-cyan); }
.sidebar-cat-item svg { width: 1rem; height: 1rem; color: var(--color-muted2); }

/* Edit button para admin */
.article-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(233, 162, 59, 0.4);
  border-radius: 8px;
  color: var(--color-cyan);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(233, 162, 59, 0.05);
  transition: background 0.2s;
}
.article-edit-btn:hover { background: rgba(233, 162, 59, 0.1); color: var(--color-cyan); }
.article-edit-btn svg { width: 0.9rem; height: 0.9rem; }

/* ============================================
   ARCHIVE / CATEGORIA
   ============================================ */
.archive-header {
  text-align: center;
  padding: 4rem 0 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.archive-icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--color-cyan-dark), #C8862A);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.archive-icon svg { width: 2.5rem; height: 2.5rem; }
.archive-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.archive-desc { color: var(--color-muted); font-size: 1.1rem; }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-hero { padding: 4rem 0 2rem; text-align: center; }
.search-hero h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 1.5rem; }
.search-hero p { color: var(--color-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.search-form-large {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

.search-form-large input {
  flex: 1;
  background: var(--color-bg3);
  border: 1px solid var(--color-border2);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  color: var(--color-text);
  font-size: 1rem;
  outline: none;
  height: 3.25rem;
}

.search-form-large input:focus { border-color: var(--color-cyan-dark); }

.search-info {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* Popular searches */
.popular-searches { margin-top: 1.25rem; }
.popular-searches p { font-size: 0.875rem; color: var(--color-muted); margin-bottom: 0.6rem; }
.popular-searches-list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.popular-search-btn {
  padding: 0.4rem 1rem;
  background: var(--color-bg3);
  border: 1px solid var(--color-border2);
  border-radius: 99px;
  font-size: 0.85rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}
.popular-search-btn:hover { border-color: var(--color-cyan-dark); color: var(--color-cyan); }

/* ============================================
   PAGINAÇÃO
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-border2);
  color: var(--color-text);
  background: transparent;
  transition: all 0.15s;
  cursor: pointer;
  padding: 0 0.5rem;
}

.page-btn:hover { background: var(--color-bg3); }
.page-btn.active { background: var(--color-cyan-dark); border-color: var(--color-cyan-dark); color: white; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }
.page-dots { color: var(--color-muted); padding: 0 0.25rem; }

/* WordPress default pagination */
.wp-pagenavi { display: flex; gap: 0.4rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.wp-pagenavi a, .wp-pagenavi span {
  min-width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 0.9rem; font-weight: 500; border: 1px solid var(--color-border2);
  color: var(--color-text); background: transparent; transition: all 0.15s; padding: 0 0.5rem;
}
.wp-pagenavi a:hover { background: var(--color-bg3); }
.wp-pagenavi span.current { background: var(--color-cyan-dark); border-color: var(--color-cyan-dark); color: white; }

/* ============================================
   ADSEN PLACEHOLDERS
   ============================================ */
.adsense-banner {
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-muted2);
  font-size: 0.8rem;
  margin: 2rem 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg2);
  border-top: 1px solid var(--color-border);
  margin-top: 5rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand p {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin: 0.75rem 0 1.25rem;
  max-width: 300px;
}

.footer-socials { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.social-link {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-bg3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background 0.2s;
}

.social-link:hover { background: var(--color-cyan-dark); color: white; }
.social-link svg { width: 1rem; height: 1rem; }

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: var(--color-muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--color-cyan); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* ============================================
   ESTADO VAZIO / 404
   ============================================ */
.empty-state {
  text-align: center;
  padding: 5rem 1.5rem;
}
.empty-state-icon {
  width: 5rem; height: 5rem;
  background: var(--color-bg3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-muted2);
}
.empty-state-icon svg { width: 2.5rem; height: 2.5rem; }
.empty-state h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
.empty-state p { color: var(--color-muted); max-width: 400px; margin: 0 auto 2rem; }

/* ============================================
   PAGE CONTENT (Privacidade, Termos)
   ============================================ */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 0;
}
.page-content h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-content .page-date { color: var(--color-muted); font-size: 0.875rem; margin-bottom: 3rem; }
.page-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--color-text); }
.page-content p, .page-content li { color: #cbd5e1; line-height: 1.8; margin-bottom: 1rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content a { color: var(--color-cyan); text-decoration: underline; }

/* ============================================
   UTILITIES
   ============================================ */
.text-cyan { color: var(--color-cyan); }
.text-muted { color: var(--color-muted); }
.divider { border-top: 1px solid var(--color-border); margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero h1 { font-size: 2rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-title { font-size: 1.75rem; }
  .article-title { font-size: 1.5rem; }

  /* ── Home no celular: reordena as seções ──
     Hero → Mais Populares → Recentes → Top → Categorias (por último) */
  body.home .site-main   { display: flex; flex-direction: column; }
  body.home .hero            { order: 1; }
  body.home #home-populares  { order: 2; }
  body.home #artigos-recentes{ order: 3; }
  body.home .home-ad-banner  { order: 4; }
  body.home #home-top        { order: 5; }
  body.home #home-categorias { order: 6; }

  /* ── Cards viram lista sem foto (mais leve) no celular ── */
  .articles-grid { gap: 0.75rem; }
  .article-card > a:first-child { display: none; }   /* remove a imagem/placeholder */
  .article-card-img,
  .article-card-img-placeholder { display: none; }
  .article-card-body { padding: 0.9rem 1rem; }
  .article-card-excerpt { display: none; }            /* lista enxuta: título + meta */
  .article-card-title { font-size: 1rem; margin-bottom: 0.5rem; }
  .article-card-cat { margin-bottom: 0.5rem; }
}
