/*
Theme Name: Moban 8-2-3
Description: Chủ đề WordPress tùy chỉnh cho cổng thông tin game Bầu Cua Tôm Cá (Hoo Hey How) – phong cách Casino Night Neon tông lục bảo, tối ưu SEO.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Design tokens — Emerald Noir Neon
   ============================================================ */
:root {
  --bg: #03100a;
  --bg-raise: #062318;
  --surface: #082b1d;
  --surface-2: #0b3a27;
  --neon: #22ff9c;
  --neon-deep: #00c878;
  --neon-lime: #b8ff5c;
  --gold: #ffd166;
  --text: #e9fff4;
  --muted: #8fbfa8;
  --line: rgba(34, 255, 156, 0.3);
  --glow: 0 0 14px rgba(34, 255, 156, 0.5), 0 0 44px rgba(34, 255, 156, 0.22);
  --radius: 22px;
  --radius-sm: 12px;
  --font-display: 'Audiowide', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --wrap: 1200px;
}

/* ============================================================
   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.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(34, 255, 156, 0.16), transparent 65%),
    radial-gradient(ellipse 40% 32% at 8% 42%, rgba(0, 200, 120, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 32% at 94% 68%, rgba(184, 255, 92, 0.06), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a { color: var(--neon); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--neon-lime); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.6rem, 4.2vw, 2.7rem); text-shadow: 0 0 20px rgba(34, 255, 156, 0.55); }
h2 { font-size: clamp(1.3rem, 3.2vw, 2rem); text-shadow: 0 0 16px rgba(34, 255, 156, 0.4); }
h3 { font-size: clamp(1rem, 2.3vw, 1.25rem); }

p { margin: 0 0 1.2em; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

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

/* ============================================================
   3. Floating capsule navigation
   ============================================================ */
.gm-capsule-bar {
  position: sticky;
  top: 0.8rem;
  z-index: 60;
  padding: 0.8rem 4% 0;
}

.gm-capsule {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.5rem 0.6rem 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(6, 35, 24, 0.85);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5), var(--glow);
  backdrop-filter: blur(12px);
}

.gm-capsule__brand { display: flex; align-items: center; gap: 0.6rem; }

.gm-capsule__brand img {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  box-shadow: 0 0 12px rgba(34, 255, 156, 0.5);
}

.gm-capsule__name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.15;
}

.gm-capsule__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
}

.gm-capsule__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px; height: 42px;
  padding: 11px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.gm-capsule__toggle span {
  display: block; width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gm-capsule__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gm-capsule__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gm-capsule__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.gm-capsule__nav { display: none; }

.gm-capsule__nav.is-open {
  display: block;
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0; right: 0;
  border-radius: var(--radius);
  background: rgba(6, 35, 24, 0.97);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), var(--glow);
}

.gm-capsule__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0.6rem;
  list-style: none;
}

.gm-capsule__list a {
  display: block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.gm-capsule__list a:hover, .gm-capsule__list a:focus {
  background: rgba(34, 255, 156, 0.12);
  color: var(--neon);
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (min-width: 1020px) {
  .gm-capsule__toggle { display: none; }
  .gm-capsule__nav { display: block; }
  .gm-capsule__list { flex-direction: row; gap: 0.2rem; padding: 0; }
}

/* ============================================================
   4. Spotlight stage
   ============================================================ */
.gm-stage {
  position: relative;
  padding: 2.4rem 0 3rem;
  background:
    radial-gradient(ellipse 62% 55% at 50% 30%, rgba(34, 255, 156, 0.1), transparent 70%);
}

.gm-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 72%;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(34, 255, 156, 0.06), transparent 65%);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.gm-stage__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

@media (min-width: 1020px) {
  .gm-stage__grid {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    align-items: start;
  }
}

.gm-rail {
  background: rgba(8, 43, 29, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.4rem;
  backdrop-filter: blur(6px);
}

.gm-rail__title {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(34, 255, 156, 0.6);
}

.gm-odds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }

.gm-odds__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 255, 156, 0.06);
  border: 1px solid rgba(34, 255, 156, 0.14);
}

.gm-odds__key { font-size: 0.85rem; font-weight: 600; color: var(--text); }

.gm-odds__val {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
  white-space: nowrap;
}

.gm-odds__row small {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  color: var(--muted);
}

.gm-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }

.gm-chip {
  text-align: center;
  padding: 0.5rem 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 255, 156, 0.16);
  background: rgba(34, 255, 156, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gm-chip:hover { transform: translateY(-4px); box-shadow: var(--glow); }

.gm-chip img {
  width: 52px; height: 52px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.gm-chip span { font-size: 0.8rem; font-weight: 700; color: var(--neon); }

@media (min-width: 640px) and (max-width: 1019px) {
  .gm-stage__grid { grid-template-columns: 1fr 1fr; }
  .gm-spotlight { grid-column: 1 / -1; order: -1; }
}

/* Spotlight carousel */
.gm-spotlight { text-align: center; }

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--glow);
}

.carousel__track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel__slide.is-active { opacity: 1; z-index: 1; }

.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel__dots {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; gap: 9px;
  padding: 0; margin: 0; list-style: none;
}

.carousel__dot {
  width: 12px; height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(233, 255, 244, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.carousel__dot.is-active { background: var(--neon); box-shadow: 0 0 10px rgba(34, 255, 156, 0.9); }

.gm-spotlight__copy { margin-top: 2rem; }

.gm-spotlight__title { max-width: 26ch; margin-inline: auto; }

.gm-spotlight__lead {
  max-width: 66ch;
  margin: 0 auto 1.8rem;
  color: var(--muted);
}

/* ============================================================
   5. Sections
   ============================================================ */
.gm-section { padding: 3.4rem 0; }

.gm-section--alt {
  background: linear-gradient(180deg, rgba(8, 43, 29, 0.55), transparent);
  border-block: 1px solid rgba(34, 255, 156, 0.14);
}

.gm-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-lime);
  padding-left: 2.2rem;
  position: relative;
  margin-bottom: 0.7rem;
}

.gm-kicker::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1.7rem; height: 2px;
  background: var(--neon);
  box-shadow: var(--glow);
}

.gm-title { position: relative; }

/* Intro */
.gm-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .gm-intro { grid-template-columns: 1.2fr 0.8fr; }
}

.gm-intro__figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.gm-intro__figure img { border-radius: calc(var(--radius) - 8px); }

.gm-intro__figure figcaption {
  padding-top: 0.8rem;
  font-size: 0.82rem;
  text-align: center;
  color: var(--muted);
}

/* Feature tiles */
.gm-tiles { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 2rem; }

@media (min-width: 640px) { .gm-tiles { grid-template-columns: repeat(2, 1fr); } }

.gm-tile {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gm-tile:hover { transform: translateY(-5px); box-shadow: var(--glow); }

.gm-tile__media img {
  width: 118px; height: 118px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid var(--line);
}

.gm-tile__body h3 { margin-bottom: 0.3rem; font-size: 1rem; color: var(--neon); }
.gm-tile__body p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Ticker */
.gm-ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(34, 255, 156, 0.07);
  padding: 0.55rem 0;
}

.gm-ticker__lane { display: flex; width: max-content; animation: gm-marquee 30s linear infinite; }

.gm-ticker__lane span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(34, 255, 156, 0.65);
  white-space: nowrap;
  padding-right: 0.5rem;
}

@keyframes gm-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reviews */
.gm-reviews { display: grid; gap: 1.3rem; margin-top: 2rem; grid-template-columns: 1fr; }

@media (min-width: 900px) { .gm-reviews { grid-template-columns: repeat(3, 1fr); } }

.gm-review {
  margin: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  padding: 1.6rem 1.4rem 1.3rem;
}

.gm-review::before {
  content: '“';
  position: absolute;
  top: -0.5rem; left: 1rem;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--neon);
  text-shadow: var(--glow);
}

.gm-review__stars { color: var(--gold); letter-spacing: 0.18em; }
.gm-review p { font-size: 0.94rem; font-style: italic; margin: 0.6em 0 0.8em; }
.gm-review footer { font-size: 0.84rem; font-weight: 700; color: var(--neon); }

/* CTA */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #052013;
  background: linear-gradient(140deg, var(--neon-lime), var(--neon) 55%, var(--neon-deep));
  border-radius: 999px;
  padding: 1rem 2.8rem;
  box-shadow: 0 0 16px rgba(34, 255, 156, 0.55), 0 0 44px rgba(34, 255, 156, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.cta-btn:hover, .cta-btn:focus {
  color: #052013;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 24px rgba(34, 255, 156, 0.8), 0 0 70px rgba(34, 255, 156, 0.4);
}

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

.gm-cta {
  text-align: center;
  margin: 1.5rem 0 3.2rem;
  padding: 3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(34, 255, 156, 0.14), transparent 70%),
    var(--surface);
}

.gm-cta p { color: var(--muted); }

/* ============================================================
   6. Breadcrumbs
   ============================================================ */
.breadcrumbs { padding: 1.2rem 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(--muted);
}

.breadcrumbs li + li::before { content: '•'; margin-right: 0.45rem; color: var(--neon); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--neon); }
.breadcrumbs [aria-current="page"] { color: var(--neon); }

/* ============================================================
   7. Archive — arch-top capsule cards
   ============================================================ */
.page-head { padding: 2.4rem 0 0.8rem; }

.gm-postgrid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding: 1.8rem 0 2.6rem;
}

@media (min-width: 640px) { .gm-postgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gm-postgrid { grid-template-columns: repeat(3, 1fr); } }

.gm-postcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gm-postcard:hover { transform: translateY(-6px); box-shadow: var(--glow); }

.gm-postcard__media { display: block; padding: 0.9rem 0.9rem 0; }

.gm-postcard__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 140px 140px var(--radius-sm) var(--radius-sm);
  border: 1px solid var(--line);
}

.gm-postcard__body { padding: 1.1rem 1.3rem 1.4rem; text-align: center; }

.gm-postcard__title { font-size: 1rem; margin-bottom: 0.4rem; }
.gm-postcard__title a { color: var(--text); }
.gm-postcard__title a:hover { color: var(--neon); }

.gm-postcard__excerpt { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.7rem; }

.gm-postcard__meta { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon-deep); }

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

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

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

.page-numbers.current {
  background: var(--neon);
  border-color: var(--neon);
  color: #052013;
  box-shadow: var(--glow);
}

.page-numbers:hover { border-color: var(--neon); color: var(--neon); }
.page-numbers.current:hover { color: #052013; }

/* ============================================================
   8. Single post
   ============================================================ */
.gm-single-head {
  padding: 2.2rem 0 1rem;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.gm-single-meta {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gm-single-meta span {
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(34, 255, 156, 0.06);
  color: var(--muted);
}

.gm-single-meta a { color: var(--neon); }

.gm-single-head img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

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

.entry-content blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--neon);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-style: italic;
}

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

/* ============================================================
   9. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raise), #020a06);
  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(--muted); font-size: 0.9rem; font-weight: 600; }
.site-footer__nav a:hover { color: var(--neon); }

.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(--muted);
}

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

.site-footer__copy { margin-top: 1.4rem; font-size: 0.78rem; color: rgba(143, 191, 168, 0.6); }

/* ============================================================
   10. 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(--neon-lime); outline-offset: 3px; }
