/*
Theme Name: Moban 8-2-31
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 ngoại bản tabloid: dải tin khẩn, tiêu đề khổng lồ nghiêng, danh sách tít dày và con dấu trả thưởng trên nền đỏ đô.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Design tokens — red-head tabloid
   ============================================================ */
:root {
  --paper: #faf5e9;
  --paper-deep: #f1e8d2;
  --ink: #141414;
  --ink-soft: #4c463c;
  --red: #c8102e;
  --red-deep: #8f0b21;
  --yellow: #f5c518;
  --line: #141414;
  --line-soft: #cfc5ad;
  --radius: 0px;
  --shadow: 5px 5px 0 var(--ink);
  --font-display: 'PT Serif', Georgia, serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --wrap: 1160px;
}

/* ============================================================
   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(--ink);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(-45deg, rgba(200, 16, 46, 0.03) 0 2px, transparent 2px 14px),
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(245, 197, 24, 0.14), transparent 62%);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--red-deep);
  text-decoration: underline;
}

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

h1 { font-size: clamp(1.8rem, 4.8vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2.4vw, 1.25rem); }

p {
  margin: 0 0 1.2em;
}

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

.section {
  padding: 2.8rem 0;
}

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

.tab-title {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--red);
  padding: 0.5rem 1.1rem;
  transform: skewX(-6deg);
  margin: 0 0 1.4rem;
}

.tab-title--invert {
  background: var(--yellow);
  color: var(--ink);
}

/* ============================================================
   3. Header — red mast band + stacked menu
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--red);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.25);
}

.mast-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

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

.site-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
}

.site-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.05;
}

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

.mast-band__stamp {
  display: none;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 0.25rem 0.7rem;
  transform: rotate(-3deg);
}

@media (min-width: 760px) {
  .mast-band__stamp {
    display: inline-block;
  }
}

.site-nav {
  display: none;
  background: var(--ink);
}

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

.site-nav__link {
  display: block;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  border-right: 1px solid rgba(250, 245, 233, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
}

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

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  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: 3px solid var(--yellow);
}

.site-nav.is-open .site-nav__list {
  flex-direction: column;
}

.site-nav.is-open .site-nav__link {
  border-right: 0;
  border-bottom: 1px solid rgba(250, 245, 233, 0.16);
  padding: 0.8rem 1rem;
  text-align: center;
}

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

  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   4. Breaking strip
   ============================================================ */
.breaking {
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 26px, #e8b90f 26px 52px);
  border-bottom: 3px solid var(--ink);
}

.breaking__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.breaking__flag {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--ink);
  padding: 0.2rem 0.9rem;
  transform: skewX(-8deg);
}

.breaking__text {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

/* ============================================================
   5. Skewed splash headline
   ============================================================ */
.splash {
  padding: 3.6rem 0 3rem;
  overflow: hidden;
}

.splash__inner {
  position: relative;
}

.splash__skew {
  transform: rotate(-2deg);
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
  padding: 2.4rem 2rem;
  max-width: 900px;
}

.splash__title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}

.splash__sub {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ============================================================
   6. Dense headline list
   ============================================================ */
.headlist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 4px solid var(--ink);
}

.headlist__row {
  display: grid;
  gap: 0.2rem 1.2rem;
  grid-template-columns: 1fr;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 2px solid var(--ink);
  transition: background 0.2s ease;
}

.headlist__row:hover {
  background: var(--paper-deep);
}

@media (min-width: 760px) {
  .headlist__row {
    grid-template-columns: 64px 110px minmax(0, 1fr);
  }
}

.headlist__time {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.headlist__tag {
  display: inline-block;
  justify-self: start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--yellow);
  padding: 0.1rem 0.5rem;
}

.headlist__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}

/* ============================================================
   7. Focus story
   ============================================================ */
.focus {
  background: var(--paper-deep);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

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

@media (min-width: 900px) {
  .focus__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

.focus__media {
  margin: 0;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--paper);
  padding: 8px;
  transform: rotate(1.5deg);
}

.focus__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.focus__lead {
  font-size: 1.04rem;
}

.focus__points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus__points li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.94rem;
}

.focus__points li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ============================================================
   8. Symbol strip & stamps
   ============================================================ */
.symbol-strip {
  background: var(--ink);
  padding: 2.4rem 0;
}

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

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

.symbol-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--paper);
  border: 3px solid var(--yellow);
  padding: 0.55rem 0.8rem;
  transform: skewX(-6deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.symbol-chip:hover {
  transform: skewX(-6deg) translateY(-4px);
  box-shadow: 4px 4px 0 var(--yellow);
}

.symbol-chip img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.symbol-chip span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

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

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

.stamp {
  border: 3px dashed var(--red);
  background: var(--paper);
  padding: 1.4rem;
  text-align: center;
  transform: rotate(-1deg);
  transition: transform 0.25s ease;
}

.stamp:nth-child(2) {
  transform: rotate(1deg);
}

.stamp:hover {
  transform: rotate(0) scale(1.03);
}

.stamp__mult {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  line-height: 80px;
  margin-bottom: 0.9rem;
}

.stamp__text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   9. CTA
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 0.85rem 2.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover,
.cta-btn:focus {
  color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--red);
  text-decoration: none;
}

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

.cta-strip {
  text-align: center;
  padding: 2.4rem 1rem;
  margin: 2rem 0 3rem;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--red);
  background: var(--paper);
}

.cta-strip p {
  color: var(--ink-soft);
}

/* ============================================================
   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(--ink-soft);
}

.breadcrumbs li + li::before {
  content: '■';
  font-size: 0.55rem;
  vertical-align: 3px;
  margin-right: 0.4rem;
  color: var(--red);
}

.breadcrumbs a {
  color: var(--ink-soft);
}

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

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

/* ============================================================
   11. Archive — compact bulletin rows
   ============================================================ */
.page-head {
  padding: 2rem 0 0.8rem;
}

.bulletin {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 4px solid var(--ink);
}

.bulletin__row {
  display: grid;
  gap: 0.2rem 1.2rem;
  grid-template-columns: 1fr;
  padding: 0.9rem 0;
  border-bottom: 2px solid var(--ink);
}

@media (min-width: 760px) {
  .bulletin__row {
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: baseline;
  }
}

.bulletin__date {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.bulletin__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.2em;
}

.bulletin__title a {
  color: var(--ink);
}

.bulletin__title a:hover {
  color: var(--red);
  text-decoration: none;
}

.bulletin__excerpt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.bulletin__more {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bulletin__body {
  min-width: 0;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0.2rem 0 0.5em;
}

/* Generic post grid (index.php fallback) */
.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding: 1.2rem 0 2.4rem;
}

@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 {
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}

.post-card__body {
  padding: 1rem 1.1rem 1.3rem;
}

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

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

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

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}

.post-card__meta {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
}

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

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0 3rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.7rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  background: var(--paper);
}

.page-numbers.current {
  background: var(--red);
  color: #fff;
  border-color: var(--ink);
}

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

.page-numbers.current:hover {
  color: #fff;
}

/* ============================================================
   12. Single post — stamped bulletin article
   ============================================================ */
.single-head {
  padding: 2.2rem 0 1rem;
}

.single-stamp {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  border: 3px solid var(--red);
  padding: 0.35rem 1rem;
  transform: rotate(-2deg);
  margin-bottom: 1rem;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 3px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0.55rem 0;
  margin: 1rem 0 1.4rem;
}

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

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

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

.entry-content blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.4rem;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
  font-style: italic;
}

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

/* ============================================================
   13. Footer
   ============================================================ */
.site-footer {
  border-top: 4px solid var(--ink);
  background: var(--red-deep);
  color: var(--paper);
  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: rgba(250, 245, 233, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.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: rgba(250, 245, 233, 0.75);
}

.site-footer__disclaimer p {
  margin: 0.3em 0;
}

.site-footer__copy {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: rgba(250, 245, 233, 0.55);
}

/* ============================================================
   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: 3px solid var(--red);
  outline-offset: 3px;
}
