/* Styles for SEO/AEO pages — monster pages, hubs, landings, FAQ, blog.
 * Inherits all design tokens from styles.css. Adds:
 *   - breadcrumbs
 *   - monster page hero + stat grid
 *   - card grid + monster card link
 *   - rarity nav chips
 *   - landing/AEO long-form copy styles
 *   - blog article styles
 */

.breadcrumbs-wrap { padding: 18px 0 0; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.breadcrumbs li + li::before {
  content: '›';
  margin-right: 10px;
  color: rgba(255,255,255,0.4);
}
.breadcrumbs a { color: var(--sun); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: rgba(255,255,255,0.92); }

/* Gen-1 small badge in footer */
.gen-pill-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  margin-left: 6px;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Monster page hero ---------- */
.monster-hero { padding: 32px 0 56px; }
.monster-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.monster-hero-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  box-shadow: 0 10px 0 var(--ink), 0 0 60px rgba(255, 217, 61, 0.18);
}
.monster-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rarity-bg-common  { background: radial-gradient(circle at 40% 0%, #b8bdcf, #5b637a); }
.rarity-bg-rare    { background: radial-gradient(circle at 40% 0%, #6aa7fb, #1d4ed8); }
.rarity-bg-epic    { background: radial-gradient(circle at 40% 0%, #c4a3fb, #6b21a8); }
.rarity-bg-legendary { background: radial-gradient(circle at 40% 0%, #ffd76a, #b45309); }

.hub-bg-common { box-shadow: inset 0 -260px 220px -180px rgba(154,160,180,0.32); }
.hub-bg-rare { box-shadow: inset 0 -260px 220px -180px rgba(59,130,246,0.32); }
.hub-bg-epic { box-shadow: inset 0 -260px 220px -180px rgba(168,85,247,0.32); }
.hub-bg-legendary { box-shadow: inset 0 -260px 220px -180px rgba(245,158,11,0.32); }

.hero-rarity-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 0 2px 0 var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.hero-rarity-flag.rarity-common { background: #9aa0b4; }
.hero-rarity-flag.rarity-rare { background: #3b82f6; }
.hero-rarity-flag.rarity-epic { background: #a855f7; }
.hero-rarity-flag.rarity-legendary { background: #f59e0b; color: var(--ink); }

.hero-dex-number {
  position: absolute;
  top: 50px;
  left: 14px;
  padding: 4px 8px;
  background: rgba(14, 11, 31, 0.78);
  border-radius: 7px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.hero-type-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.monster-hero-info { color: #fff; }
.monster-hero-info h1 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  text-wrap: balance;
}
.capture-phrase {
  margin: 0 0 22px;
  color: var(--sun);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.at-a-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
}
.at-a-glance > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.at-a-glance dt {
  color: rgba(255,255,255,0.64);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.at-a-glance dd {
  margin: 0;
  color: #fff;
  font-weight: 900;
  font-size: 0.98rem;
}
.at-a-glance a.link {
  color: var(--sun);
  text-decoration: none;
  border-bottom: 2px solid rgba(255,217,61,0.4);
}
.at-a-glance a.link:hover { border-color: var(--sun); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
.stat-tile {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 14px 6px;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 14px;
}
.stat-tile-label {
  color: rgba(255,255,255,0.7);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.stat-tile-value {
  color: #fff;
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1;
}
.stat-tile-name {
  color: rgba(255,255,255,0.55);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Dex entry section ---------- */
.dex-entry-section .section-h2 {
  margin-top: 38px;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}
.dex-entry-section .section-h2:first-child { margin-top: 0; }
.dex-entry {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.55;
  text-wrap: pretty;
}
.where-hides p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}
.where-hides p.hint {
  color: var(--ink);
  background: rgba(127,255,107,0.18);
  border: 2px dashed rgba(14,11,31,0.28);
  border-radius: 16px;
  padding: 14px 18px;
}
.tagchips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: middle; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.howto-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: howto;
}
.howto-list li {
  position: relative;
  padding: 16px 18px 16px 64px;
  margin-bottom: 12px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
  counter-increment: howto;
}
.howto-list li::before {
  content: counter(howto);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--slime);
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 900;
}

/* ---------- FAQ ---------- */
.faq-section { margin-top: 48px; }
.faq-section h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.faq-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.faq-card {
  padding: 20px 22px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
}
.faq-card h3 {
  margin: 0 0 8px;
  font-family: var(--ui);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--ink);
}
.faq-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

/* ---------- Card grid (monster cards) ---------- */
.card-grid {
  display: grid;
  gap: 16px;
}
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .card-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .card-grid.four, .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .card-grid.four, .card-grid.three { grid-template-columns: 1fr; } }

.m-card { text-decoration: none; color: inherit; display: block; }
.m-card-inner {
  position: relative;
  aspect-ratio: 240 / 336;
  border: 3px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 7px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.m-card:hover .m-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 11px 0 var(--ink);
}
.m-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-card-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 7px;
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--ink);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.m-card-flag.rarity-common { background: #9aa0b4; }
.m-card-flag.rarity-rare { background: #3b82f6; }
.m-card-flag.rarity-epic { background: #a855f7; }
.m-card-flag.rarity-legendary { background: #f59e0b; color: var(--ink); }
.m-card-dex {
  position: absolute;
  top: 38px;
  left: 10px;
  z-index: 2;
  padding: 3px 6px;
  background: rgba(14,11,31,0.7);
  border-radius: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.m-card-type {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 8px;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--ink);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.m-card-plate {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 44px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 38%, rgba(0,0,0,0.88) 100%);
}
.m-card-plate h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
}
.m-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.m-card-stats span {
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 4px 0;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
}
.m-card-stats i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.66);
}
.m-card-stats strong {
  font-family: var(--display);
  font-size: 0.85rem;
  color: #fff;
}

/* ---------- Hub hero ---------- */
.hub-hero {
  padding: 56px 0 36px;
  position: relative;
}
.hub-hero h1 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}
.hub-hero .hero-copy {
  color: rgba(255,255,255,0.82);
  max-width: 720px;
}

.rarity-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.rarity-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.rarity-nav a span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  padding: 0 6px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.rarity-nav a.active { background: var(--sun); }
.rarity-nav a.chip-common.active { background: #d6dae5; }
.rarity-nav a.chip-rare.active { background: #93c5fd; }
.rarity-nav a.chip-epic.active { background: #d8b4fe; }
.rarity-nav a.chip-legendary.active { background: #fcd34d; }

.rarity-block { margin-bottom: 56px; }
.rarity-block-h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  color: var(--ink);
  padding: 6px 18px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink);
  background: #fff;
}
.rarity-block-h2 span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  padding: 2px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.rarity-block-h2.chip-common { background: #e5e7eb; }
.rarity-block-h2.chip-rare { background: #93c5fd; }
.rarity-block-h2.chip-epic { background: #d8b4fe; }
.rarity-block-h2.chip-legendary { background: #fcd34d; }
.rarity-block-blurb {
  margin: 14px 0 22px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
  max-width: 720px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
@media (max-width: 820px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.type-tile:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.type-tile strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.type-tile span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Related section */
.related-section { margin-bottom: 36px; }
.related-section h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

/* ---------- Landing / AEO long-form ---------- */
.lf-hero {
  padding: 56px 0 28px;
}
.lf-hero h1 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}
.lf-hero .hero-copy { max-width: 740px; color: rgba(255,255,255,0.84); }

.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
}
.prose h2 {
  margin-top: 42px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin-top: 26px;
  font-family: var(--ui);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--ink);
}
.prose p, .prose li {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose ul li::marker { color: var(--purple); }
.prose strong { color: var(--ink); }
.prose a { color: var(--purple); font-weight: 900; }
.prose table {
  width: 100%;
  margin: 22px 0 0;
  border-collapse: collapse;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 0 var(--ink);
}
.prose th, .prose td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(14,11,31,0.12);
  font-weight: 700;
  color: var(--muted);
}
.prose th {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose tr:last-child td { border-bottom: none; }
.prose blockquote {
  margin: 22px 0 0;
  padding: 18px 22px;
  background: rgba(127,255,107,0.16);
  border: 2px dashed rgba(14,11,31,0.28);
  border-radius: 18px;
  color: var(--ink);
}

.lf-cta {
  margin-top: 48px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #2a1b4d);
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: 0 8px 0 var(--ink);
}
.lf-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1; color: #fff; }
.lf-cta p { margin: 10px 0 0; color: rgba(255,255,255,0.85); font-weight: 700; }
@media (max-width: 720px) {
  .lf-cta { grid-template-columns: 1fr; text-align: left; }
}

.author-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  color: rgba(255,255,255,0.7);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.author-byline .dot { width: 4px; height: 4px; background: rgba(255,255,255,0.5); border-radius: 50%; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 720px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.blog-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.blog-tile-cat {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-tile h2 {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.blog-tile p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}
.blog-tile time {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Article hero (blog post pages) */
.article-hero {
  padding: 56px 0 16px;
}
.article-hero h1 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.0;
  max-width: 880px;
  text-wrap: balance;
}
.article-hero .lede {
  max-width: 760px;
  color: rgba(255,255,255,0.84);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Hub list section default light bg */
.hub-list { background: var(--paper); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .monster-hero-grid { grid-template-columns: 1fr; }
  .monster-hero-figure { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .at-a-glance { grid-template-columns: 1fr 1fr; }
  .stat-grid { gap: 8px; }
  .stat-tile { padding: 10px 4px; }
  .stat-tile-value { font-size: 1.4rem; }
}
