/* =========================================================
   GTAVI WIKI — stylesheet
   ========================================================= */

:root {
  --bg: #0a0a0e;
  --bg-alt: #0d0d12;
  --card: #131318;
  --card-alt: #17171e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: #9a9aa5;
  --text-dimmer: #6b6b76;
  --pink: #ff2f7a;
  --pink-dark: #c81f5e;
  --cyan: #2fd8f0;
  --radius: 10px;
  --container: 1280px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 12px; }

.btn-pink {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255, 47, 122, 0.6);
}
.btn-pink:hover { background: #ff4589; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }

/* ---------- Icon button ---------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.06); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 14, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
.logo span { color: var(--pink); }

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); border-bottom-color: var(--pink); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.search-bar {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.25s ease, border-color 0.25s ease;
}
.search-bar.is-open {
  max-height: 80px;
  border-top: 1px solid var(--border);
}
.search-bar form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: var(--text-dim);
}
.search-bar svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
}
.search-bar input::placeholder { color: var(--text-dimmer); }

/* ---- Painel de resultados da busca ---- */
.search-results-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.search-results-panel.is-open {
  max-height: 70vh;
  overflow-y: auto;
  border-bottom-color: var(--border);
}
.search-results-panel .container { padding-top: 8px; padding-bottom: 16px; }

.search-result-group { padding: 10px 0; border-top: 1px solid var(--border); }
.search-result-group:first-child { border-top: none; }
.search-result-group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  padding: 6px 6px 2px;
}
.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 6px;
}
.search-result-item:hover { background: rgba(255, 255, 255, 0.05); }
.search-result-title { color: #fff; font-weight: 600; font-size: 13.5px; }
.search-result-excerpt { color: var(--text-dim); font-size: 12px; }
.search-empty { padding: 20px 6px; color: var(--text-dimmer); font-size: 13px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

/* Camada opcional para foto real (ver assets/js/site-images.js). Fica
   transparente até que uma imagem seja cadastrada para o slot. */
.hero-photo-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
}

.hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2a1a3a 0%, #4a2350 22%, #7a3450 42%, #b3506a 58%, #1a1420 78%, #0a0a0e 100%);
}

.hero-lights {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(3px 3px at 12% 70%, rgba(255,150,200,0.9), transparent),
    radial-gradient(2px 2px at 20% 62%, rgba(120,220,255,0.8), transparent),
    radial-gradient(3px 3px at 30% 75%, rgba(255,200,120,0.9), transparent),
    radial-gradient(2px 2px at 45% 66%, rgba(255,120,180,0.8), transparent),
    radial-gradient(3px 3px at 58% 72%, rgba(150,230,255,0.9), transparent),
    radial-gradient(2px 2px at 68% 60%, rgba(255,150,120,0.8), transparent),
    radial-gradient(3px 3px at 78% 74%, rgba(255,120,200,0.9), transparent),
    radial-gradient(2px 2px at 88% 65%, rgba(150,200,255,0.8), transparent),
    radial-gradient(3px 3px at 95% 78%, rgba(255,180,120,0.9), transparent);
  filter: blur(0.5px);
}

.hero-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 60px;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,0.4)),
    repeating-linear-gradient(90deg,
      #14101a 0 40px,
      #1c1624 40px 70px,
      #110d16 70px 110px,
      #201828 110px 150px);
  clip-path: polygon(
    0% 100%, 0% 40%, 4% 40%, 4% 20%, 9% 20%, 9% 55%, 14% 55%, 14% 10%,
    19% 10%, 19% 45%, 25% 45%, 25% 30%, 30% 30%, 30% 60%, 36% 60%, 36% 15%,
    41% 15%, 41% 50%, 47% 50%, 47% 5%, 52% 5%, 52% 40%, 58% 40%, 58% 25%,
    63% 25%, 63% 55%, 69% 55%, 69% 12%, 74% 12%, 74% 48%, 80% 48%, 80% 30%,
    85% 30%, 85% 58%, 91% 58%, 91% 18%, 96% 18%, 96% 42%, 100% 42%, 100% 100%
  );
}

.hero-water {
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(180deg, rgba(179,80,106,0.25), #050507);
}

.hero-inner { position: relative; z-index: 2; padding: 64px 24px; }

.hero-card {
  max-width: 540px;
  background: rgba(6, 6, 9, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 44px;
  backdrop-filter: blur(6px);
}

.eyebrow {
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.02;
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: 0.01em;
}

.hero-text {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 400px;
  margin: 0 0 28px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   SECTIONS (generic)
   ========================================================= */
.section { padding: 72px 0; }
.section + .section { padding-top: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
  color: #fff;
}

/* =========================================================
   CATEGORY GRID (Explore o Universo)
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  isolation: isolate;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.category-card-bg {
  position: absolute; inset: 0;
  transition: transform 0.4s ease;
}
.category-card:hover .category-card-bg { transform: scale(1.06); }

.category-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,11,0.15) 0%, rgba(8,8,11,0.55) 55%, rgba(8,8,11,0.92) 100%);
  z-index: 1;
}

.cat-personagens .category-card-bg { background: radial-gradient(circle at 30% 20%, #7a2e55, #2a1030 60%, #0e0812); }
.cat-locais .category-card-bg { background: linear-gradient(160deg, #1c3a4a, #10222c 60%, #0a1418); }
.cat-veiculos .category-card-bg { background: radial-gradient(circle at 70% 30%, #3a2030, #16141c 60%, #0a0a0e); }
.cat-faccoes .category-card-bg { background: linear-gradient(160deg, #2a1818, #1a1414 60%, #0c0a0a); }
.cat-missoes .category-card-bg { background: radial-gradient(circle at 60% 70%, #16334a, #0e1c28 60%, #08121a); }
.cat-armas .category-card-bg { background: linear-gradient(160deg, #2c2412, #1a1610 60%, #0d0b08); }

.category-arrow {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 14px;
  color: #fff;
  transition: background 0.2s ease;
}
.category-card:hover .category-arrow { background: var(--pink); border-color: var(--pink); }

.category-info {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 2;
}
.category-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.category-count {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* =========================================================
   CHARACTER GRID (Personagens principais)
   ========================================================= */
.character-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.character-card {
  position: relative;
  display: block;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}
.character-card:hover { transform: translateY(-3px); }

.character-bg { position: absolute; inset: 0; transition: transform 0.4s ease; }
.character-card:hover .character-bg { transform: scale(1.05); }

.character-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,6,9,0.85) 0%, rgba(6,6,9,0.55) 45%, rgba(6,6,9,0.15) 100%);
}

.character-pink { border-color: rgba(255,47,122,0.5); }
.character-pink .character-bg { background: radial-gradient(circle at 75% 30%, #7a2e55, #2a1030 55%, #120a16); }
.character-pink:hover { box-shadow: 0 0 0 1px var(--pink), 0 16px 40px -20px rgba(255,47,122,0.5); }

.character-cyan { border-color: rgba(47,216,240,0.5); }
.character-cyan .character-bg { background: radial-gradient(circle at 75% 30%, #1c4a55, #0f2830 55%, #0a161a); }
.character-cyan:hover { box-shadow: 0 0 0 1px var(--cyan), 0 16px 40px -20px rgba(47,216,240,0.5); }

.palm-icon {
  position: absolute;
  top: 20px; left: 22px;
  z-index: 2;
  width: 22px; height: 22px;
}
.character-pink .palm-icon { color: var(--pink); }
.character-cyan .palm-icon { color: var(--cyan); }

.character-body {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  z-index: 2;
}
.character-name {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
  margin-bottom: 10px;
}
.character-pink .character-name { color: var(--pink); }
.character-cyan .character-name { color: var(--cyan); }

.character-tagline {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  max-width: 260px;
  margin-bottom: 14px;
}

.character-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.character-pink .character-link { color: var(--pink); }
.character-cyan .character-link { color: var(--cyan); }

/* =========================================================
   MAP (Descubra Leonida)
   ========================================================= */
.map-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.map-panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 320px;
  background: #17171e;
}
.map-svg { width: 100%; height: 100%; position: absolute; inset: 0; }

.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.pin-dot {
  width: 14px; height: 14px;
  background: var(--pink);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,47,122,0.25);
}
.pin-label {
  margin-top: 6px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.location-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease;
}
.location-item:last-child { border-bottom: none; }
.location-item:hover { background: rgba(255,255,255,0.03); color: #fff; }
.location-item.is-active { color: var(--pink); background: rgba(255,47,122,0.06); }

.location-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; }
.location-icon svg { width: 100%; height: 100%; }

.location-name { flex: 1; }
.location-arrow { opacity: 0.6; }

/* =========================================================
   ARTICLES (Artigos populares)
   ========================================================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.article-thumb {
  position: relative;
  display: block;
  height: 170px;
}
.thumb-guia { background: radial-gradient(circle at 30% 30%, #7a2e55, #2a1030 60%, #100a14); }
.thumb-personagens { background: radial-gradient(circle at 70% 30%, #6a2848, #22101c 60%, #0e0810); }
.thumb-veiculos { background: radial-gradient(circle at 40% 60%, #123a4a, #0c1e28 60%, #08121a); }

.article-tag {
  position: absolute;
  z-index: 2;
  top: 12px; left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  color: #fff;
}
.tag-guia { background: var(--pink); }
.tag-personagens { background: var(--pink-dark); }
.tag-veiculos { background: #1592b0; }

/* Variante estática (não sobrepõe imagem): tickers, cards com corpo próprio */
.pill-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-body { display: block; padding: 20px; }
.article-title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 8px;
}
.article-desc {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.5;
}
.article-meta {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dimmer);
}
.article-meta .dot { margin: 0 4px; }

/* =========================================================
   PERSONAGENS — hero
   ========================================================= */
.characters-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.characters-hero .hero-sky {
  background: linear-gradient(180deg, #150e22 0%, #2c1533 30%, #3a1830 55%, #1a1420 80%, #0a0a0e 100%);
}
.hero-figures {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 46%;
  max-width: 520px;
  height: 100%;
  z-index: 1;
}
.hero-figure {
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 74%;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  filter: blur(0.3px);
}
.hero-figure::after {
  content: "";
  position: absolute;
  top: -16%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: inherit;
  transform: translateX(-50%);
}
.hero-figure.figure-a {
  left: 0;
  background: radial-gradient(circle at 40% 30%, #c86a95, #5a2244 55%, #1a0e16 90%);
  opacity: 0.9;
}
.hero-figure.figure-b {
  left: 38%;
  height: 84%;
  background: radial-gradient(circle at 45% 25%, #9aa8b8, #33404c 55%, #0e1216 90%);
  opacity: 0.92;
}
.neon-sign {
  position: absolute;
  top: 10%;
  right: 2%;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--pink);
  text-shadow: 0 0 8px rgba(255, 47, 122, 0.85), 0 0 22px rgba(255, 47, 122, 0.5);
  z-index: 2;
}

/* =========================================================
   PERSONAGENS — toolbar (busca + filtros)
   ========================================================= */
.people-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.people-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
}
.people-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.people-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
}
.people-search input::placeholder { color: var(--text-dimmer); }

.filter-tabs {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.filter-tab {
  background: none;
  border: none;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.is-active { color: var(--pink); border-bottom-color: var(--pink); }

/* =========================================================
   PERSONAGENS — grid de personagens
   ========================================================= */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.people-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.people-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.people-thumb { position: relative; height: 160px; }
.people-thumb-1 { background: radial-gradient(circle at 30% 30%, #6a3a2a, #241812 60%, #0e0a08); }
.people-thumb-2 { background: radial-gradient(circle at 60% 30%, #3a2a5a, #1a1428 60%, #0a0810); }
.people-thumb-3 { background: radial-gradient(circle at 40% 40%, #2a4a3a, #12241c 60%, #080e0a); }
.people-thumb-4 { background: radial-gradient(circle at 55% 35%, #5a2a3a, #24121a 60%, #0e0608); }
.people-thumb-5 { background: radial-gradient(circle at 35% 30%, #3a3a2a, #1c1c12 60%, #0c0c08); }
.people-thumb-6 { background: radial-gradient(circle at 60% 40%, #6a2a52, #26101e 60%, #0e080c); }
.people-thumb-7 { background: radial-gradient(circle at 45% 35%, #3a5a8a, #101828 60%, #080c14); }
.people-thumb-8 { background: radial-gradient(circle at 50% 30%, #8a3a3a, #201010 60%, #0c0808); }

.people-body { padding: 18px 18px 20px; }
.people-name {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.people-role {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.role-aliado { color: var(--cyan); }
.role-rival { color: var(--pink); }
.role-faccao { color: #f0ac3c; }

.people-desc {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  min-height: 36px;
}
.people-arrow {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 15px;
}
.people-card:hover .people-arrow { color: var(--pink); }

.people-empty {
  display: none;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.people-empty.is-visible { display: block; }

/* =========================================================
   PERSONAGENS — relações e facções
   ========================================================= */
.relations-panel {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px;
  overflow: hidden;
}

.relation-side-card {
  flex: 0 0 200px;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 340px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.relation-side-card::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.relation-side-card.side-pink { border-color: rgba(255,47,122,0.5); }
.relation-side-card.side-pink::before { background: radial-gradient(circle at 70% 25%, #7a2e55, #260f1e 60%, #0e070c); }
.relation-side-card.side-cyan { border-color: rgba(47,216,240,0.5); }
.relation-side-card.side-cyan::before { background: radial-gradient(circle at 70% 25%, #1c4a55, #0e2026 60%, #060d10); }
.relation-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
}
.side-pink .relation-name { color: var(--pink); }
.side-cyan .relation-name { color: var(--cyan); }

.relation-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding: 24px;
}

.relation-row { text-align: center; }
.relation-row-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.relation-row.row-aliados .relation-row-label { color: var(--cyan); }
.relation-row.row-rivais .relation-row-label { color: var(--pink); }
.relation-row.row-faccoes .relation-row-label { color: var(--text-dim); }

.relation-avatars {
  display: flex;
  justify-content: center;
  gap: 22px;
  position: relative;
}
.relation-avatars::before {
  content: "";
  position: absolute;
  left: -24px; right: -24px; top: 50%;
  border-top: 1px dashed var(--border-strong);
  z-index: 0;
}
.row-aliados .relation-avatars::before { border-top-color: rgba(47,216,240,0.35); }
.row-rivais .relation-avatars::before { border-top-color: rgba(255,47,122,0.35); }
.row-faccoes .relation-avatars::before { border-top-color: rgba(255,255,255,0.15); }

.relation-avatar { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.relation-avatar-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}
.avatar-1 { background: radial-gradient(circle at 35% 30%, #6a3a2a, #241812); }
.avatar-2 { background: radial-gradient(circle at 60% 30%, #3a2a5a, #1a1428); }
.avatar-3 { background: radial-gradient(circle at 40% 40%, #2a4a3a, #12241c); }
.avatar-4 { background: radial-gradient(circle at 55% 35%, #5a2a3a, #24121a); }
.avatar-5 { background: radial-gradient(circle at 45% 35%, #2a3a5a, #101828); }
.avatar-6 { background: radial-gradient(circle at 50% 30%, #4a2a2a, #201010); }
.row-aliados .relation-avatar-img { border-color: rgba(47,216,240,0.5); }
.row-rivais .relation-avatar-img { border-color: rgba(255,47,122,0.5); }
.row-faccoes .relation-avatar-img { border-color: rgba(255,255,255,0.25); border-radius: 8px; }

.relation-avatar-name {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* =========================================================
   LOCAIS
   ========================================================= */

.locais-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.locais-hero .hero-sky {
  background: linear-gradient(180deg, #241030 0%, #4a1f3a 22%, #a3452f 48%, #d98a3c 62%, #2a1420 82%, #0a0a0e 100%);
}
.locais-hero .sun-glow {
  position: absolute;
  top: 8%; right: 12%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.9), rgba(255, 214, 150, 0) 70%);
  filter: blur(2px);
  z-index: 1;
}
/* Scrim genérico: qualquer hero em tela cheia (sem card) usa esta camada
   para garantir legibilidade do texto sobre a imagem de fundo. */
.hero-scrim::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,6,9,0.82) 0%, rgba(6,6,9,0.35) 45%, rgba(6,6,9,0.05) 70%);
  z-index: 1;
}
.locais-hero-inner { position: relative; z-index: 2; padding: 60px 24px; max-width: 560px; }
.profile-eyebrow.eyebrow-amber { color: #f0ac3c; }

/* ---- Mapa de Leonida ---- */
.map-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.dot-pink { background: var(--pink); }
.legend-dot.dot-cyan { background: var(--cyan); }
.legend-dot.dot-amber { background: #f0ac3c; }

.map-pin.pin-cyan .pin-dot { background: var(--cyan); box-shadow: 0 0 0 6px rgba(47,216,240,0.25); }
.map-pin.pin-cyan .pin-label { background: var(--cyan); color: #06060a; }
.map-pin.pin-amber .pin-dot { background: #f0ac3c; box-shadow: 0 0 0 6px rgba(240,172,60,0.25); }
.map-pin.pin-amber .pin-label { background: #f0ac3c; color: #06060a; }
.map-pin.pin-small .pin-dot { width: 10px; height: 10px; border-width: 2px; }
.map-pin.pin-small .pin-label { display: none; }

/* ---- Regiões em destaque (bento) ---- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.featured-grid .feature-col { display: flex; flex-direction: column; gap: 20px; }

.feature-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 200px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature-card.feature-large { min-height: 420px; }

.feature-bg { position: absolute; inset: 0; transition: transform 0.4s ease; }
.feature-card:hover .feature-bg { transform: scale(1.05); }
.feature-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,11,0.1) 0%, rgba(8,8,11,0.5) 55%, rgba(8,8,11,0.92) 100%);
}
.feature-body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.feature-name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.feature-card.feature-large .feature-name { font-size: 30px; }
.feature-name.name-pink { color: var(--pink); }
.feature-name.name-cyan { color: var(--cyan); }
.feature-tagline { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.feature-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.feature-link.link-pink { color: var(--pink); }
.feature-link.link-cyan { color: var(--cyan); }

/* ---- Todos os locais ---- */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.location-grid-card {
  position: relative;
  display: block;
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.location-grid-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.location-card-bg { position: absolute; inset: 0; transition: transform 0.4s ease; }
.location-grid-card:hover .location-card-bg { transform: scale(1.06); }
.location-grid-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,11,0.1) 0%, rgba(8,8,11,0.55) 55%, rgba(8,8,11,0.92) 100%);
}
.location-card-arrow {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 14px;
  color: #fff;
  transition: background 0.2s ease;
}
.location-grid-card:hover .location-card-arrow { background: var(--pink); border-color: var(--pink); }
.location-card-body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.location-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.location-card-name.name-pink { color: var(--pink); }
.location-card-name.name-cyan { color: var(--cyan); }
.location-card-type {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  margin-bottom: 8px;
}
.location-card-desc { display: block; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* ---- Explore por tipo ---- */
.type-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.type-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.type-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.type-tile.is-active { border-color: var(--pink); background: rgba(255,47,122,0.06); }
.type-tile-icon { width: 26px; height: 26px; color: var(--text-dim); }
.type-tile.is-active .type-tile-icon { color: var(--pink); }
.type-tile-icon svg { width: 100%; height: 100%; }
.type-tile-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim); }
.type-tile-count { font-family: var(--font-display); font-size: 20px; color: #fff; }

/* ---- Página de post individual (post.html) ---- */
.post-cover {
  height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  background-size: cover;
  background-position: center;
}
.post-body { max-width: 100%; }
.post-body p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0 0 20px;
}

/* =========================================================
   Editor de blocos — renderização pública (posts e páginas
   montados pelo painel /admin, ver admin/admin.js buildBlocksHtml)
   ========================================================= */
.builder-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  margin-bottom: 24px;
}
.builder-row:last-child { margin-bottom: 0; }
.builder-col-12 { grid-column: span 12; min-width: 0; }
.builder-col-8 { grid-column: span 8; min-width: 0; }
.builder-col-6 { grid-column: span 6; min-width: 0; }
.builder-col-4 { grid-column: span 4; min-width: 0; }

.builder-col > *:last-child { margin-bottom: 0 !important; }

.block-heading { font-family: var(--font-display); color: #fff; margin: 0 0 12px; letter-spacing: -0.01em; }
h2.block-heading { font-size: 26px; }
h3.block-heading { font-size: 19px; }

.block-image { margin: 0 0 20px; }
.block-image img { width: 100%; border-radius: var(--radius); display: block; }
.block-image figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-dimmer); text-align: center; }

.block-quote {
  margin: 0 0 20px;
  padding: 20px 24px;
  border-left: 3px solid var(--pink);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.block-quote p { font-size: 17px; font-style: italic; color: var(--text); margin: 0 0 8px; line-height: 1.6; }
.block-quote cite { font-size: 12.5px; color: var(--text-dim); font-style: normal; font-weight: 600; }

.block-button { margin: 0 0 20px; }

.block-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin: 0 0 20px; background: var(--bg-alt); }
.block-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0 0 20px; }
.block-gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }

.block-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0 28px; }

.block-spacer-sm { height: 16px; }
.block-spacer-md { height: 32px; }
.block-spacer-lg { height: 64px; }

.block-hero { text-align: center; padding: 56px 24px; margin-bottom: 8px; }
.block-hero-eyebrow { font-size: 12px; letter-spacing: 0.08em; font-weight: 700; color: var(--pink); text-transform: uppercase; margin: 0 0 12px; }
.block-hero-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); color: #fff; margin: 0 0 16px; line-height: 1.05; text-wrap: balance; }
.block-hero-subtitle { color: var(--text-dim); font-size: 16px; max-width: 640px; margin: 0 auto 24px; line-height: 1.6; }

.block-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0 0 8px; }
.block-grid-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.block-grid-item h3 { font-family: var(--font-display); font-size: 17px; color: #fff; margin: 0 0 8px; }
.block-grid-item p { color: var(--text-dim); font-size: 14px; margin: 0; line-height: 1.6; }

.block-cta { text-align: center; padding: 44px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.block-cta h2 { font-family: var(--font-display); font-size: 26px; color: #fff; margin: 0 0 12px; }
.block-cta p { color: var(--text-dim); margin: 0 0 20px; line-height: 1.6; }

.builder-page { padding: 48px 0 64px; }

@media (max-width: 680px) {
  .builder-row { grid-template-columns: 1fr; gap: 20px; }
  .block-hero { padding: 40px 16px; }
}

/* ---- Article meta com seta ---- */
.article-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.article-meta-arrow { color: var(--pink); font-size: 13px; }

/* =========================================================
   COMPONENTES COMPARTILHADOS: Veículos / Missões / Notícias
   ========================================================= */

/* ---- Rótulo de categoria em cards de artigo ---- */
.article-category {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 6px;
}
.article-category.cat-pink { color: var(--pink); }

/* ---- Meta extra em feature-card (local / personagens) ---- */
.feature-meta {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dimmer);
  margin-bottom: 8px;
}

/* ---- Indicador de dificuldade (missões) ---- */
.difficulty-dots {
  position: absolute;
  top: 22px; left: 16px;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.difficulty-dots .dot {
  width: 7px; height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.18);
}
.difficulty-dots .dot.is-filled { background: var(--pink); }

/* ---- Marca de fabricante (veículos) ---- */
.brand-mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.type-tile.is-active .brand-mark { color: var(--pink); }

/* ---- Stepper: capítulos da história ---- */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 10px 8px;
}
.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  flex: 1;
}
.stepper-item::before {
  content: "";
  position: absolute;
  top: 19px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.stepper-item:first-child::before { display: none; }
.stepper-circle {
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-dim);
}
.stepper-item.is-active .stepper-circle { border-color: var(--pink); background: var(--pink); color: #fff; }
.stepper-item.is-active::before { background: var(--pink); }
.stepper-circle svg { width: 16px; height: 16px; }
.stepper-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dimmer); text-align: center; }
.stepper-item.is-active .stepper-label { color: var(--pink); }
.stepper-caption { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 18px; }

/* ---- Missões por região: barras ---- */
.region-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.region-bar-row { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 12px; }
.region-bar-name { font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--text-dim); }
.region-bar-track { height: 6px; border-radius: 3px; background: var(--card-alt); overflow: hidden; }
.region-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--pink-dark)); }
.region-bar-count { font-size: 11.5px; font-weight: 700; color: #fff; text-align: right; }

/* ---- Notícias: ticker de destaque ---- */
.news-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.news-ticker-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.news-ticker-title { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-ticker-arrow { color: var(--pink); flex-shrink: 0; }
.news-ticker-date { color: var(--text-dimmer); flex-shrink: 0; font-weight: 600; }

/* ---- Notícias: destaque + lista lateral ---- */
.news-feature-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: stretch; }
.news-feature {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
}
.news-feature-bg { position: absolute; inset: 0; transition: transform 0.4s ease; }
.news-feature:hover .news-feature-bg { transform: scale(1.05); }
.news-feature::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,11,0.15) 0%, rgba(8,8,11,0.55) 55%, rgba(8,8,11,0.94) 100%);
}
.news-feature-body { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; }
.news-feature-title { display: block; font-family: var(--font-display); font-size: 24px; color: var(--pink); margin: 10px 0 8px; }
.news-feature-desc { display: block; font-size: 13px; color: var(--text-dim); max-width: 460px; margin-bottom: 14px; line-height: 1.5; }
.news-feature-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-feature-link { color: var(--pink); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-list-item {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
  flex: 1;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.news-list-item:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.news-list-thumb { width: 74px; border-radius: 6px; flex-shrink: 0; }
.news-list-title { display: block; font-family: var(--font-display); font-size: 13px; color: #fff; margin: 4px 0 6px; line-height: 1.3; }
.news-list-date { font-size: 10.5px; color: var(--text-dimmer); font-weight: 600; }

/* ---- Mais lidas ---- */
.ranked-list { display: flex; flex-direction: column; }
.ranked-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ranked-item:last-child { border-bottom: none; }
.ranked-num { font-family: var(--font-display); font-size: 22px; color: var(--pink); width: 30px; flex-shrink: 0; }
.ranked-info { flex: 1; min-width: 0; }
.ranked-title { display: block; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ranked-meta { font-size: 11px; color: var(--text-dimmer); font-weight: 600; }
.ranked-thumb { width: 56px; height: 56px; border-radius: 6px; flex-shrink: 0; }

/* ---- Newsletter ---- */
.newsletter-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px;
  height: 100%;
}
.newsletter-box h3 { font-family: var(--font-display); font-size: 18px; color: #fff; margin: 0 0 10px; }
.newsletter-box p { font-size: 13px; color: var(--text-dim); margin: 0 0 20px; line-height: 1.5; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: var(--text-dimmer); }
.newsletter-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dimmer); }
.newsletter-note svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---- Arquivo: pills de ano/mês ---- */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill:hover { border-color: var(--text-dim); color: #fff; }
.pill.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }
.archive-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* =========================================================
   PERFIL DE PERSONAGEM (página modelo)
   ========================================================= */

.breadcrumb {
  padding: 16px 0;
  font-size: 12px;
  color: var(--text-dimmer);
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb .current { color: var(--pink); font-weight: 700; }

/* ---- Hero ---- */
.profile-hero { padding: 8px 0 44px; }
.profile-hero-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
  align-items: center;
}
.profile-eyebrow {
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: #fff;
  margin: 0 0 14px;
}
.profile-tagline {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin: 0 0 16px;
}
.profile-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 22px;
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-pill {
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.badge-pill.badge-pink { border-color: rgba(255, 47, 122, 0.5); color: var(--pink); }

.profile-photo-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.neon-plate {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 8px 16px;
  border: 2px solid var(--pink);
  border-radius: 4px;
  color: var(--pink);
  background: rgba(6, 6, 9, 0.55);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(255, 47, 122, 0.85);
  box-shadow: 0 0 16px rgba(255, 47, 122, 0.35);
}

/* ---- 3-column layout ---- */
.profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 8px;
}

.page-nav {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--card);
}
.page-nav h3 {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dimmer);
  margin: 0 0 12px;
}
.page-nav ul { display: flex; flex-direction: column; gap: 2px; }
.page-nav a {
  display: block;
  padding: 8px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.page-nav a .num { color: var(--pink); margin-right: 8px; }
.page-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.page-nav a.is-active { color: #fff; background: rgba(255, 47, 122, 0.12); }

.profile-main { min-width: 0; }
.content-section { margin-bottom: 46px; scroll-margin-top: 88px; }
.content-section:last-child { margin-bottom: 0; }
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  margin: 0 0 18px;
}
.section-heading .num { color: var(--pink); font-size: 16px; }

.profile-main p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin: 0 0 16px; }
.profile-main p:last-child { margin-bottom: 0; }

.quote-block {
  border: 1px solid rgba(255, 47, 122, 0.35);
  border-left: 3px solid var(--pink);
  background: rgba(255, 47, 122, 0.05);
  border-radius: 6px;
  padding: 20px 24px;
  font-size: 16px;
  font-style: italic;
  color: #fff;
  margin-top: 20px;
}

/* ---- Timeline ---- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 47, 122, 0.5), rgba(255, 47, 122, 0.08));
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 26px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-thumb {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid var(--bg);
}
.timeline-body { padding-top: 4px; }
.timeline-title {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 6px;
}
.timeline-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---- Info card (sidebar) ---- */
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.info-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.info-card-header h3 {
  font-family: var(--font-display);
  color: var(--pink);
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.02em;
}
.info-card-photo { height: 220px; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table th, .info-table td { text-align: left; padding: 10px 20px; font-size: 12px; }
.info-table th { color: var(--text-dimmer); font-weight: 600; width: 42%; }
.info-table td { color: #fff; font-weight: 600; }
.value-pink { color: var(--pink); }

.share-row {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.share-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  margin-right: 2px;
}
.icon-btn-outline { border: 1px solid var(--border-strong); }
.icon-btn-outline:hover { border-color: var(--pink); color: var(--pink); }

/* ---- 03 Traits ---- */
.traits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trait-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
}
.trait-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255, 47, 122, 0.12);
  color: var(--pink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.trait-icon svg { width: 22px; height: 22px; }
.trait-title { display: block; font-family: var(--font-display); font-size: 15px; color: #fff; margin-bottom: 8px; }
.trait-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---- 04 Aparência ---- */
.appearance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.appearance-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.appearance-thumb { width: 42%; flex-shrink: 0; min-height: 170px; }
.appearance-body { padding: 18px 20px; align-self: center; }
.appearance-title { display: block; font-family: var(--font-display); font-size: 14px; color: #fff; margin-bottom: 8px; }
.appearance-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }

/* ---- 05 Relações (pessoas) ---- */
.relations-people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.relation-person-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--card);
}
.relation-person-photo { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; }
.relation-person-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  color: var(--text-dimmer);
}
.relation-person-placeholder svg { width: 24px; height: 24px; }
.relation-person-name { display: block; font-family: var(--font-display); font-size: 14px; color: var(--pink); margin-bottom: 4px; }
.relation-person-role { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ---- 06/07 Aparições + Curiosidades ---- */
.two-col-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  padding: 10px 4px;
  color: var(--text-dimmer);
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-strong);
}
.data-table td { padding: 12px 4px; border-bottom: 1px solid var(--border); color: #fff; }
.status-confirmed { color: var(--pink); font-weight: 700; }

.curiosities-list { display: flex; flex-direction: column; gap: 16px; }
.curiosity-item { display: flex; gap: 14px; }
.curiosity-num { font-family: var(--font-display); color: var(--pink); font-size: 14px; flex-shrink: 0; width: 22px; }
.curiosity-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---- 08 Galeria ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 180px;
  border: 1px solid var(--border);
}
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}

/* ---- Meta + tags ---- */
.page-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dimmer);
}
.page-meta .updated-date { color: var(--pink); font-weight: 700; }
.tag-pill {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 6px;
}

/* ---- Outros personagens (prev/next) ---- */
.prevnext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prevnext-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.prevnext-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.prevnext-card.next { flex-direction: row-reverse; text-align: right; }
.prevnext-thumb { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; }
.prevnext-label { display: block; font-size: 11px; color: var(--text-dimmer); letter-spacing: 0.06em; margin-bottom: 4px; }
.prevnext-name { font-family: var(--font-display); font-size: 16px; color: #fff; }

/* ---- Photo placeholder palette (perfil) ---- */
.ph-1 { background: radial-gradient(circle at 30% 25%, #b0396a, #3a1428 60%, #120810); }
.ph-2 { background: radial-gradient(circle at 60% 30%, #1c7a8a, #0e2e34 60%, #08161a); }
.ph-3 { background: radial-gradient(circle at 40% 30%, #c47a2a, #3a2610 60%, #140c06); }
.ph-4 { background: radial-gradient(circle at 55% 25%, #6a3ab0, #241340 60%, #0c0818); }
.ph-5 { background: radial-gradient(circle at 35% 35%, #c8506e, #401824 60%, #140a0c); }
.ph-6 { background: radial-gradient(circle at 50% 30%, #2a5ab0, #0e1c3a 60%, #060a14); }
.ph-7 { background: radial-gradient(circle at 45% 30%, #ba6a2a, #3a2010 60%, #120a06); }
.ph-8 { background: radial-gradient(circle at 50% 30%, #9a2a5a, #300e20 60%, #10060c); }

/* =========================================================
   COOKIE BANNER + AD SLOT
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: 13px; color: var(--text-dim); max-width: 640px; }
.cookie-banner a { color: var(--pink); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

.ad-slot {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--text-dimmer);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 8px 0;
}

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-social { display: flex; gap: 10px; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { color: #fff; border-color: var(--pink); }
.footer-brand p {
  color: var(--text-dim);
  font-size: 13px;
  max-width: 320px;
  margin-top: 14px;
}
.footer-col h3 {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text-dim); }
.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-dimmer); margin: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
  .hero h1 { font-size: 44px; }

  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-figures { width: 40%; }
  .relations-panel { flex-direction: column; }
  .relation-side-card { min-height: 140px; }
  .relation-rows { padding: 24px 0; gap: 24px; }

  .profile-hero-grid { grid-template-columns: 1fr; }
  .profile-photo-card { height: 280px; }
  .profile-name { font-size: 44px; }
  .profile-layout { grid-template-columns: 1fr; }
  .page-nav { position: static; }
  .traits-grid { grid-template-columns: repeat(2, 1fr); }
  .appearance-grid { grid-template-columns: 1fr; }
  .relations-people-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-section { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .featured-grid { grid-template-columns: 1fr; }
  .feature-card.feature-large { min-height: 280px; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }

  .news-feature-grid { grid-template-columns: 1fr; }
  .news-list-item { flex: 1 1 30%; }
  .stepper-label { display: none; }
  .region-bar-row { grid-template-columns: 90px 1fr 24px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-sm { display: none; }

  .category-grid { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .hero { min-height: auto; }
  .hero-inner { padding: 40px 16px; }
  .hero-card { padding: 28px; max-width: 100%; }
  .hero h1 { font-size: 36px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }

  .people-grid { grid-template-columns: 1fr; }
  .people-toolbar { flex-direction: column; align-items: stretch; }
  .people-search { max-width: 100%; }
  .filter-tabs { gap: 16px; }
  .hero-figures { display: none; }
  .characters-hero { min-height: 260px; }
  .relation-avatars { gap: 12px; }
  .relation-avatar-img { width: 40px; height: 40px; }

  .profile-name { font-size: 32px; }
  .badge-row { gap: 8px; }
  .traits-grid { grid-template-columns: 1fr; }
  .relations-people-grid { grid-template-columns: 1fr; }
  .two-col-section { gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .appearance-card { flex-direction: column; }
  .appearance-thumb { width: 100%; height: 140px; }
  .prevnext-grid { grid-template-columns: 1fr; }
  .prevnext-card.next { flex-direction: row; text-align: left; }
  .page-meta { flex-direction: column; align-items: flex-start; }

  .locais-hero { min-height: auto; }
  .locais-hero-inner { padding: 40px 16px; }
  .location-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .map-legend { gap: 14px; }

  .news-list-item { flex: 1 1 100%; }
  .news-feature { min-height: 260px; }
  .stepper { flex-wrap: wrap; }
  .stepper-item::before { display: none; }
  .region-bar-row { grid-template-columns: 84px 1fr 22px; gap: 8px; }
  .newsletter-form { flex-direction: column; }
  .archive-row { flex-direction: column; align-items: flex-start; }
}
