/*
Theme Name: Moban 8-2-45
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 khí cụ đồng cổ: đồng xanh gỉ ten, vàng trầm khắc chìm, tấm biển rivê đối xứng, tối ưu SEO.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Design tokens — verdigris bronze + antique gold
   ============================================================ */
:root {
  --bronze: #6d5330;
  --bronze-deep: #453520;
  --bronze-ink: #2a2013;
  --patina: #4f7a62;
  --patina-deep: #31493c;
  --patina-ink: #1d2e25;
  --gold: #b08d3e;
  --gold-soft: #dcc07a;
  --gold-deep: #8a6b28;
  --bg: #17120c;
  --surface: #241c11;
  --surface-alt: #2e2416;
  --text: #ece1c8;
  --text-muted: #b7a886;
  --line: rgba(176, 141, 62, 0.32);
  --radius: 4px;
  --radius-sm: 3px;
  --rivet: radial-gradient(circle at 34% 30%, var(--gold-soft), var(--gold-deep) 65%, #4d3a14);
  --hammered: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.045) 0 26px, transparent 27px),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.04) 0 30px, transparent 31px),
    radial-gradient(circle at 44% 86%, rgba(0, 0, 0, 0.16) 0 22px, transparent 23px);
  --shadow-out: 0 14px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -8px 16px rgba(0, 0, 0, 0.4);
  --shadow-in: inset 0 8px 22px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  --font-display: 'Bitter', 'Be Vietnam Pro', serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

/* ============================================================
   2. Reset & base — dark patinated chamber
   ============================================================ */
*,
*::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 60% 36% at 50% -6%, rgba(79, 122, 98, 0.28), transparent 62%),
    radial-gradient(ellipse 42% 34% at 8% 40%, rgba(176, 141, 62, 0.08), transparent 60%),
    radial-gradient(ellipse 42% 34% at 94% 62%, rgba(176, 141, 62, 0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

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

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

h1 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); text-transform: uppercase; letter-spacing: 0.03em; }
h2 { font-size: clamp(1.35rem, 3.4vw, 2.05rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); }

p { margin: 0 0 1.2em; }

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

.section { padding: 3.4rem 0; }

/* Riveted bronze title bar */
.rivet-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding: 0.8rem 2.4rem;
  background:
    linear-gradient(180deg, #7a5c35, var(--bronze) 45%, var(--bronze-deep));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
}

.rivet-bar::before,
.rivet-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--rivet);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.rivet-bar::before { left: 12px; }
.rivet-bar::after { right: 12px; }

.rivet-bar__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--patina);
  background: var(--patina-ink);
  border: 1px solid var(--patina);
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
}

.rivet-bar h2 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.7rem); }

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

/* ============================================================
   3. Header — riveted bronze plate nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background:
    var(--hammered),
    linear-gradient(180deg, var(--bronze), var(--bronze-deep));
  border-bottom: 2px solid var(--gold-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(180deg, var(--patina), var(--patina-deep));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-out);
}

.site-brand__logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-deep);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.site-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-soft);
  line-height: 1.15;
}

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

.site-nav { display: none; }

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

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 1.15rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-soft);
  background: linear-gradient(180deg, #5a4428, var(--bronze-deep));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: var(--bronze-ink);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  transform: translateY(-2px);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 12px;
  background: var(--bronze-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-soft);
  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: var(--bronze-ink);
  border-bottom: 2px solid var(--gold-deep);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.6);
}

.site-nav.is-open .site-nav__list { flex-direction: column; padding: 0.75rem 4%; }

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

/* ============================================================
   4. Hero — central inscribed plaque with symmetric side panels
   ============================================================ */
.plaque-hero {
  padding: 3.4rem 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(79, 122, 98, 0.16), transparent 70%),
    linear-gradient(180deg, var(--patina-ink), var(--bg));
}

.plaque-hero__row {
  display: grid;
  gap: 1.4rem;
  align-items: stretch;
}

@media (min-width: 940px) {
  .plaque-hero__row { grid-template-columns: 1fr 1.35fr 1fr; gap: 1.6rem; }
}

/* Side panels: symmetric bronze mirrors */
.side-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  background:
    var(--hammered),
    linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
}

@media (max-width: 939px) {
  .side-panel { flex-direction: row; }
  .side-panel figure { flex: 1; }
}

.side-panel figure { margin: 0; }

.side-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  filter: sepia(0.25);
}

/* Central plaque */
.inscribed-plaque {
  position: relative;
  text-align: center;
  padding: 2.6rem 1.8rem;
  background:
    var(--hammered),
    linear-gradient(170deg, #5d4526, var(--bronze-deep));
  border: 3px double var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-in), 0 16px 36px rgba(0, 0, 0, 0.55);
}

.inscribed-plaque::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(220, 192, 122, 0.4);
  border-radius: 2px;
  pointer-events: none;
}

.inscribed-plaque__lead {
  max-width: 52ch;
  margin: 0 auto 1.6rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.inscribed-plaque__seal {
  margin: 1.5rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--patina);
}

/* ============================================================
   5. CTA button — gilded ingot on bronze
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-ink);
  background: linear-gradient(160deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  border-radius: var(--radius-sm);
  padding: 0.95rem 2.6rem;
  border: 1px solid var(--gold-deep);
  box-shadow: var(--shadow-out), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cta-ember 3.2s ease-in-out infinite;
}

.cta-btn:hover,
.cta-btn:focus {
  color: var(--bronze-ink);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(176, 141, 62, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

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

@keyframes cta-ember {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

/* ============================================================
   6. Medallions (symbols), cast table, panels
   ============================================================ */
.medallion-row {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 0; padding: 0;
  list-style: none;
}

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

.medallion {
  position: relative;
  text-align: center;
  padding: 1.2rem 0.5rem 1.1rem;
  background:
    var(--hammered),
    linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
  transition: transform 0.3s ease;
}

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

.medallion img {
  width: 88px; height: 88px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  border: 3px solid var(--gold-deep);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.medallion__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gold-soft);
}

/* Cast bronze rules table */
.cast-table {
  margin-top: 0.4rem;
  padding: 1.3rem;
  background: linear-gradient(180deg, var(--patina-deep), var(--patina-ink));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-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(176, 141, 62, 0.2);
  font-size: 0.94rem;
}

.rules-table th {
  background: linear-gradient(180deg, #7a5c35, var(--bronze-deep));
  color: var(--gold-soft);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.rules-table tbody tr:hover { background: rgba(176, 141, 62, 0.08); }

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

/* Symmetric feature panels */
.panel-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

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

.bronze-panel {
  position: relative;
  padding: 1.5rem 1.6rem 1.4rem;
  background:
    var(--hammered),
    linear-gradient(160deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
  transition: transform 0.3s ease;
}

.bronze-panel:hover { transform: translateY(-5px); }

/* Corner rivets */
.bronze-panel i.rv {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rivet);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.bronze-panel i.rv--1 { top: 8px; left: 8px; }
.bronze-panel i.rv--2 { top: 8px; right: 8px; }
.bronze-panel i.rv--3 { bottom: 8px; left: 8px; }
.bronze-panel i.rv--4 { bottom: 8px; right: 8px; }

.bronze-panel__title { margin-bottom: 0.35rem; }

.bronze-panel__text { font-size: 0.93rem; color: var(--text-muted); margin: 0; }

/* Patina review cards */
.patina-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr;
}

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

.patina-card {
  padding: 1.6rem 1.5rem 1.4rem;
  background: linear-gradient(170deg, var(--patina), var(--patina-deep));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out), inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.patina-card__stars { color: var(--gold-soft); letter-spacing: 0.18em; margin-bottom: 0.6rem; }

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

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

/* ============================================================
   7. 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: '◆'; font-size: 0.6rem; margin-right: 0.4rem; color: var(--gold); align-self: center; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumbs [aria-current="page"] { color: var(--gold-soft); }

/* ============================================================
   8. Archive — bronze plate 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(--hammered),
    linear-gradient(170deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-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; filter: sepia(0.2); }

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

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

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

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

.post-card__meta {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: var(--bronze-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  padding: 0.16rem 0.6rem;
}

.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: 700;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  box-shadow: var(--shadow-out);
}

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

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

/* ============================================================
   9. 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.7rem 1.7rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-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(176, 141, 62, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

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

.cta-strip {
  text-align: center;
  padding: 2.6rem 1rem;
  margin: 2rem 0 3rem;
  border: 3px double var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-in);
  background: radial-gradient(ellipse at center, rgba(176, 141, 62, 0.14), transparent 70%);
}

/* ============================================================
   10. Footer — bronze base with gold seam
   ============================================================ */
.site-footer {
  border-top: 3px double var(--gold-deep);
  background: linear-gradient(180deg, var(--bronze-ink), #120d07);
  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-soft); }

.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(183, 168, 134, 0.55); }

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