/*
Theme Name: Moban 8-2-13
Description: Chủ đề WordPress tùy chỉnh cho cổng thông tin game Bầu Cua Tôm Cá (Hoo Hey How) – landing page nền kem phối xanh ngọc lục bảo, bố cục đối xứng căn giữa, tối ưu SEO.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

/* Google Fonts (Nunito + Be Vietnam Pro) are enqueued in functions.php — no @import here. */

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  --brand-primary: #0e9f6e;
  --brand-primary-deep: #0a7451;
  --brand-ink: #0c3b2e;
  --brand-accent: #eab308;
  --brand-accent-soft: #fdf3c7;
  --bg: #fffdf6;
  --bg-mint: #ecf8f1;
  --surface: #ffffff;
  --text: #31413a;
  --text-muted: #6d7f76;
  --line: #d9ecdf;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 44px rgba(12, 59, 46, 0.10);
  --shadow-lg: 0 30px 64px rgba(12, 59, 46, 0.16);
  --font-display: 'Nunito', 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-primary); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--brand-primary-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.24;
  color: var(--brand-ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.05rem); }
h3 { font-size: clamp(1.08rem, 2.4vw, 1.3rem); }

p { margin: 0 0 1.2em; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.wrap--center { max-width: 1020px; text-align: center; }

.section { padding: 3.8rem 0; }
.section--mint { background: var(--bg-mint); border-radius: 48px; width: min(1320px, 96%); margin-inline: auto; }

.kicker-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-primary-deep);
  background: #dff2e8;
  border-radius: 999px;
  padding: 0.4rem 1.15rem;
  margin-bottom: 1rem;
}

.section-title { margin-bottom: 0.5rem; }

.section-lead {
  max-width: 62ch;
  margin: 0 auto 0.6em;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   3. Floating pill navbar
   ============================================================ */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 60;
}

.home .site-header { position: absolute; left: 0; right: 0; top: 0; }

.navbar-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 14px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; }

.site-brand__logo { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand-primary); }

.site-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--brand-ink);
  line-height: 1.1;
}

.site-brand__tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link:focus { background: var(--brand-primary); color: #fff; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 12px;
  background: var(--bg-mint);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--brand-primary-deep);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav.is-open {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.8rem 1rem 1rem;
}

@media (min-width: 1000px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .site-nav__list { flex-direction: row; }
}

/* ============================================================
   4. Centered hero
   ============================================================ */
.hero-center {
  position: relative;
  text-align: center;
  padding: 8.2rem 0 6.4rem;
  background:
    radial-gradient(ellipse 55% 48% at 50% 0%, rgba(234, 179, 8, 0.16), transparent 64%),
    linear-gradient(180deg, #e4f5ec, #f6fbf3 70%, transparent);
}

.hero-center__inner { position: relative; z-index: 1; }

.hero-center__emblem {
  width: 92px; height: 92px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
}

.hero-center__title { margin-bottom: 0.6rem; }

.hero-center__lead {
  max-width: 64ch;
  margin: 0 auto 1.6rem;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.hero-center__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.hero-center__ghost {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-primary-deep);
  border: 2px solid var(--brand-primary);
  border-radius: 999px;
  padding: 0.72rem 1.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-center__ghost:hover { background: var(--brand-primary); color: #fff; }

.hero-center__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 70px;
  display: block;
}

/* ============================================================
   5. CTA button & shell
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
  border-radius: 999px;
  padding: 0.92rem 2.5rem;
  box-shadow: 0 14px 30px rgba(14, 159, 110, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover,
.cta-btn:focus {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(14, 159, 110, 0.45);
}

.cta-btn--block { display: block; width: max-content; margin-inline: auto; }

.cta-shell {
  text-align: center;
  padding: 3rem 1.4rem;
  margin: 3.2rem 0 3.8rem;
  border-radius: 36px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(234, 179, 8, 0.18), transparent 70%),
    var(--bg-mint);
  border: 2px dashed var(--brand-primary);
}

/* ============================================================
   6. Feature grid
   ============================================================ */
.feat-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
}

@media (min-width: 620px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(4, 1fr); } }

.feat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.feat-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.feat-card__title { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feat-card__text { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   7. Steps
   ============================================================ */
.step-row {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
}

@media (min-width: 820px) { .step-row { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.4rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.step-card__num {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-accent), #d99e06);
  color: #3d2c00;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(234, 179, 8, 0.4);
}

.step-card__title { font-size: 1.06rem; margin: 0.6rem 0 0.4rem; }
.step-card__text { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   8. Symbol orbs
   ============================================================ */
.orb-grid {
  display: grid;
  gap: 1.6rem 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) { .orb-grid { grid-template-columns: repeat(6, 1fr); } }

.orb { text-align: center; }

.orb img {
  width: clamp(70px, 9vw, 108px);
  height: clamp(70px, 9vw, 108px);
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.orb:hover img { transform: scale(1.08) rotate(-3deg); }

.orb__name {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand-primary-deep);
}

/* ============================================================
   9. Voices
   ============================================================ */
.voice-stack {
  display: grid;
  gap: 1.3rem;
  max-width: 720px;
  margin: 2rem auto 0;
}

.voice-card {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}

.voice-card::before {
  content: '❝';
  position: absolute;
  top: -18px; left: 24px;
  font-size: 2.4rem;
  color: var(--brand-accent);
  line-height: 1;
}

.voice-card__text { font-style: italic; margin: 0 0 0.7rem; }

.voice-card__author {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--brand-primary);
}

/* ============================================================
   10. Breadcrumbs
   ============================================================ */
.breadcrumbs { padding: 1rem 0 0; font-size: 0.85rem; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

.breadcrumbs li + li::before { content: '›'; margin-right: 0.4rem; color: var(--brand-primary); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brand-primary); }
.breadcrumbs [aria-current="page"] { color: var(--brand-primary); }

/* ============================================================
   11. Archive: centered wide cards
   ============================================================ */
.page-head {
  text-align: center;
  padding: 3.4rem 0 1.4rem;
  background: linear-gradient(180deg, #e4f5ec, transparent);
}

.post-flow {
  display: grid;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.6rem 0 3rem;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) { .post-card { grid-template-columns: 260px 1fr; } }

.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.post-card__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }

.post-card__body { padding: 1.3rem 1.5rem 1.5rem; }

.post-card__title { font-size: 1.12rem; margin-bottom: 0.45rem; }
.post-card__title a { color: var(--brand-ink); }
.post-card__title a:hover { color: var(--brand-primary); }

.post-card__excerpt { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0.8rem; }

.post-card__meta { margin: 0; font-size: 0.8rem; color: var(--brand-primary); font-weight: 700; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }

/* Pagination */
.pagination, .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 3rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 0.7rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  background: var(--surface);
}

.page-numbers.current { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.page-numbers:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.page-numbers.current:hover { color: #fff; }

/* ============================================================
   12. Single post
   ============================================================ */
.single-head {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  padding: 2.6rem 0 1.2rem;
}

.single-head img { border-radius: var(--radius); margin-top: 1rem; }

.single-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.entry-content {
  max-width: 760px;
  margin-inline: auto;
}

.entry-content img { border-radius: var(--radius); }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }

.entry-content blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--brand-accent);
  background: var(--bg-mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.related-block { padding: 2.6rem 0 3rem; }

.related-stack {
  display: grid;
  gap: 1.1rem;
  max-width: 720px;
  margin: 1.8rem auto 0;
}

.related-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.2rem 0.5rem 0.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.related-line:hover { transform: translateX(6px); }

.related-line img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.related-line__title { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; margin: 0; }
.related-line__title a { color: var(--brand-ink); }
.related-line__title a:hover { color: var(--brand-primary); }

/* ============================================================
   13. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-mint), var(--bg));
  padding: 2.8rem 0 1.6rem;
  text-align: center;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.site-footer__nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 700; }
.site-footer__nav a:hover { color: var(--brand-primary); }

.site-footer__badge { margin: 1.4rem 0; }

.site-footer__disclaimer {
  max-width: 720px;
  margin: 1.2rem auto 0;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.site-footer__disclaimer p { margin: 0.3em 0; }

.site-footer__copy { margin-top: 1.4rem; font-size: 0.78rem; color: rgba(109, 127, 118, 0.7); }

/* ============================================================
   14. Motion & a11y
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
