/* ============================
   WWM (Where Winds Meet) Styles
   ============================ */

/* --- Hero section --- */
.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: #2563eb;
  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: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

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

.button-primary:hover {
  background: #1d4ed8;
}

.button-lore:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.45);
}

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

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

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

.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:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.section-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.section-card.section-card-lore {
  border-color: rgba(139, 92, 246, 0.18);
  background: linear-gradient(
    145deg,
    rgba(30, 27, 75, 0.96),
    rgba(15, 23, 42, 0.98)
  );
}

.section-card.section-card-lore:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.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;
}

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

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

/* --- WWM theme overrides (for body data-section="chinese-hits") --- */
body[data-section="chinese-hits"] header {
  position: relative;
  min-height: 320px;
  padding: 4rem 1rem;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

body[data-section="chinese-hits"] header > div {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

body[data-section="chinese-hits"] header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.15),
    rgba(15, 23, 42, 0.55)
  );
  pointer-events: none;
}

body[data-section="chinese-hits"] header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

body[data-section="chinese-hits"] header p {
  margin: 1rem auto 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
  opacity: 0.95;
}