/*
Theme Name: Moban 8-2-12
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 sáng trắng đỏ vàng, bố cục trái ảnh phải chữ, tối ưu SEO.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  --brand-primary: #d7263d;
  --brand-primary-deep: #a91d30;
  --brand-accent: #e8a013;
  --brand-accent-soft: #fdeecb;
  --bg: #ffffff;
  --bg-soft: #fff6f0;
  --surface: #ffffff;
  --ink: #241516;
  --text: #3c2a2b;
  --text-muted: #7d6a6b;
  --line: #f1dcd2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(215, 38, 61, 0.10);
  --shadow-lg: 0 26px 60px rgba(215, 38, 61, 0.16);
  --font-display: 'Manrope', '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);
  background-image:
    radial-gradient(ellipse 52% 34% at 90% -8%, rgba(232, 160, 19, 0.14), transparent 62%),
    radial-gradient(ellipse 46% 30% at 2% 0%, rgba(215, 38, 61, 0.07), transparent 60%);
  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.22;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.05rem); letter-spacing: -0.01em; }
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--narrow { width: min(820px, 92%); margin-inline: auto; }

.section { padding: 3.6rem 0; }
.section--soft { background: var(--bg-soft); }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: #fdecee;
  border-radius: 999px;
  padding: 0.4rem 1.05rem;
  margin-bottom: 0.9rem;
}

.section-title { position: relative; padding-bottom: 0.75rem; }

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.section-lead { max-width: 66ch; 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. Header: slim ribbon + bar with right CTA
   ============================================================ */
.topline {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffe9ea;
  background: linear-gradient(90deg, var(--brand-primary-deep), var(--brand-primary) 55%, var(--brand-accent));
  padding: 0.42rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 0;
}

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

.site-brand__logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 2px solid var(--brand-accent);
  box-shadow: 0 6px 16px rgba(232, 160, 19, 0.3);
}

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

.site-brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.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.55rem 0.9rem;
  border-radius: 10px;
  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 {
  color: var(--brand-primary);
  background: #fdecee;
}

.header-cta .cta-btn { padding: 0.62rem 1.6rem; font-size: 0.92rem; animation: none; }

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

.nav-toggle__bar {
  display: block;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--brand-primary);
  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: 100%;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 3px solid var(--brand-primary);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem 4% 1rem;
}

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

@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ============================================================
   4. Hero split (image left, copy right)
   ============================================================ */
.hero-split {
  padding: 3.4rem 0 3.8rem;
  background:
    radial-gradient(ellipse 40% 60% at 100% 100%, rgba(232, 160, 19, 0.12), transparent 65%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.hero-split__grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-split__grid { grid-template-columns: 1.05fr 1fr; }
}

.hero-split__media {
  margin: 0;
  position: relative;
}

.hero-split__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 5px solid #fff;
}

.hero-split__caption {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(36, 21, 22, 0.82);
  color: #ffe9c9;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.hero-split__lead { color: var(--text-muted); font-size: 1.04rem; max-width: 56ch; }

.hero-split__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-split__chips li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}

/* ============================================================
   5. Stats band
   ============================================================ */
.stats-band {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-deep));
  color: #fff;
  padding: 1.9rem 0;
}

.stats-band__grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--brand-accent-soft);
  line-height: 1;
}

.stat__label { font-size: 0.84rem; color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   6. Story rows (image left, text right)
   ============================================================ */
.story-list { display: grid; gap: 2.6rem; margin-top: 2.4rem; }

.story-row {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

@media (min-width: 820px) {
  .story-row { grid-template-columns: 300px 1fr; gap: 2.2rem; padding: 1.9rem; }
}

.story-row__media { margin: 0; }

.story-row__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border-bottom: 5px solid var(--brand-accent);
}

.story-row__step {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.5rem;
}

.story-row__title { margin-bottom: 0.5rem; }
.story-row__text { color: var(--text-muted); margin: 0; }

/* ============================================================
   7. Symbols strip
   ============================================================ */
.symbol-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

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

.symbol-chip {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.symbol-chip:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.symbol-chip img {
  width: 76px; height: 76px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  border: 3px solid var(--brand-accent-soft);
}

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

/* ============================================================
   8. FAQ accordion (native details/summary)
   ============================================================ */
.faq-list { margin-top: 1.8rem; display: grid; gap: 0.8rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] { border-color: var(--brand-primary); }

.faq-item__q {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1rem 2.6rem 1rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: '+';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fdecee;
  color: var(--brand-primary);
  font-weight: 800;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__q::after { content: '–'; background: var(--brand-primary); color: #fff; }

.faq-item__a {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
}

/* ============================================================
   9. Notice list
   ============================================================ */
.notice-list { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }

.notice-list__item {
  position: relative;
  padding: 0.85rem 1.1rem 0.85rem 3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--text);
}

.notice-list__item::before {
  content: '!';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-accent-soft);
  color: var(--brand-primary-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ============================================================
   10. CTA button & strip
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
  border-radius: 999px;
  padding: 0.9rem 2.4rem;
  box-shadow: 0 12px 26px rgba(215, 38, 61, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover,
.cta-btn:focus {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(215, 38, 61, 0.42);
}

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

.cta-strip {
  text-align: center;
  padding: 2.6rem 1.2rem;
  margin: 2.6rem 0 3.4rem;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 160, 19, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(215, 38, 61, 0.16), transparent 55%),
    var(--bg-soft);
  border: 1px solid var(--line);
}

/* ============================================================
   11. 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); }

/* ============================================================
   12. Archive: two-column layout with sidebar
   ============================================================ */
.page-head { padding: 2.2rem 0 0.8rem; }

.archive-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding: 1.4rem 0 3rem;
}

@media (min-width: 980px) {
  .archive-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.post-list { display: grid; gap: 1.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: 620px) {
  .post-card { grid-template-columns: 220px 1fr; }
}

.post-card:hover { transform: translateY(-4px); 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.1rem 1.3rem 1.3rem; }

.post-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 0.4rem; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand-primary); }

.post-card__excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.7rem; }
.post-card__meta { font-size: 0.8rem; color: var(--brand-accent); font-weight: 600; margin: 0; }

.side-col { display: grid; gap: 1.2rem; position: sticky; top: 92px; }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow);
}

.side-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  margin: 0 0 0.8rem;
  color: var(--ink);
}

.side-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }

.side-card ul a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.side-card ul a:hover { background: #fdecee; color: var(--brand-primary); }

.side-card--cta {
  text-align: center;
  background: linear-gradient(160deg, #fff3f4, var(--brand-accent-soft));
  border-color: var(--brand-accent);
}

.side-card--cta p { font-size: 0.88rem; color: var(--text-muted); }

.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: 1.4rem 0 0;
}

.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: var(--radius-sm);
  color: var(--text);
  font-weight: 700;
  background: #fff;
}

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

/* ============================================================
   13. Single post
   ============================================================ */
.single-head {
  padding: 2.2rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}

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

.entry-content { max-width: 780px; }

.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-primary);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.mid-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 780px;
  margin: 2.2rem 0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff3f4, var(--brand-accent-soft));
  border: 1px dashed var(--brand-primary);
}

.mid-cta p { margin: 0; font-weight: 600; color: var(--ink); }

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

.related-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; margin-top: 1.6rem; }

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

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

.related-card:hover { transform: translateY(-5px); }

.related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.related-card__body { padding: 1rem 1.1rem 1.2rem; }

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

/* ============================================================
   14. Footer
   ============================================================ */
.site-footer {
  border-top: 4px solid var(--brand-primary);
  background: #fff8f3;
  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: 600; }
.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(125, 106, 107, 0.7); }

/* ============================================================
   15. 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; }
