/*
Theme Name: Moban 8-2-43
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 tủ gỗ hồng mộc phân tầng, khảm sơn kim, tay nắm đồng, tối ưu SEO.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Design tokens — rosewood + gold lacquer
   ============================================================ */
:root {
  --wood-hi: #7c3418;
  --wood: #5a2210;
  --wood-deep: #3c1409;
  --wood-ink: #260b04;
  --gold: #d9a441;
  --gold-soft: #f0cf8d;
  --gold-deep: #a97a26;
  --velvet: #7c1f2b;
  --bg: #1d0a05;
  --surface: #2e1108;
  --surface-alt: #3a170b;
  --text: #f6e8d2;
  --text-muted: #d8b990;
  --line: rgba(217, 164, 65, 0.3);
  --radius: 6px;
  --radius-sm: 4px;
  --grain: repeating-linear-gradient(93deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 9px, rgba(255, 255, 255, 0.03) 9px 11px, transparent 11px 19px);
  --panel-out: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -6px 14px rgba(0, 0, 0, 0.4);
  --panel-in: inset 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  --font-display: 'Marcellus', 'Be Vietnam Pro', serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

/* ============================================================
   2. Reset & base — dark workshop wall
   ============================================================ */
*,
*::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 55% 34% at 12% -4%, rgba(217, 164, 65, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 38% at 92% 0, rgba(124, 52, 24, 0.35), transparent 62%),
    radial-gradient(circle at 50% 115%, rgba(217, 164, 65, 0.07), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

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

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

h1 { font-size: clamp(1.75rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p { margin: 0 0 1.2em; }

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

.section { padding: 3.4rem 0; }

/* Section header as an engraved brass label plate */
.cabinet-label {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.cabinet-label__plate {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wood-ink);
  background: linear-gradient(160deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  padding: 0.34rem 1.1rem;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cabinet-label::after {
  content: '';
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

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

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

/* Shelf beam divider between cabinet levels */
.shelf-beam {
  height: 26px;
  background:
    var(--grain),
    linear-gradient(180deg, var(--wood-hi), var(--wood) 45%, var(--wood-deep));
  border-top: 2px solid var(--gold-deep);
  border-bottom: 4px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   3. Header — two-tier carved beam
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background:
    var(--grain),
    linear-gradient(180deg, var(--wood), var(--wood-deep));
  border-bottom: 3px solid var(--gold-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0 0.5rem;
}

.site-brand { display: flex; align-items: center; gap: 0.7rem; }

.site-brand__logo {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  box-shadow: var(--panel-out);
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1.12;
}

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

/* Nav sits on its own lower shelf of the beam */
.site-header__shelf {
  border-top: 1px solid rgba(217, 164, 65, 0.25);
  background: rgba(0, 0, 0, 0.25);
}

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0; padding: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0.6rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  border-right: 1px solid rgba(217, 164, 65, 0.22);
  transition: background 0.25s ease, color 0.25s ease;
}

.site-nav__list li:first-child .site-nav__link { border-left: 1px solid rgba(217, 164, 65, 0.22); }

.site-nav__link:hover,
.site-nav__link:focus {
  color: var(--wood-ink);
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 12px;
  background: var(--wood-ink);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--gold);
  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;
  border-top: 1px solid rgba(217, 164, 65, 0.25);
  background: rgba(0, 0, 0, 0.3);
}

.site-nav.is-open .site-nav__list { flex-direction: column; padding: 0.5rem 4%; }
.site-nav.is-open .site-nav__link { padding: 0.8rem 1rem; border: 0; border-bottom: 1px solid rgba(217, 164, 65, 0.18); }

@media (min-width: 960px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
}

/* ============================================================
   4. Hero — cabinet facade: panel + framed carousel
   ============================================================ */
.cabinet-hero {
  padding: 3rem 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(217, 164, 65, 0.1), transparent 65%),
    linear-gradient(180deg, var(--wood-deep), var(--bg));
}

.cabinet-hero__row {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .cabinet-hero__row { grid-template-columns: 1.05fr 1fr; gap: 2.6rem; }
}

/* Left: carved door panel */
.door-panel {
  position: relative;
  padding: 2.4rem 2rem;
  background:
    var(--grain),
    linear-gradient(160deg, var(--surface-alt), var(--surface));
  border: 2px solid var(--gold-deep);
  outline: 1px solid rgba(0, 0, 0, 0.6);
  outline-offset: 5px;
  border-radius: var(--radius);
  box-shadow: var(--panel-out);
}

.door-panel::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: 3px;
  pointer-events: none;
}

.door-panel__lead { color: var(--text-muted); font-size: 1rem; }

.door-panel__footnote {
  margin: 1.4rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Right: carousel framed like a wall mirror */
.frame-carousel {
  position: relative;
  padding: 12px;
  background:
    var(--grain),
    linear-gradient(140deg, var(--wood-hi), var(--wood-deep));
  border-radius: var(--radius);
  box-shadow: var(--panel-out);
}

.frame-carousel::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid var(--gold-deep);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}

.carousel { position: relative; overflow: hidden; border-radius: 3px; }

.carousel__track { position: relative; aspect-ratio: 16 / 10; min-height: 240px; }

.carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s 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: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(38, 11, 4, 0.6);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.carousel__dot.is-active {
  background: radial-gradient(circle at 32% 30%, var(--gold-soft), var(--gold-deep));
}

/* ============================================================
   5. CTA button — gold ingot
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  color: var(--wood-ink);
  background: linear-gradient(160deg, var(--gold-soft), var(--gold) 50%, var(--gold-deep));
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 2.5rem;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 10px rgba(121, 82, 20, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cta-glow 3s ease-in-out infinite;
}

.cta-btn:hover,
.cta-btn:focus {
  color: var(--wood-ink);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 10px rgba(121, 82, 20, 0.5), 0 14px 30px rgba(217, 164, 65, 0.4);
}

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

@keyframes cta-glow {
  0%, 100% { filter: drop-shadow(0 6px 14px rgba(217, 164, 65, 0.25)); }
  50% { filter: drop-shadow(0 8px 26px rgba(217, 164, 65, 0.5)); }
}

/* ============================================================
   6. Cabinet doors (features) & drawers (symbols)
   ============================================================ */
.door-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 0.6rem;
}

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

.door-card {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 1.1rem;
  padding: 1.1rem;
  background:
    var(--grain),
    linear-gradient(150deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--panel-out);
  transition: transform 0.3s ease;
}

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

/* Brass knob */
.door-card::after {
  content: '';
  position: absolute;
  top: 50%; right: 14px;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--gold-deep) 70%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.4);
}

.door-card__media img {
  width: 128px; height: 128px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-deep);
}

.door-card__title { margin-bottom: 0.3rem; font-size: 1.1rem; }

.door-card__text { font-size: 0.92rem; color: var(--text-muted); margin: 0; padding-right: 1.6rem; }

@media (max-width: 520px) {
  .door-card { grid-template-columns: 1fr; }
  .door-card__media img { width: 100%; height: auto; aspect-ratio: 2 / 1; }
}

/* Symbol drawer row */
.drawer-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0.8rem;
  padding: 0;
  list-style: none;
}

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

.drawer {
  position: relative;
  text-align: center;
  padding: 1rem 0.6rem 1.2rem;
  background:
    var(--grain),
    linear-gradient(180deg, var(--wood), var(--wood-deep));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  box-shadow: var(--panel-out);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.drawer:hover {
  transform: translateY(6px);
  box-shadow: var(--panel-in);
}

.drawer img {
  width: 78px; height: 78px;
  margin: 0 auto 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-deep);
  object-fit: cover;
}

/* Drawer pull handle */
.drawer::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 8px;
  width: 44px; height: 7px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.drawer__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--gold);
}

/* ============================================================
   7. Rules — inlaid writing desk
   ============================================================ */
.inlay-desk {
  margin-top: 0.8rem;
  padding: 1.4rem;
  background:
    radial-gradient(ellipse at 50% 0, rgba(217, 164, 65, 0.08), transparent 60%),
    var(--surface);
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--panel-in);
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
}

.rules-table th,
.rules-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(217, 164, 65, 0.16);
  font-size: 0.94rem;
}

.rules-table th {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  color: var(--wood-ink);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.rules-table tbody tr:hover { background: rgba(217, 164, 65, 0.07); }

.table-scroll { overflow-x: auto; }

/* ============================================================
   8. Reviews — velvet cushions
   ============================================================ */
.cushion-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 0.8rem;
}

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

.velvet-card {
  padding: 1.7rem 1.5rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(170deg, #93283a, var(--velvet) 55%, #54121d);
  border: 2px solid var(--gold-deep);
  border-radius: 14px;
  box-shadow: var(--panel-out), inset 0 0 34px rgba(0, 0, 0, 0.4);
}

.velvet-card__stars {
  color: var(--gold-soft);
  letter-spacing: 0.16em;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.velvet-card__text { font-style: italic; color: var(--text); font-size: 0.95rem; }

.velvet-card__author { margin: 0.9rem 0 0; font-weight: 700; color: var(--gold-soft); font-size: 0.86rem; }

/* CTA drawer */
.cta-drawer {
  text-align: center;
  padding: 2.6rem 1rem;
  margin: 2rem 0 3rem;
  background:
    var(--grain),
    linear-gradient(180deg, var(--wood), var(--wood-deep));
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--panel-in);
}

/* ============================================================
   9. 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(--gold); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

/* ============================================================
   10. Archive — wooden plank cards
   ============================================================ */
.page-head { padding: 2.2rem 0 0.6rem; }

.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding: 1.6rem 0 3rem;
}

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

.card {
  background:
    var(--grain),
    linear-gradient(170deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--panel-out);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

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

.post-card__body { padding: 1.1rem 1.2rem 1.4rem; }

.post-card__title { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 0.4rem; }

.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--gold); }

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

.post-card__meta { font-size: 0.8rem; color: var(--gold-deep); letter-spacing: 0.08em; }

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

.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: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
  box-shadow: var(--panel-out);
}

.page-numbers.current {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  color: var(--wood-ink);
  border-color: var(--gold-soft);
}

.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.page-numbers.current:hover { color: var(--wood-ink); }

/* ============================================================
   11. Single post
   ============================================================ */
.single-head { padding: 2rem 0 1rem; }

.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;
  padding: 1.6rem 1.6rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--panel-in);
}

.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.4rem;
  border-left: 4px solid var(--gold);
  background: rgba(217, 164, 65, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

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

/* ============================================================
   12. Footer — cabinet baseboard
   ============================================================ */
.site-footer {
  border-top: 26px solid transparent;
  border-image: linear-gradient(180deg, var(--wood-hi), var(--wood-deep)) 1;
  background: linear-gradient(180deg, var(--wood-ink), #150502);
  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(--gold); }

.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(216, 185, 144, 0.55); }

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