.hero.wukong-hero,
header.guide-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 3rem 1.5rem;
  color: #f8fafc;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero.wukong-hero::after,
header.guide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.15),
    rgba(15, 23, 42, 0.55)
  );
}

.hero.wukong-hero > div,
header.guide-hero > div {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.button-primary {
  background: #1c6fe2;
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

.button-lore {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fff7ed;
  box-shadow: 0 0 24px rgba(220, 38, 38, 0.25);
}

.button-lore:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.lore-promo {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}

.lore-promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(127, 29, 29, 0.95),
    rgba(15, 23, 42, 0.98) 60%,
    rgba(30, 27, 75, 0.95)
  );
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 0 40px rgba(220, 38, 38, 0.15);
}

.lore-promo-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lore-promo-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #fff7ed;
}

.lore-promo-copy p {
  margin: 0;
  max-width: 640px;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 0.95rem;
}

.lore-promo-copy strong {
  color: #fde68a;
}

.lore-promo-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.lore-promo-cta:hover {
  background: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
  color: #fff7ed;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-summary {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem;
}

.hero-stat strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.section-card {
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  min-height: 220px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(96, 165, 250, 0.12);
}

.section-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 1.3rem;
}

.section-card p {
  color: rgba(248, 250, 252, 0.82);
  line-height: 1.75;
}

.section-card a {
  display: inline-block;
  margin-top: 0.75rem;
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-card a:hover {
  color: #93c5fd;
}

.section-card-lore {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(
    145deg,
    rgba(127, 29, 29, 0.92),
    rgba(15, 23, 42, 0.96)
  );
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    0 0 32px rgba(220, 38, 38, 0.12);
}

.section-card-lore h3 {
  color: #fde68a;
}

.section-card-lore a {
  color: #fcd34d;
}

.section-card-lore a:hover {
  color: #fde68a;
}

.section-card-link {
  text-decoration: none;
  display: block;
}

.card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  color: #60a5fa;
  font-weight: 600;
  transition: color 0.2s ease;
}

.section-card:hover .card-cta {
  color: #93c5fd;
}

.section-card-lore .card-cta {
  color: #fcd34d;
}

.section-card-lore:hover .card-cta {
  color: #fde68a;
}

.hero.wukong-hero {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)),
    url("../images/wukong.png");
}

header.guide-hero.lore-hero {
  background-image:
    linear-gradient(180deg, rgba(127, 29, 29, 0.55), rgba(15, 23, 42, 0.75)),
    url("../images/wukong1.jpg");
}

header.guide-hero.beginner-hero {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)),
    url("../images/wukong2.jpg");
}

header.guide-hero.boss-hero {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)),
    url("../images/wukong3.jpg");
}

header.guide-hero.collectibles-hero {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)),
    url("../images/wukong4.jpg");
}

header.guide-hero.gameplay-hero {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)),
    url("../images/wukong5.jpg");
}

header.guide-hero.regions-hero {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)),
    url("../images/Black_Myth_Wukong_cover_art.jpg");
}

/* Dark card overrides for dark-themed guide sub-pages */
body[data-section="chinese-hits"] .card {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.12);
}

body[data-section="chinese-hits"] .card h2,
body[data-section="chinese-hits"] .card h3 {
  color: #f8fafc;
}

body[data-section="chinese-hits"] .card p,
body[data-section="chinese-hits"] .card li {
  color: rgba(248, 250, 252, 0.86);
}

body[data-section="chinese-hits"] .highlight {
  border-left-color: #fcd34d;
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

body[data-section="chinese-hits"] .toc {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

body[data-section="chinese-hits"] .toc h2,
body[data-section="chinese-hits"] .toc h3 {
  color: #94a3b8;
}

body[data-section="chinese-hits"] .toc a {
  color: #60a5fa;
}

body[data-section="chinese-hits"] .toc a:hover {
  color: #93c5fd;
}

/* Cultural Lore Styles */
:root {
  --gold: #fcd34d;
  --gold-light: #fde68a;
  --dark-bg: rgba(15, 23, 42, 0.96);
  --card-bg: rgba(15, 23, 42, 0.92);
  --border-subtle: rgba(148, 163, 184, 0.12);
  --text-body: rgba(248, 250, 252, 0.88);
  --text-muted: #94a3b8;
}

body[data-section="chinese-hits"] {
  background: #0f172a;
}

.cultural-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

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

.category-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.category-block:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.category-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.category-head .icon {
  font-size: 1.5rem;
}

.category-head h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
}

.category-intro {
  color: var(--text-body);
  margin: 0 0 1rem;
  line-height: 1.6;
  font-size: 0.92rem;
}

.term-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.term-item {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s;
}

.term-item:hover {
  border-color: rgba(251, 191, 36, 0.25);
}

.term-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.term-item .chinese {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.88rem;
}

.term-item p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.85rem;
  line-height: 1.6;
}

.category-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 999px;
  transition: all 0.2s;
}

.category-cta:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--gold-light);
}

.category-cta::after {
  content: " \2192";
}

.back-link-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

body[data-section="chinese-hits"] .back-link {
  color: var(--gold) !important;
}

body[data-section="chinese-hits"] .sidebar-nav {
  position: sticky !important;
  top: 1.5rem;
  background: var(--dark-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 14px !important;
  padding: 1.5rem 1.25rem !important;
}

.sidebar-nav h2,
.sidebar-nav h3 {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sidebar-nav li {
  margin-bottom: 0.2rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  color: var(--gold-light);
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}

.sidebar-nav .quick a {
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .sidebar-nav {
    display: none;
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
  cursor: pointer;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(251, 191, 36, 0.25);
  transform: translateY(-2px);
}

/* Decoder Detail Page Styles */
.term-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.term-card h3 {
  color: #fcd34d;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.term-card img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
}

.term-card p {
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.7;
}

.chinese-term {
  font-weight: 700;
  color: #fcd34d;
}

.subsection-title {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  color: #f8fafc;
  font-size: 1.4rem;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav-tab {
  padding: 0.6rem 1.2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #94a3b8;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-tab.active {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}

.subsection-content {
  display: none;
}

.subsection-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Gallery Styles */
.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.image-row img {
  flex: 1;
  min-width: 80px;
  max-width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.image-row.double img {
  min-width: 120px;
  max-height: 180px;
  border-radius: 12px;
}

.term-card-image {
  max-width: 300px;
}
