/* HoloHaul theme — main stylesheet */

:root {
  --bg: #0f172a;
  --bg2: #111c33;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #16a34a;
  --accent-deep: #14532d;
  --gold: #d97706;
  --pill: #f1f5f9;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #f8fafc;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }

/* === nav === */
.hh-nav { background: var(--bg); color: #fff; border-bottom: 1px solid #1e293b; }
.hh-nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; gap: 20px; align-items: center; }
.hh-logo { font-weight: 800; letter-spacing: -.02em; font-size: 22px; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.hh-logo-mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff 0 35%, #16a34a 36% 100%); box-shadow: inset 0 0 0 2px #0f172a; }
.hh-nav-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; }
.hh-nav-menu a, .hh-link { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.hh-nav-menu a:hover, .hh-link:hover { color: #fff; }
.hh-nav-right { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.hh-nav-links { display: flex; align-items: center; }

/* === wrap === */
.hh-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hh-main { padding: 56px 0 80px; }
.hh-h1 { font-size: clamp(32px,4vw,48px); margin: 0 0 14px; letter-spacing: -.02em; }
.hh-prose p { color: #334155; }

/* === hero (single-pokemon) === */
.hh-hero {
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(22,163,74,.28), transparent 60%),
    radial-gradient(900px 400px at 80% 0%, rgba(56,189,248,.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: #fff; padding: 56px 24px 72px;
}
.hh-hero-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hh-crumbs { font-size: 13px; color: #94a3b8; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hh-hero h1 { font-size: clamp(36px,5.5vw,64px); margin: 0 0 8px; letter-spacing: -.02em; line-height: 1.02; }
.hh-hero h1 .hh-pokedex { font-size: .42em; color: #86efac; font-weight: 600; display: inline-block; margin-left: 8px; vertical-align: middle; }
.hh-hero p.hh-lead { color: #cbd5e1; font-size: 18px; max-width: 56ch; }
.hh-stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hh-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 14px 18px; border-radius: 12px; display: flex; flex-direction: column; }
.hh-stat b { font-size: 22px; color: #fff; }
.hh-stat span { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; }
.hh-hero-card { background: linear-gradient(135deg, #15803d, #14532d); border-radius: 18px; padding: 22px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.hh-hero-card h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #bbf7d0; }
.hh-hero-card .hh-placeholder {
  aspect-ratio: 5/7; border-radius: 12px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 10px, rgba(255,255,255,0) 10px 20px), linear-gradient(135deg, #166534, #052e16);
  display: flex; align-items: center; justify-content: center;
  color: #bbf7d0; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-align: center; padding: 16px;
}
.hh-hero-card .hh-placeholder small { display: block; font-weight: 400; opacity: .7; margin-top: 6px; letter-spacing: .03em; }
.hh-hero-card .hh-meta { margin-top: 14px; font-size: 13px; color: #d1fae5; display: flex; justify-content: space-between; }

/* type-color variants for hero */
.hh-hero[data-type="grass"] .hh-hero-card { background: linear-gradient(135deg, #15803d, #14532d); }
.hh-hero[data-type="fire"]  .hh-hero-card { background: linear-gradient(135deg, #c2410c, #7c2d12); }
.hh-hero[data-type="water"] .hh-hero-card { background: linear-gradient(135deg, #0369a1, #0c4a6e); }

/* === sections === */
.hh-section { margin-bottom: 56px; }
.hh-section h2 { font-size: 30px; letter-spacing: -.01em; margin: 0 0 8px; }
.hh-section h2 .hh-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 4px;
}
.hh-section h2 .hh-num::before { content: 'Section '; }
.hh-section-lede { color: var(--muted); margin: 0 0 28px; max-width: 70ch; }

/* === top 10 cards === */
.hh-card-list { display: grid; gap: 20px; }
.hh-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; padding: 22px; align-items: start;
}
.hh-card.is-featured { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,119,6,.08); }
.hh-card-image {
  aspect-ratio: 5/7; border-radius: 10px;
  background: repeating-linear-gradient(135deg, rgba(15,23,42,.06) 0 8px, transparent 8px 16px), linear-gradient(135deg, #dcfce7, #86efac);
  display: flex; align-items: center; justify-content: center; color: #14532d; font-weight: 700; text-align: center; padding: 12px; font-size: 12px; letter-spacing: .04em;
  overflow: hidden;
}
.hh-card.is-featured .hh-card-image {
  background: repeating-linear-gradient(135deg, rgba(217,119,6,.18) 0 8px, transparent 8px 16px), linear-gradient(135deg, #fde68a, #f59e0b);
  color: #78350f;
}
.hh-card-image img { width: calc(100% + 24px); height: calc(100% + 24px); margin: -12px; object-fit: contain; }
.hh-rank-badge { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--pill); color: var(--muted); padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; }
.hh-card.is-featured .hh-rank-badge { background: #fef3c7; color: #92400e; }
.hh-card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.hh-card p { margin: 0; color: #334155; font-size: 15px; }
.hh-price { text-align: right; min-width: 130px; }
.hh-price b { display: block; font-size: 22px; color: var(--accent-deep); letter-spacing: -.01em; }
.hh-price-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* === price table === */
.hh-prices { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hh-prices th, .hh-prices td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.hh-prices th { background: #f1f5f9; color: #334155; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.hh-prices tr:last-child td { border-bottom: 0; }
.hh-prices td.hh-r { color: var(--accent-deep); font-weight: 700; text-align: right; }
.hh-prices td.hh-k { width: 60px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* === card grid === */
.hh-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.hh-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 12px; text-decoration: none; color: var(--ink); display: block; }
.hh-tile:hover { border-color: #86efac; transform: translateY(-2px); transition: .15s ease; }
.hh-tile .hh-mini {
  aspect-ratio: 5/7; border-radius: 6px;
  background: linear-gradient(135deg, #ecfccb, #86efac);
  display: flex; align-items: center; justify-content: center; color: #166534;
  font-weight: 700; margin-bottom: 6px; overflow: hidden;
}
.hh-tile .hh-mini img { width: 100%; height: 100%; object-fit: contain; }
.hh-tile .hh-mini.is-holo { background: linear-gradient(135deg, #fde68a, #fbbf24); color: #78350f; }
.hh-tile .hh-mini.is-rare { background: linear-gradient(135deg, #bae6fd, #38bdf8); color: #075985; }
.hh-tile span.hh-muted { color: var(--muted); }

/* === affiliate band === */
.hh-aff { background: linear-gradient(135deg, #ecfeff, #f0fdf4); border: 1px solid #bbf7d0; border-radius: 14px; padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hh-aff h3 { margin: 0 0 4px; font-size: 18px; }
.hh-aff p { margin: 0; color: var(--muted); font-size: 14px; }
.hh-btn { background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .02em; display: inline-block; }
.hh-btn:hover { background: var(--accent-deep); color: #fff; }

/* === pokedex index === */
.hh-pokedex-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 16px; }
.hh-pokedex-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; text-align: center; text-decoration: none; color: var(--ink); display: block;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.hh-pokedex-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 20px -10px rgba(22,163,74,.3); }
.hh-pokedex-card.is-stub { opacity: .55; }
.hh-pokedex-num { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.hh-pokedex-name { font-weight: 700; font-size: 18px; margin: 4px 0 2px; }
.hh-pokedex-type { font-size: 12px; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .08em; }
.hh-pokedex-thumb {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 30%, #86efac 31% 100%);
  width: 90px; margin: 6px auto 12px;
  display: flex; align-items: center; justify-content: center; color: #14532d; font-weight: 800; font-size: 22px;
}

/* === homepage === */
.hh-home-hero {
  background:
    radial-gradient(1100px 380px at 50% 0%, rgba(22,163,74,.25), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: #fff; padding: 80px 24px;
}
.hh-home-hero-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.hh-home-hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 0 0 14px; letter-spacing: -.02em; line-height: 1.05; }
.hh-home-hero p { color: #cbd5e1; font-size: 18px; max-width: 60ch; margin: 0 auto 28px; }
.hh-home-hero .hh-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hh-home-feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; text-align: center;
}
.hh-home-feature h3 { margin: 0 0 6px; font-size: 18px; }
.hh-home-feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* === footer === */
.hh-footer { background: #0f172a; color: #cbd5e1; padding: 40px 24px; margin-top: 60px; }
.hh-footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.hh-footer-meta { color: #94a3b8; }
.hh-footer a { color: #86efac; }

/* === notice (used when plugin missing) === */
.hh-notice { padding: 14px 18px; border-radius: 10px; margin: 16px 0; font-size: 14px; }
.hh-notice--warning { background: #fef3c7; color: #78350f; border: 1px solid #fbbf24; }
.hh-notice code { background: rgba(0,0,0,.08); padding: 2px 6px; border-radius: 4px; }

/* === responsive === */
@media (max-width: 820px) {
  .hh-hero-inner { grid-template-columns: 1fr; }
  .hh-card { grid-template-columns: 1fr; }
  .hh-card-image { max-width: 200px; }
  .hh-price { text-align: left; }
  .hh-home-feature { grid-template-columns: 1fr; }
  .hh-footer-inner { flex-direction: column; }
}


/* Hero featured card image override */
.hh-placeholder.hh-placeholder--has-image {
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.hh-placeholder--has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}


/* === Card Detail page additions (v0.2) === */
.hh-detail-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.hh-detail-table th, .hh-detail-table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.hh-detail-table tr:last-child th, .hh-detail-table tr:last-child td { border-bottom: 0; }
.hh-detail-table th { background: #f8fafc; color: #334155; width: 200px; font-weight: 600; }

.hh-edition-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hh-edition { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.hh-edition h3 { margin: 0 0 8px; font-size: 18px; color: var(--accent-deep); }
.hh-edition p { margin: 0 0 8px; font-size: 14px; color: #334155; }

.hh-error { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.hh-error h3 { margin: 0 0 8px; font-size: 18px; color: #92400e; }

.hh-dl { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.hh-dl dt { font-weight: 600; color: #334155; }
.hh-dl dd { margin: 0; color: #0f172a; }

.hh-bullets { margin: 0; padding-left: 22px; }
.hh-bullets li { margin: 8px 0; color: #334155; }

.hh-attack { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.hh-attack h3 { margin: 0 0 6px; font-size: 18px; }
.hh-attack-meta { display: inline-block; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 10px; }
.hh-attack p { margin: 0; font-size: 14px; color: #334155; }

.hh-btn--alt { background: transparent; color: var(--accent-deep); border: 1px solid var(--accent-deep); }
.hh-btn--alt:hover { background: var(--accent-deep); color: #fff; }
.hh-aff-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.hh-card-hero[data-type="grass"]    .hh-hero-card { background: linear-gradient(135deg, #15803d, #14532d); }
.hh-card-hero[data-type="fire"]     .hh-hero-card { background: linear-gradient(135deg, #c2410c, #7c2d12); }
.hh-card-hero[data-type="water"]    .hh-hero-card { background: linear-gradient(135deg, #0369a1, #0c4a6e); }
.hh-card-hero[data-type="electric"] .hh-hero-card { background: linear-gradient(135deg, #ca8a04, #713f12); }
.hh-card-hero[data-type="psychic"]  .hh-hero-card { background: linear-gradient(135deg, #a21caf, #581c87); }
.hh-card-hero[data-type="fighting"] .hh-hero-card { background: linear-gradient(135deg, #b45309, #7c2d12); }

@media (max-width: 820px) {
  .hh-detail-table th { width: 130px; }
  .hh-dl { grid-template-columns: 1fr; }
  .hh-dl dt { margin-top: 8px; }
}


/* === TCG-style stat card (Section 01) === */
.hh-tcg-card {
  position: relative;
  background: linear-gradient(135deg, #fef9c3, #fde68a 30%, #fbbf24 100%);
  border: 3px solid #92400e;
  border-radius: 18px;
  padding: 24px 24px 22px;
  box-shadow: 0 10px 30px -10px rgba(146,64,14,0.35), inset 0 0 0 2px rgba(255,255,255,0.4);
  color: #422006;
  overflow: hidden;
}
.hh-tcg-card::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.6), transparent 60%);
  pointer-events: none;
}
.hh-tcg-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(146,64,14,0.25);
}
.hh-tcg-stage {
  background: #422006;
  color: #fef3c7;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hh-tcg-hp {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hh-tcg-hp-label {
  font-size: 18px;
  font-weight: 800;
  color: #c2410c;
  letter-spacing: 0.05em;
}
.hh-tcg-hp-value {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: #422006;
  letter-spacing: -0.02em;
}
.hh-tcg-type-pip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #16a34a 60%, #14532d);
  border: 2px solid #fef3c7;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-left: 6px;
}
.hh-tcg-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.hh-tcg-stat {
  background: rgba(255,255,255,0.7);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(146,64,14,0.15);
  backdrop-filter: blur(4px);
}
.hh-tcg-stat span {
  display: block;
  font-size: 10px;
  color: #92400e;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}
.hh-tcg-stat b {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1.2;
}

/* Type-specific tint variations on the stat card */
.hh-tcg-card[data-type="grass"]    { background: linear-gradient(135deg, #d1fae5, #86efac 30%, #16a34a 100%); border-color: #14532d; color: #052e16; }
.hh-tcg-card[data-type="grass"] .hh-tcg-stage { background: #14532d; color: #d1fae5; }
.hh-tcg-card[data-type="grass"] .hh-tcg-hp-label { color: #166534; }
.hh-tcg-card[data-type="grass"] .hh-tcg-hp-value { color: #052e16; }
.hh-tcg-card[data-type="grass"] .hh-tcg-type-pip { background: radial-gradient(circle at 30% 30%, #fff, #16a34a 60%, #14532d); }
.hh-tcg-card[data-type="grass"] .hh-tcg-stat { border-color: rgba(20,83,45,0.15); }
.hh-tcg-card[data-type="grass"] .hh-tcg-stat span { color: #166534; }

.hh-tcg-card[data-type="fire"]     { background: linear-gradient(135deg, #fed7aa, #fb923c 30%, #c2410c 100%); border-color: #7c2d12; color: #431407; }
.hh-tcg-card[data-type="fire"] .hh-tcg-stage { background: #7c2d12; color: #ffedd5; }
.hh-tcg-card[data-type="fire"] .hh-tcg-hp-label { color: #9a3412; }
.hh-tcg-card[data-type="fire"] .hh-tcg-hp-value { color: #431407; }
.hh-tcg-card[data-type="fire"] .hh-tcg-type-pip { background: radial-gradient(circle at 30% 30%, #fff, #f97316 60%, #7c2d12); }
.hh-tcg-card[data-type="fire"] .hh-tcg-stat span { color: #9a3412; }

.hh-tcg-card[data-type="water"]    { background: linear-gradient(135deg, #bae6fd, #38bdf8 30%, #0369a1 100%); border-color: #0c4a6e; color: #082f49; }
.hh-tcg-card[data-type="water"] .hh-tcg-stage { background: #0c4a6e; color: #e0f2fe; }
.hh-tcg-card[data-type="water"] .hh-tcg-hp-label { color: #075985; }
.hh-tcg-card[data-type="water"] .hh-tcg-hp-value { color: #082f49; }
.hh-tcg-card[data-type="water"] .hh-tcg-type-pip { background: radial-gradient(circle at 30% 30%, #fff, #0ea5e9 60%, #0c4a6e); }
.hh-tcg-card[data-type="water"] .hh-tcg-stat span { color: #075985; }

@media (max-width: 600px) {
  .hh-tcg-hp-value { font-size: 40px; }
  .hh-tcg-grid { grid-template-columns: repeat(2, 1fr); }
}


/* Card detail page — card number subtitle */
.hh-card-id {
  font-size: 14px;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: -8px 0 14px;
}
.hh-card-id .hh-pokedex {
  font-size: 16px;
  color: #86efac;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}


/* === card CTA button (View full card data) === */
.hh-card-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 9px 16px; background: var(--accent, #16a34a); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .01em; border-radius: 8px; text-decoration: none; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.hh-card-cta:hover { background: #14532d; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21,128,61,.25); }


/* === ability block (distinct from attacks) === */
.hh-attack.hh-ability { border-left: 4px solid var(--gold, #d97706); background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.hh-attack.hh-ability h3 { color: #92400e; }


/* Top-10 notable cards: solid-green cards matching the hero "most valuable" card (added 2026-05-21 session 05) */
.hh-card-list .hh-card{ background:linear-gradient(135deg,#15803d,#14532d); color:#fff; border-color:rgba(255,255,255,.14); }
.hh-card-list .hh-card h3{ color:#fff; }
.hh-card-list .hh-card p{ color:rgba(255,255,255,.85); }
.hh-card-list .hh-card .hh-price b{ color:#fff; }
.hh-card-list .hh-card .hh-price-label{ color:#bbf7d0; }
.hh-card-list .hh-card.is-featured{ border-color:#fbbf24; }
