/*
Theme Name: Moban 8-2-29
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 chuyên san tạp chí buổi tối: trang bìa toàn màn, chuyên đề con, dải trích dẫn trên nền xanh đêm ánh hổ phách.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Design tokens — evening magazine
   ============================================================ */
:root {
  --bg: #12151d;
  --bg-deep: #0c0e14;
  --surface: #1b1f2b;
  --surface-alt: #232839;
  --text: #e9e3d3;
  --text-muted: #a8a496;
  --amber: #d9a441;
  --amber-soft: #f0cf8a;
  --blue: #8a97b0;
  --line: rgba(217, 164, 65, 0.22);
  --line-cool: rgba(138, 151, 176, 0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --font-display: 'Newsreader', Georgia, 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.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 62% 44% at 18% -8%, rgba(217, 164, 65, 0.1), transparent 62%),
    radial-gradient(ellipse 58% 42% at 90% 2%, rgba(138, 151, 176, 0.12), transparent 64%),
    radial-gradient(circle at 50% 118%, rgba(217, 164, 65, 0.07), transparent 55%);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--amber-soft);
}

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

h1 { font-size: clamp(1.8rem, 4.8vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3.4vw, 2.05rem); }
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;
}

.section {
  padding: 3.4rem 0;
}

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

.mag-title {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-style: italic;
  color: var(--amber);
}

.mag-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.mag-title--light {
  color: var(--text);
}

.mag-lede {
  max-width: 64ch;
  color: var(--text-muted);
}

/* ============================================================
   3. Header — date bar + dotted nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 14, 20, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.date-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--line-cool);
}

.date-bar__cell {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}

.date-bar__cell--edition {
  color: var(--amber);
}

@media (max-width: 640px) {
  .date-bar__cell {
    display: none;
  }

  .date-bar__inner {
    justify-content: center;
  }
}

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

.site-brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  box-shadow: 0 0 16px rgba(217, 164, 65, 0.3);
}

.site-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text);
  line-height: 1.1;
}

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

.nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 0;
}

.site-nav {
  display: none;
}

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

.site-nav__list li + li::before {
  content: '·';
  color: var(--blue);
  padding: 0 0.15rem;
}

.site-nav__link {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: var(--amber);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: transparent;
  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(--amber);
  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;
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.site-nav.is-open .site-nav__list {
  flex-direction: column;
  padding: 0.5rem 0;
}

.site-nav.is-open .site-nav__list li + li::before {
  content: none;
}

.site-nav.is-open .site-nav__link {
  display: block;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px dotted var(--line-cool);
}

@media (min-width: 960px) {
  .nav-row {
    justify-content: center;
  }

  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   4. Cover story
   ============================================================ */
.cover {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 14, 20, 0.96) 6%, rgba(12, 14, 20, 0.55) 46%, rgba(12, 14, 20, 0.25) 100%),
    radial-gradient(ellipse at 20% 100%, rgba(217, 164, 65, 0.16), transparent 60%);
}

.cover__body {
  position: relative;
  z-index: 2;
  padding: 5rem 0 3.4rem;
}

.cover__kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--amber);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.cover__title {
  max-width: 26ch;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 700;
  color: #fdf9ef;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.cover__standfirst {
  max-width: 62ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--text);
}

/* ============================================================
   5. Sub-features
   ============================================================ */
.sub-features__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
}

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

@media (min-width: 1024px) {
  .sub-features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-panel {
  position: relative;
  background: linear-gradient(165deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-panel:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.feature-panel__media {
  position: relative;
}

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

.feature-panel__num {
  position: absolute;
  left: 0.9rem;
  bottom: -0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

.feature-panel__title {
  margin: 1.4rem 1.2rem 0.35rem;
}

.feature-panel__text {
  margin: 0 1.2rem 1.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============================================================
   6. Symbol dossier
   ============================================================ */
.symbol-dossier {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.symbol-dossier__grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

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

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

.symbol-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 1.3rem 0.9rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.symbol-card:hover {
  border-color: var(--amber);
  transform: translateY(-5px);
}

.symbol-card img {
  width: 86px;
  height: 86px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--amber);
}

.symbol-card__name {
  font-size: 1.15rem;
  color: var(--amber);
  margin-bottom: 0.25em;
}

.symbol-card__note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   7. Quote band
   ============================================================ */
.quote-band {
  padding: 3.2rem 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(217, 164, 65, 0.12), transparent 70%);
  border-top: 1px dotted var(--line);
  border-bottom: 1px dotted var(--line);
  text-align: center;
}

.quote-band__text {
  max-width: 34ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.5;
  color: var(--text);
}

.quote-band__source {
  margin: 1.2rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ============================================================
   8. Reader voices
   ============================================================ */
.voices__grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

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

.voice-card {
  margin: 0;
  background: var(--surface);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.4rem 1.2rem;
}

.voice-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
}

.voice-card__author {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-soft);
}

/* ============================================================
   9. CTA
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: var(--bg-deep);
  background: linear-gradient(160deg, var(--amber-soft), var(--amber) 60%);
  border-radius: 999px;
  padding: 0.9rem 2.4rem;
  box-shadow: 0 12px 30px rgba(217, 164, 65, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover,
.cta-btn:focus {
  color: var(--bg-deep);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(217, 164, 65, 0.45);
}

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

.cta-strip {
  text-align: center;
  padding: 2.6rem 1rem;
  margin: 2rem 0 3rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at center, rgba(217, 164, 65, 0.09), transparent 72%);
}

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

/* ============================================================
   10. 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(--amber);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--amber);
}

.breadcrumbs [aria-current="page"] {
  color: var(--amber);
}

/* ============================================================
   11. Archive — magazine cards with issue tags
   ============================================================ */
.page-head {
  padding: 2.4rem 0 0.8rem;
}

.page-head .issue-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--amber);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 0.9rem;
}

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

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

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

.post-card {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber);
}

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

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

.post-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}

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

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

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

.post-card__meta {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.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: 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(--line-cool);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
}

.page-numbers.current {
  background: var(--amber);
  color: var(--bg-deep);
  border-color: var(--amber);
}

.page-numbers:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.page-numbers.current:hover {
  color: var(--bg-deep);
}

/* ============================================================
   12. Single post — feature article
   ============================================================ */
.single-head {
  padding: 2.6rem 0 1.2rem;
  text-align: center;
}

.single-head h1 {
  max-width: 24ch;
  margin-inline: auto;
}

.single-standfirst {
  max-width: 58ch;
  margin: 0 auto 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  border-top: 1px dotted var(--line-cool);
  border-bottom: 1px dotted var(--line-cool);
  padding: 0.6rem 0;
  margin: 1.2rem auto 0;
  max-width: 640px;
}

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

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

.entry-content img {
  border-radius: var(--radius);
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 0 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--amber-soft);
}

.entry-content blockquote::before {
  content: '❝';
  display: block;
  font-size: 1.8rem;
  color: var(--amber);
}

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

/* ============================================================
   13. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-deep), #07080d);
  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-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
}

.site-footer__nav a:hover {
  color: var(--amber);
}

.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(168, 164, 150, 0.6);
}

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