/*
Theme Name: Moban 8-2-5
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 xanh midnight, tối ưu SEO.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

/* Google Fonts (Saira) are enqueued in functions.php — no @import here. */

/* ============================================================
   1. Design tokens — Midnight Blue Neon
   ============================================================ */
:root {
  --bg: #060d1f;
  --bg-raise: #0a1530;
  --surface: #0e1c3f;
  --surface-2: #13244e;
  --neon: #4dd7ff;
  --neon-deep: #1f8fff;
  --neon-ice: #a8e9ff;
  --gold: #ffd76a;
  --text: #eaf3ff;
  --muted: #93a7c9;
  --line: rgba(77, 215, 255, 0.28);
  --glow: 0 0 14px rgba(77, 215, 255, 0.5), 0 0 46px rgba(31, 143, 255, 0.25);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: 'Saira', system-ui, sans-serif;
  --font-body: 'Saira', system-ui, sans-serif;
  --wrap: 1180px;
  --dock-h: 58px;
}

/* ============================================================
   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.72;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 64% 42% at 50% -10%, rgba(31, 143, 255, 0.25), transparent 64%),
    radial-gradient(ellipse 40% 30% at 8% 62%, rgba(77, 215, 255, 0.07), transparent 60%),
    radial-gradient(ellipse 44% 30% at 96% 34%, rgba(255, 215, 106, 0.04), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 1.4rem);
}

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-ice); }

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

h1 { font-size: clamp(1.75rem, 4.4vw, 2.85rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.02rem, 2.3vw, 1.24rem); font-weight: 700; }

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. Top brand bar + bottom dock nav
   ============================================================ */
.oc-topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 13, 31, 0.9);
  backdrop-filter: blur(8px);
}

.oc-topbar__inner { display: flex; align-items: center; padding: 0.8rem 0; }

.oc-brand { display: flex; align-items: center; gap: 0.75rem; }

.oc-brand img {
  width: 50px; height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

.oc-brand__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.oc-brand__text small {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--neon);
}

.oc-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: rgba(10, 21, 48, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5), 0 -2px 18px rgba(77, 215, 255, 0.14);
  backdrop-filter: blur(10px);
}

.oc-dock__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oc-dock__list li { display: flex; }

.oc-dock__list li + li { border-left: 1px solid rgba(77, 215, 255, 0.18); }

.oc-dock__list a {
  display: flex;
  align-items: center;
  height: var(--dock-h);
  padding: 0 3vw;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease, text-shadow 0.25s ease, background 0.25s ease;
}

.oc-dock__list a:hover, .oc-dock__list a:focus {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(77, 215, 255, 0.8);
  background: rgba(77, 215, 255, 0.06);
}

@media (max-width: 640px) {
  .oc-dock__list { overflow-x: auto; justify-content: flex-start; }
  .oc-dock__list a { padding: 0 4.4vw; white-space: nowrap; }
}

/* ============================================================
   4. Intro panel
   ============================================================ */
.oc-intro { padding: 3rem 0 2.6rem; }

.oc-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .oc-intro__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.oc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--gold);
  border: 1px solid rgba(255, 215, 106, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  margin-bottom: 1.1rem;
}

.oc-intro__title {
  text-shadow: 0 0 20px rgba(77, 215, 255, 0.5), 0 0 56px rgba(31, 143, 255, 0.3);
}

.oc-intro__lead { color: var(--muted); font-size: 1.02rem; }

.oc-intro__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), var(--glow);
}

.oc-intro__media img { aspect-ratio: 16 / 10; object-fit: cover; }

.oc-intro__media figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
}

/* ============================================================
   5. Sections
   ============================================================ */
.oc-section { padding: 3.2rem 0; }

.oc-section--deep {
  background: linear-gradient(180deg, rgba(14, 28, 63, 0.5), rgba(14, 28, 63, 0.15));
  border-block: 1px solid rgba(77, 215, 255, 0.14);
}

.oc-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 0.6rem;
}

.oc-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.oc-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 66px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--neon), var(--neon-deep));
  box-shadow: var(--glow);
}

/* Rules table */
.oc-table-scroll { overflow-x: auto; }

.oc-rules {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.oc-rules th, .oc-rules td {
  padding: 0.9rem 1.05rem;
  text-align: left;
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(77, 215, 255, 0.12);
}

.oc-rules th {
  background: var(--surface-2);
  color: var(--neon-ice);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.oc-rules td:first-child { font-weight: 700; color: var(--neon); white-space: nowrap; }
.oc-rules td:last-child { color: var(--gold); font-weight: 700; white-space: nowrap; }
.oc-rules tbody tr:hover { background: rgba(77, 215, 255, 0.06); }

/* ============================================================
   6. Waterfall card stream
   ============================================================ */
.oc-waterfall {
  columns: 1;
  column-gap: 1.3rem;
  margin-top: 2rem;
}

@media (min-width: 700px) { .oc-waterfall { columns: 2; } }
@media (min-width: 1024px) { .oc-waterfall { columns: 3; } }

.oc-card {
  break-inside: avoid;
  margin: 0 0 1.3rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.oc-card.is-in { opacity: 1; transform: none; }

.oc-card:hover { box-shadow: var(--glow); }

.oc-card h3 { padding: 0 0.2rem; }

.oc-card--feature { padding-bottom: 1.2rem; }

.oc-card--feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; }

.oc-card--feature h3 { font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--neon-ice); }

.oc-card--feature p { margin: 0; padding-inline: 1.2rem; font-size: 0.92rem; color: var(--muted); }

.oc-card--symbols { padding: 1.3rem 1.2rem 1.4rem; }

.oc-card--symbols h3 { margin-bottom: 1rem; font-size: 1.02rem; color: var(--neon-ice); }

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

.oc-symrow li { text-align: center; }

.oc-symrow img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oc-symrow li:hover img { transform: scale(1.06); box-shadow: var(--glow); }

.oc-symrow span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon);
}

.oc-card--review { padding: 1.5rem 1.3rem 1.3rem; background: var(--surface); }

.oc-stars { color: var(--gold); letter-spacing: 0.16em; text-shadow: 0 0 10px rgba(255, 215, 106, 0.6); }

.oc-card--review p { font-style: italic; font-size: 0.94rem; margin: 0.7em 0 0.8em; }

.oc-card--review cite { font-style: normal; font-size: 0.84rem; font-weight: 700; color: var(--neon-ice); }

/* ============================================================
   7. CTA
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #041021;
  background: linear-gradient(135deg, var(--neon-ice), var(--neon) 55%, var(--neon-deep));
  border-radius: 999px;
  padding: 1rem 2.7rem;
  box-shadow: 0 0 16px rgba(77, 215, 255, 0.55), 0 0 44px rgba(31, 143, 255, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.cta-btn:hover, .cta-btn:focus {
  color: #041021;
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(77, 215, 255, 0.85), 0 0 70px rgba(31, 143, 255, 0.45);
}

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

.oc-cta {
  text-align: center;
  margin: 1.6rem 0 2.4rem;
  padding: 3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(77, 215, 255, 0.13), transparent 70%),
    var(--surface);
}

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

/* ============================================================
   8. Breadcrumbs
   ============================================================ */
.breadcrumbs { padding: 1.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(--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); }

/* ============================================================
   9. Archive — stacked round cards
   ============================================================ */
.page-head { padding: 2.2rem 0 0.6rem; }

.oc-postgrid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  padding: 1.6rem 0 2.4rem;
}

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

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

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

.oc-postcard__media { display: block; padding: 0.85rem 0.85rem 0; }

.oc-postcard__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.oc-postcard__body { padding: 1rem 1.25rem 1.35rem; }

.oc-postcard__title { font-size: 1.04rem; margin-bottom: 0.35rem; font-weight: 700; }
.oc-postcard__title a { color: var(--text); }
.oc-postcard__title a:hover { color: var(--neon); }

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

.oc-postcard__meta { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; 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: 700;
  background: var(--surface);
}

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

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

/* ============================================================
   10. Single post
   ============================================================ */
.oc-single-head { padding: 2.2rem 0 1rem; }

.oc-single-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.4rem;
}

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

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

.oc-single-head img { border-radius: var(--radius); border: 1px solid var(--line); }

.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-left: 4px solid var(--neon);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-style: italic;
}

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

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raise), #030813);
  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(147, 167, 201, 0.6); }

/* ============================================================
   12. 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-ice); outline-offset: 3px; }
