/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Foco de teclado: anel accent em tudo que é focável (não afeta clique de mouse) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link: primeiro Tab da página, invisível até receber foco */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #1a0a00;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:root {
  --bg:         #0d0d0d;
  --bg-card:    #181818;
  --bg-card2:   #1f1f1f;
  --border:     #2a2a2a;
  --text:       #e4e4e4;
  --text-muted: #888;
  --text-dim:   #8a8a8a; /* 5.3:1 sobre --bg-card — #555 dava 2.2:1 (WCAG 1.4.3) */
  --accent:     #fc811d;
  --accent-hover: #ff9a3c;
  /* Laranja como COR DE TEXTO: no escuro é o próprio accent; no claro precisa
     escurecer (#fc811d sobre #fff = 2.3:1). Fundos/bordas seguem usando --accent. */
  --accent-text: var(--accent);
  --accent-text-hover: var(--accent-hover);
  --tag-bg:     #252525;
  --tag-text:   #aaa;
  --link:       #e4e4e4;
  --radius:     6px;
  --radius-lg:  10px;
  --font-sans:  "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, monospace;
  --accent-rgb: 252, 129, 29;

  /* Fluid type scale */
  --text-xs:      0.75rem;
  --text-sm:      0.875rem;
  --text-base:    clamp(0.95rem, 0.8vw + 0.8rem, 1.0625rem);
  --text-lg:      clamp(1.125rem, 1vw + 1rem, 1.3125rem);
  --text-xl:      clamp(1.5rem, 2vw + 1rem, 2.125rem);
  --text-2xl:     clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --text-display: clamp(2.75rem, 7vw, 6.5rem);

  /* Motion */
  --ease-cyber: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:      1200px;
  --max-prose:  720px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

/* Grid overlay — cyber signature */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* Mouse-follow radial glow (--mx / --my set via JS) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), 0.055),
    transparent 60%
  );
  pointer-events: none;
  z-index: -1;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-text); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ─── Reveal Animations ─────────────────────────────────────────────
   Safe-by-default: content visible unless JS opts in via .js-reveal on <html>.
   If JS fails / is blocked, nothing stays hidden. */
.js-reveal [data-reveal] .reveal-part {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.8s var(--ease-cyber, cubic-bezier(0.19, 1, 0.22, 1)),
              transform 0.8s var(--ease-cyber, cubic-bezier(0.19, 1, 0.22, 1));
  transition-delay: calc(var(--i, 0) * var(--step, 25ms));
}
.js-reveal [data-reveal].is-revealed .reveal-part {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal [data-reveal="children"] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-cyber), transform 0.7s var(--ease-cyber);
}
.js-reveal [data-reveal="children"].is-revealed > * { opacity: 1; transform: translateY(0); }
[data-reveal="children"] > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal="children"] > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal="children"] > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal="children"] > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal="children"] > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal="children"] > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] .reveal-part,
  [data-reveal="children"] > * { opacity: 1; transform: none; transition: none; }
}

/* ─── Hero Section ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 32px;
}

/* Frase de marca acima do hero (sinal de marca pro Google; ver index.html) */
.home-intro {
  margin: 72px 0 -56px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.home-intro strong { color: var(--text); font-weight: 600; }
.home-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* .page-main defined below (line ~493) */

.hero-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}

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

.hero-img {
  overflow: hidden;
}

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

.hero-img .no-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.hero-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.hero-content .post-meta {
  margin: 0;
}

.hero-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-content h2 a { color: var(--text); }
.hero-content h2 a:hover { color: var(--accent-text); }

.hero-content .excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 4px;
  transition: gap 0.2s var(--ease-cyber), color 0.15s;
}
.read-more span {
  display: inline-block;
  transition: transform 0.2s var(--ease-cyber);
}

.read-more:hover {
  color: var(--accent-text-hover);
  gap: 10px;
}
.read-more:hover span {
  transform: translateX(4px);
}

/* ─── Section Headers ────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: block;
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.section-all {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.section-all:hover { color: var(--accent-text); }

/* ─── Post Cards ────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.posts-grid.cols-2 {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

/* Snake border — @property animates the conic angle */
@property --snake-a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes snake-spin {
  to { --snake-a: 360deg; }
}

.post-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible; /* snake pseudo-element lives outside */
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Snake border pseudo-element */
.post-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: conic-gradient(
    from var(--snake-a),
    transparent 0%,
    transparent 65%,
    rgba(var(--accent-rgb), 0.45) 80%,
    rgba(var(--accent-rgb), 1)    90%,
    rgba(var(--accent-rgb), 0.45) 97%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
  animation: snake-spin 5s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.3s;
}
.post-card:hover::before {
  animation-play-state: running;
  opacity: 1;
}
/* Card background must cover the center of ::before */
.post-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--bg-card);
  z-index: -1;
  pointer-events: none;
}

.post-card:hover {
  border-color: #3a3a3a;
  transform: translateY(-2px);
}

.card-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-card2);
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

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

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

.card-thumb .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-card2), #161616);
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  /* Texto escuro sobre laranja: 7.2:1 — branco sobre #fc811d dava 2.5:1 */
  color: #1a0a00;
}

.cat-badge.cat-games          { background: #fc811d; color: #1a0a00; }
.cat-badge.cat-tecnologia     { background: #4361ee; color: #fff; }
.cat-badge.cat-filmes-e-series { background: #7209b7; color: #fff; }
.cat-badge.cat-youtube        { background: #c62828; color: #fff; }
.cat-badge.cat-other          { background: #3a3a3a; color: #ccc; }

.post-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent-text); }

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.tag-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

.tag-pill:hover {
  color: var(--text);
  border-color: #444;
}

/* ─── Home Layout (main + sidebar) ──────────────────────────────── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

.home-main { min-width: 0; }

.home-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-post-list li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
  transition: background 0.12s, color 0.12s;
}

.sidebar-post-list li a:hover {
  background: var(--bg-card2);
  color: var(--text);
}

.cat-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--text-dim);
}
.cat-dot.cat-games            { background: #fc811d; }
.cat-dot.cat-tecnologia       { background: #4361ee; }
.cat-dot.cat-filmes-e-series  { background: #7209b7; }
.cat-dot.cat-youtube          { background: #e63946; }

.archive-tree {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-tree .archive-tree {
  margin-top: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.archive-year > details > summary,
.archive-month > details > summary,
.archive-day > details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}

.archive-year summary::-webkit-details-marker,
.archive-month summary::-webkit-details-marker,
.archive-day summary::-webkit-details-marker {
  display: none;
}

.archive-year summary::before,
.archive-month summary::before,
.archive-day summary::before {
  content: "▸";
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--text-dim);
  transition: transform 0.15s;
}

.archive-year > details[open] > summary::before,
.archive-month > details[open] > summary::before,
.archive-day > details[open] > summary::before {
  transform: rotate(90deg);
}

.archive-year summary:hover,
.archive-month summary:hover,
.archive-day summary:hover {
  background: var(--bg-card2);
  color: var(--text);
}

.archive-count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-card2);
  padding: 1px 6px;
  border-radius: 10px;
}

.archive-day .sidebar-post-list {
  padding-left: 14px;
  margin-top: 4px;
}

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

/* ─── Page Layout ────────────────────────────────────────────────── */
.page-main {
  padding: 32px 0 80px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ─── Single Post ────────────────────────────────────────────────── */
.post-header {
  margin-bottom: 36px;
}

.post-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 16px 0 12px;
}

.post-cover {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  /* Proporção da arte procedural (1200×630) — 16/9 cortava ~6% da composição */
  aspect-ratio: 1200/630;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Prose (Article Content) ────────────────────────────────────── */
.prose {
  color: var(--text);
  font-size: 1.0625rem; /* 17px: a 16px os 720px de medida passavam de 85ch */
  line-height: 1.8;
  max-width: var(--max-prose);
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.prose p { margin-bottom: 1.4rem; }

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.6rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.prose strong { color: #fff; font-weight: 700; }

.prose em { color: #ccc; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--bg-card2);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose code {
  background: var(--bg-card2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: #a78bfa;
}

.prose pre {
  background: #0a0a0a;
  /* Fundo "terminal" é fixo nos dois temas → texto também precisa ser fixo
     (no claro, --text herdado vira #1a1a1a sobre #0a0a0a = invisível) */
  color: #e4e4e4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.4rem;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--accent-text-hover); }

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
}

.prose th, .prose td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.prose th {
  background: var(--bg-card2);
  font-weight: 700;
}

/* ── Prosa no tema claro ─────────────────────────────────────────────
   As cores acima são fixas pro fundo escuro; sem estes overrides negrito,
   itálico e código inline ficam ~1:1 de contraste no tema claro. */
[data-theme="light"] .prose strong { color: #111; }
[data-theme="light"] .prose em { color: #333; }
[data-theme="light"] .prose code { color: #6d28d9; }

/* ─── Share Bar ──────────────────────────────────────────────────── */
.share-bar {
  margin: 40px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 6px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 150ms, color 150ms, background 150ms, border-color 150ms;
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-wa:hover   { background: #25d366; border-color: #25d366; }
.share-x:hover    { background: #000;    border-color: #000; }
.share-fb:hover   { background: #1877f2; border-color: #1877f2; }
.share-li:hover   { background: #0a66c2; border-color: #0a66c2; }
.share-tg:hover   { background: #26a5e4; border-color: #26a5e4; }
.share-copy:hover { background: var(--accent); border-color: var(--accent); color: #1a0a00; }
[data-theme="light"] .share-btn:hover { color: #fff; }

/* ─── Post Footer ────────────────────────────────────────────────── */
.post-tags-footer {
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.post-tags-footer .label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

/* ─── Related Posts ──────────────────────────────────────────────── */
.related-posts {
  margin-top: 60px;
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.widget-list .w-thumb {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-card2);
}

.widget-list .w-title {
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.widget-list .w-title:hover { color: var(--accent-text); }

.widget-list .w-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ─── Category Page ──────────────────────────────────────────────── */
.cat-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.cat-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.cat-hero p {
  color: var(--text-muted);
  margin-top: 8px;
}

.cat-count {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-left: 8px;
  font-weight: 400;
}

/* ─── Pagination ─────────────────────────────────────────────────── */
/* Markup vem do template interno do Hugo: ul.pagination > li.page-item > a.page-link
   (página atual = li.active). list-style precisa ser zerado — o reset global não cobre. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  list-style: none;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s;
}

.pagination a:hover { color: var(--text); border-color: #444; }
.pagination .current,
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a0a00;
  font-weight: 700;
}

/* ─── Breadcrumbs ────────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs .sep { color: var(--border); }

/* ─── Sections spacing ───────────────────────────────────────────── */
.site-section {
  padding: 0 0 48px;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-featured {
    grid-template-columns: 1fr;
  }
  .hero-img {
    min-height: 220px;
    max-height: 260px;
  }
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .post-title { font-size: 1.75rem; }
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .hero-content { padding: 24px 20px; }
  .hero-content h2 { font-size: 1.35rem; }
  .post-title { font-size: 1.5rem; }
  .cat-hero { padding: 28px 0 20px; margin-bottom: 24px; }
  .cat-hero h1 { font-size: 1.75rem; }

  /* Tap targets: Google recomenda ≥48×48px. Aumentamos pills/paginação. */
  .tag-pill { padding: 8px 14px; font-size: 0.8rem; }
  .pagination a, .pagination span { padding: 12px 18px; }
}

/* ─── Touch device tuning: corta efeitos GPU que travam mobile ───── */
@media (hover: none) {
  /* Mouse-follow radial glow é inútil sem mouse — economiza paint contínuo */
  body::after { display: none; }
  /* Snake border anima em conic-gradient em cada card; em 12+ cards
     simultâneos isso saturava o GPU em mobile low-end. */
  .post-card::before { animation: none; opacity: 0; }
  .post-card:hover::before { opacity: 0; }
  /* Hover transforms não fazem sentido em touch e causam jank em scroll */
  .post-card:hover { transform: none; }
  .post-card:hover .card-thumb img { transform: none; }
  .hero-featured:hover .hero-img img { transform: none; }
  .share-btn:hover { transform: none; }
}

/* prefers-reduced-motion: respeitar setting do usuário */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card::before { animation: none; }
  .post-card { transition: none; }
  .card-thumb img, .hero-img img { transition: none; }
}

/* ─── Bottom spacing for fixed pill nav ─────────────────────────── */
body { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }

/* ─── AdSense: recolher blocos sem anúncio ───────────────────────────
   Auto ads injeta .google-auto-placed (~280px) e deixa o espaço em branco
   quando não há fill. O Google marca data-ad-status="unfilled" no <ins>;
   :has() recolhe também o wrapper (altura inline vence só com !important). */
ins.adsbygoogle[data-ad-status="unfilled"],
.google-auto-placed:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}
.prose ins.adsbygoogle { max-width: 100%; }

/* ─── Utilities ──────────────────────────────────────────────────── */
.text-accent { color: var(--accent-text); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
