/* =========================================================
   Blog OnFight — visual "Fight Editorial"
   Dark por padrão, tipografia condensada e forte, cinematográfico.
   ========================================================= */

:root {
  --accent: #ff2b3e;
  --accent-2: var(--accent);
  --accent-rgb: 255, 43, 62;   /* componentes RGB da cor de destaque (sobrescrito no <head>) */
  --accent-ink: #ffffff;

  /* Tema escuro (padrão) */
  --bg: #0a0b0d;
  --bg-soft: #121317;
  --bg-card: #14161b;
  --bg-elev: #1b1e24;
  --text: #f4f6f8;
  --text-soft: #98a2b0;
  --text-dim: #6b7480;
  --border: #23262d;
  --border-soft: #1a1d22;
  --glow: 0 0 0 1px rgba(var(--accent-rgb), .35), 0 20px 60px -20px rgba(var(--accent-rgb), .45);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --font-head: "Archivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --text: #0d0f13;
  --text-soft: #566072;
  --text-dim: #8a93a2;
  --border: #e6e8ec;
  --border-soft: #eef0f3;
  --glow: 0 0 0 1px rgba(var(--accent-rgb), .25), 0 20px 50px -22px rgba(var(--accent-rgb), .35);
  --shadow: 0 10px 30px rgba(13,15,19,.08);
  --shadow-lg: 0 26px 60px rgba(13,15,19,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Textura sutil de fundo (radiais) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(var(--accent-rgb), .10), transparent 60%),
    radial-gradient(50vw 50vw at -10% 10%, rgba(var(--accent-rgb), .07), transparent 55%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.kicker {
  font-family: var(--font-head); font-weight: 800; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 26px; border-radius: 999px; font-weight: 800;
  font-family: var(--font-head); letter-spacing: .02em; border: none; cursor: pointer;
  text-transform: uppercase; font-size: .9rem;
  box-shadow: 0 10px 26px -8px rgba(var(--accent-rgb), .6);
  transition: transform .15s ease, box-shadow .2s ease, filter .15s ease; width: fit-content;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(var(--accent-rgb), .75); filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent 70%); opacity: .9; }
.header-inner { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 900; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 22px;
  box-shadow: 0 8px 20px -6px rgba(var(--accent-rgb), .7); transform: rotate(-4deg);
}
.brand-name { font-size: 21px; letter-spacing: -.02em; text-transform: uppercase; }
.brand-name b { color: var(--accent); }
.brand-logo { max-height: 44px; width: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav > a { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; color: var(--text-soft); position: relative; transition: color .15s; }
.site-nav > a:hover { color: var(--text); }
.site-nav > a::after { content: ""; position: absolute; left: 0; bottom: -8px; height: 2px; width: 0; background: var(--accent); transition: width .22s; }
.site-nav > a:hover::after { width: 100%; }

.nav-search { display: flex; align-items: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px 6px 5px 15px; }
.nav-search input { border: none; background: transparent; outline: none; color: var(--text); width: 120px; font-size: 14px; }
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search button { border: none; background: transparent; cursor: pointer; font-size: 15px; }
.theme-toggle { border: 1px solid var(--border); background: var(--bg-soft); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: border-color .15s; }
.theme-toggle:hover { border-color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------------- Hero ---------------- */
.hero { position: relative; text-align: center; padding: 84px 0 44px; }
.hero .kicker { display: inline-block; margin-bottom: 18px; padding: 7px 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hero-title { font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 900; margin: 0 0 16px; text-transform: uppercase; letter-spacing: -.03em; }
.hero-title .hl { color: transparent; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.hero-tagline { color: var(--text-soft); font-size: 1.2rem; max-width: 620px; margin: 0 auto; }

/* ---------------- Barra de aviso/cupom ---------------- */
.announce { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; text-align: center; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; padding: 9px 16px; }
.announce a { color: #fff; }
.announce a:hover { text-decoration: underline; }

/* ---------------- Botão creme (estilo loja) + tamanhos ---------------- */
.btn--cream { background: #efe9dc; color: #14161b; box-shadow: 0 12px 26px -12px rgba(0,0,0,.55); }
.btn--cream:hover { background: #fff; filter: none; }
.btn--sm { padding: 10px 18px; font-size: .78rem; }
.nav-store { box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }

/* ---------------- Hero-post (destaque cinematográfico como capa) ---------------- */
.hero-post {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  margin: 26px 0 36px; min-height: 560px; display: flex; align-items: flex-end;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  background-image:
    linear-gradient(180deg, rgba(6,7,9,.12) 0%, rgba(6,7,9,.55) 46%, rgba(6,7,9,.96) 100%),
    var(--hero-img, none);
  background-size: cover; background-position: center; background-color: var(--bg-elev);
}
.hero-post-inner { position: relative; z-index: 2; padding: 50px 54px; max-width: 780px; color: #fff; }
.hero-post-title { font-size: clamp(2.1rem, 5.4vw, 3.9rem); margin: 12px 0 14px; text-transform: uppercase; color: #fff; letter-spacing: -.025em; }
.hero-post-title a:hover { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.hero-post-excerpt { color: rgba(255,255,255,.9); font-size: 1.14rem; max-width: 650px; margin: 0 0 6px; }
.hero-post-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.card-meta.light { color: rgba(255,255,255,.82); margin-top: 14px; }
.card-meta.light .dot { background: rgba(255,255,255,.6); }

/* ---------------- Chips de categoria ---------------- */
.chips-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 44px; }
.chips-label { font-family: var(--font-head); text-transform: uppercase; font-size: .72rem; letter-spacing: .16em; color: var(--text-dim); margin-right: 4px; }
.chip { font-family: var(--font-head); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; font-weight: 700; padding: 9px 17px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-soft); transition: .16s; }
.chip:hover { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: 0 10px 20px -8px rgba(var(--accent-rgb), .7); transform: translateY(-2px); }

/* ---------------- Section CTA ---------------- */
.section-cta { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: .82rem; letter-spacing: .05em; color: var(--accent); white-space: nowrap; }
.section-cta:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Placeholder mais bonito (posts sem imagem) */
.card-media--placeholder { background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 62%); }

@media (max-width: 720px) {
  .hero-post { min-height: 440px; }
  .hero-post-inner { padding: 30px 24px; }
  .nav-store { align-self: flex-start; }
}

/* ---------------- Featured (overlay cinematográfico) ---------------- */
.featured {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  margin: 24px 0 60px; min-height: 460px; display: flex; align-items: flex-end;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.featured-media { position: absolute; inset: 0; z-index: 0; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured:hover .featured-media img { transform: scale(1.05); }
.featured::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,7,9,.05) 0%, rgba(6,7,9,.5) 45%, rgba(6,7,9,.94) 100%); }
.featured .card-media--placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg-elev); }
.featured-body { position: relative; z-index: 2; padding: 44px 48px; max-width: 720px; color: #fff; }
.featured-flag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.featured-title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin: 8px 0 14px; text-transform: uppercase; color: #fff; }
.featured-title a:hover { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.featured-excerpt { color: rgba(255,255,255,.85); margin-bottom: 22px; font-size: 1.08rem; max-width: 620px; }
.featured .card-meta { color: rgba(255,255,255,.75); margin-bottom: 20px; }

/* ---------------- Section headings ---------------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 26px; }
.section-heading { font-size: 1.9rem; text-transform: uppercase; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 14px; }
.section-heading::before { content: ""; width: 6px; height: 1.4em; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 6px 16px -4px rgba(var(--accent-rgb), .6); }

/* ---------------- Cards grid ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--glow); }
.card-media { position: relative; aspect-ratio: 16/10; background: var(--bg-elev); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); opacity: 0; transition: opacity .25s; }
.card:hover .card-media::after { opacity: 1; }
.card-media--placeholder { font-size: 50px; opacity: .3; }
.card-media--placeholder.big { font-size: 90px; }
.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--font-head); font-weight: 800; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--accent);
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(var(--accent-rgb), .8);
}
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card-title { font-size: 1.28rem; margin: 0; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.12; }
.card-title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s, color .2s; }
.card:hover .card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--text-soft); font-size: .95rem; margin: 0; flex: 1; }
.card-meta { color: var(--text-dim); font-size: .8rem; display: flex; gap: 8px; align-items: center; margin-top: 2px; font-weight: 500; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 54px 0 10px; }
.page-btn { font-family: var(--font-head); text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; font-weight: 700; border: 1px solid var(--border); padding: 11px 20px; border-radius: 999px; transition: .15s; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-info { color: var(--text-dim); font-size: .85rem; }

/* ---------------- Page head (listagens) ---------------- */
.page-head { padding: 60px 0 30px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 10px; text-transform: uppercase; }
.page-head p { color: var(--text-soft); margin: 0; font-size: 1.1rem; }
.search-big { display: flex; gap: 10px; margin-top: 22px; max-width: 540px; }
.search-big input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); outline: none; }
.search-big input:focus { border-color: var(--accent); }

/* ---------------- Post ---------------- */
.post { max-width: 780px; margin: 0 auto; padding-top: 34px; }
.breadcrumbs { font-family: var(--font-head); text-transform: uppercase; font-size: .74rem; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent); }
.post-header { margin-bottom: 28px; }
.post-title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 16px 0 16px; text-transform: uppercase; letter-spacing: -.025em; }
.post-lead { font-size: 1.25rem; color: var(--text-soft); line-height: 1.55; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-dim); font-size: .88rem; }
.post-meta .author { font-weight: 700; color: var(--text); }
.post-cover { margin: 12px 0 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.post-cover img { width: 100%; object-fit: cover; }
.post-cover figcaption { font-size: .82rem; color: var(--text-dim); padding: 10px 4px; text-align: center; }

.post-content { font-size: 1.14rem; line-height: 1.85; }
.post-content > * + * { margin-top: 1.4em; }
.post-content > p:first-of-type::first-letter { font-family: var(--font-head); font-weight: 900; font-size: 3.4em; line-height: .8; float: left; margin: .05em .12em 0 0; color: var(--accent); }
.post-content h2 { font-size: 1.9rem; margin-top: 1.9em; text-transform: uppercase; letter-spacing: -.01em; }
.post-content h3 { font-size: 1.42rem; margin-top: 1.6em; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.post-content img { border-radius: var(--radius); margin: 1.6em auto; box-shadow: var(--shadow); }
.post-content blockquote { border-left: 4px solid var(--accent); margin: 1.7em 0; padding: 8px 0 8px 24px; color: var(--text); font-style: italic; font-size: 1.28rem; font-family: var(--font-head); font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: .55em; }
.post-content li::marker { color: var(--accent); }
.post-content code { background: var(--bg-elev); padding: 2px 8px; border-radius: 6px; font-size: .9em; }
.post-content pre { background: #0d1117; color: #e6edf3; padding: 22px; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--border); }
.post-content pre code { background: none; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; }
.post-content th { background: var(--bg-elev); }

.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 46px 0 26px; }
.pill { font-family: var(--font-head); text-transform: uppercase; font-size: .76rem; letter-spacing: .05em; font-weight: 700; border: 1px solid var(--border); padding: 7px 15px; border-radius: 999px; color: var(--text-soft); transition: .15s; }
.pill:hover { border-color: var(--accent); color: var(--accent); }

.post-share { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.post-share span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--text-dim); font-weight: 700; }
.post-share a { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: .8rem; color: var(--text); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; transition: .15s; }
.post-share a:hover { border-color: var(--accent); color: var(--accent); }

.related { max-width: var(--maxw); margin: 20px auto 0; }

/* ---------------- Empty state ---------------- */
.empty-state { text-align: center; padding: 90px 20px; color: var(--text-soft); }
.empty-state span { font-size: 66px; display: block; margin-bottom: 14px; }
.empty-state h1, .empty-state h2 { color: var(--text); text-transform: uppercase; }

/* ---------------- Footer ---------------- */
.site-footer { position: relative; background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 90px; padding: 56px 0 0; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; }
.footer-brand { max-width: 380px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-soft); margin: 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-social a { font-family: var(--font-head); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; font-weight: 700; color: var(--text-soft); transition: color .15s; }
.footer-social a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px; text-align: center; color: var(--text-dim); font-size: .84rem; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 900px) {
  .featured { min-height: 400px; }
  .featured-body { padding: 30px 26px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 30px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 22px 28px;
    gap: 18px; transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .site-nav.open { transform: translateY(0); }
  .nav-search, .nav-search input { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .post-content > p:first-of-type::first-letter { font-size: 2.8em; }
}
/* ================= Recursos novos + polimento de UX ================= */

/* Acessibilidade e detalhes globais */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }
input, textarea, select, button { font-family: inherit; }

/* Barra de progresso de leitura */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgba(var(--accent-rgb), .6); transition: width .1s linear; }

/* Voltar ao topo */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--accent); color: #fff; font-size: 20px; cursor: pointer; z-index: 45; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, filter .15s; box-shadow: 0 12px 26px -8px rgba(var(--accent-rgb), .7); }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* Banner de cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 55; margin: 0 auto; max-width: 720px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-lg); }
.cookie-bar p { margin: 0; font-size: .9rem; color: var(--text-soft); flex: 1; min-width: 220px; }
.cookie-bar a { color: var(--accent); text-decoration: underline; }

/* Sumário (TOC) */
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 22px; margin: 0 0 34px; }
.toc-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--text-dim); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 6px 0; }
.toc li a { color: var(--text-soft); font-size: .96rem; transition: color .15s; }
.toc li a:hover { color: var(--accent); }
.toc-l3 { padding-left: 18px; font-size: .9rem; }
.toc-l3 a { color: var(--text-dim); }

/* Aviso de pré-visualização */
.preview-banner { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 22px; font-weight: 600; font-size: .92rem; }
.preview-banner a { color: #92400e; text-decoration: underline; }

/* Mais lidos */
.popular { margin: 70px 0 0; }
.popular-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 30px; }
.popular-item { display: flex; align-items: center; gap: 16px; }
.popular-rank { font-family: var(--font-head); font-weight: 900; font-size: 1.8rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); min-width: 30px; }
.popular-thumb { width: 84px; height: 64px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-elev); display: grid; place-items: center; }
.popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.popular-cat { font-family: var(--font-head); text-transform: uppercase; font-size: .66rem; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.popular-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; text-transform: uppercase; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular-title:hover { color: var(--accent); }
.popular-meta { font-size: .78rem; color: var(--text-dim); }

/* Newsletter */
.newsletter { margin: 70px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg-soft)), var(--bg-soft)); position: relative; }
.newsletter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40vw 40vw at 90% -20%, rgba(var(--accent-rgb), .18), transparent 60%); pointer-events: none; }
.newsletter-inner { position: relative; padding: 42px 44px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.newsletter-title { font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; margin: 0 0 6px; }
.newsletter-sub { color: var(--text-soft); margin: 0; max-width: 440px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); outline: none; min-width: 240px; transition: border-color .15s; }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-msg { flex-basis: 100%; margin: 4px 0 0; font-weight: 600; font-size: .92rem; }
.newsletter-msg.ok { color: #16a34a; }
.newsletter-msg.err { color: var(--accent); }

@media (max-width: 720px) {
  .popular-list { grid-template-columns: 1fr; }
  .newsletter-inner { padding: 30px 24px; }
  .newsletter-form, .newsletter-form input { width: 100%; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ===== Header sempre ESCURO (on-brand; logo branca aparece) ===== */
.site-header { background: rgba(10, 11, 13, .90); backdrop-filter: saturate(160%) blur(12px); border-bottom-color: #23262d; }
.site-header .brand-name { color: #fff; }
.site-header .brand-name b { color: var(--accent); }
.site-header .site-nav > a { color: rgba(255, 255, 255, .74); }
.site-header .site-nav > a:hover { color: #fff; }
.site-header .nav-search { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.site-header .nav-search input { color: #fff; }
.site-header .nav-search input::placeholder { color: rgba(255, 255, 255, .55); }
.site-header .theme-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.site-header .nav-toggle span { background: #fff; }
@media (max-width: 720px) {
  .site-header .site-nav { background: #0a0b0d; border-bottom-color: #23262d; }
}

/* ===== Correção do banner de cookies (o atributo hidden precisa vencer o display:flex) ===== */
.cookie-bar[hidden] { display: none !important; }

/* ===== Rodapé sempre ESCURO (on-brand; logo branca aparece) ===== */
.site-footer { background: #0a0b0d; border-top-color: #23262d; }
.site-footer .footer-brand strong,
.site-footer .brand-name { color: #fff; }
.site-footer .footer-brand p { color: rgba(255, 255, 255, .62); }
.site-footer .footer-social a { color: rgba(255, 255, 255, .72); }
.site-footer .footer-social a:hover { color: var(--accent); }
.site-footer .footer-bottom { color: rgba(255, 255, 255, .5); border-top-color: #23262d; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
