/*
Theme Name: Moban 8-2-38
Description: Chủ đề WordPress Glassmorphism cho cổng thông tin game Bầu Cua Tôm Cá (Hoo Hey How) – biến thể Hoàng Hôn: dải gradient cam hồng xếp lớp, thanh kính mờ ngang, điều hướng capsule lơ lửng, tối ưu SEO.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Sunset design tokens
   ============================================================ */
:root {
  --ink: #fff3e8;
  --ink-muted: #f0c9b8;
  --sun-orange: #ffb56b;
  --sun-pink: #ff7a8a;
  --sun-magenta: #e05a94;
  --plum: #4a1740;
  --plum-deep: #2b0e33;
  --glass: rgba(255, 240, 226, 0.1);
  --glass-strong: rgba(255, 240, 226, 0.16);
  --edge: rgba(255, 214, 178, 0.34);
  --edge-hi: rgba(255, 255, 255, 0.4);
  --blur: 14px;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 22px 48px rgba(43, 10, 38, 0.45);
  --font-display: 'Outfit', 'Be Vietnam Pro', sans-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(--plum-deep);
  overflow-x: hidden;
}

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

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

a:hover {
  color: #ffd9ae;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  color: #fff7ef;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.75rem, 4.6vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 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-lead {
  max-width: 70ch;
  color: var(--ink-muted);
}

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

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sun-orange), var(--sun-pink), transparent);
}

.sun-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sun-orange);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.35rem 1.05rem;
  margin-bottom: 0.9rem;
  background: rgba(255, 181, 107, 0.1);
}

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

/* ============================================================
   3. Layered sunset bands
   ============================================================ */
.band {
  padding: 3.2rem 0;
  border-top: 1px solid rgba(255, 214, 178, 0.14);
}

.band--dusk {
  background: linear-gradient(180deg, #3b1140 0%, #6f2352 100%);
}

.band--ember {
  background: linear-gradient(180deg, #6f2352 0%, #a03a58 100%);
}

.band--coral {
  background: linear-gradient(180deg, #a03a58 0%, #c85a54 100%);
}

.band--wine {
  background: linear-gradient(180deg, #4a1740 0%, #7c2b4e 100%);
}

.band__head {
  margin-bottom: 1.8rem;
}

/* Shared glass bar surface */
.glass-bar,
.card {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(145%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge-hi);
}

.card {
  overflow: hidden;
}

/* ============================================================
   4. Header — floating capsule nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 60;
  background: transparent;
  border: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 1rem;
  background: rgba(43, 14, 40, 0.55);
  border: 1px solid var(--edge);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge-hi);
}

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

.site-brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--edge-hi);
  box-shadow: 0 0 18px rgba(255, 181, 107, 0.4);
}

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

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

.site-nav {
  display: none;
}

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

.site-nav__link {
  display: block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: #4a1740;
  background: linear-gradient(140deg, var(--sun-orange), var(--sun-pink));
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--sun-orange);
  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: calc(100% + 8px);
  left: 4%;
  right: 4%;
  background: rgba(43, 14, 40, 0.88);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.site-nav.is-open .site-nav__link {
  padding: 0.8rem 1rem;
}

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

  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   5. Hero bar + carousel bar + stats bar
   ============================================================ */
.hero-bar {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.4rem clamp(1.4rem, 4vw, 2.8rem);
}

.hero-bar__title {
  background: linear-gradient(110deg, #fff7ef 15%, var(--sun-orange) 55%, var(--sun-pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-bar__lead {
  max-width: 64ch;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.hero-bar__cta {
  flex-shrink: 0;
  align-self: flex-start;
}

@media (min-width: 900px) {
  .hero-bar {
    flex-direction: row;
    align-items: center;
  }

  .hero-bar__cta {
    align-self: center;
  }
}

.media-bar {
  position: relative;
  padding: 0.8rem;
  margin-bottom: 1.6rem;
}

.media-bar .carousel__track {
  position: relative;
  aspect-ratio: 2560 / 1000;
  min-height: 200px;
  max-height: 540px;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}

.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: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel__dot {
  width: 30px;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 243, 232, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.carousel__dot.is-active {
  background: var(--sun-orange);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  padding: 1.4rem clamp(1rem, 3vw, 2rem);
}

.stats-bar__cell {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: center;
}

.stats-bar__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--sun-orange);
}

.stats-bar__label {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

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

/* ============================================================
   6. CTA button
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #4a1740;
  background: linear-gradient(150deg, #ffd9ae, var(--sun-orange) 45%, var(--sun-pink));
  border-radius: 999px;
  padding: 0.95rem 2.6rem;
  box-shadow: 0 14px 36px rgba(255, 122, 138, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cta-pulse 2.8s ease-in-out infinite;
}

.cta-btn:hover,
.cta-btn:focus {
  color: #4a1740;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 46px rgba(255, 122, 138, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

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

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 14px 36px rgba(255, 122, 138, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65); }
  50% { box-shadow: 0 14px 52px rgba(255, 122, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.65); }
}

/* ============================================================
   7. Alternating feature bars
   ============================================================ */
.feature-bars {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.feature-bar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.4rem clamp(1.2rem, 3vw, 2rem);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-bar:hover {
  transform: translateY(-4px);
  border-color: var(--sun-orange);
}

.feature-bar__media {
  flex-shrink: 0;
}

.feature-bar__media img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-inline: auto;
}

.feature-bar__title {
  margin-bottom: 0.4rem;
}

.feature-bar__text {
  color: var(--ink-muted);
  margin: 0;
}

@media (min-width: 820px) {
  .feature-bar {
    flex-direction: row;
    align-items: center;
  }

  .feature-bar:nth-child(even) {
    flex-direction: row-reverse;
  }

  .feature-bar__media img {
    margin-inline: 0;
  }
}

/* ============================================================
   8. Rules bar, symbols, quote bars
   ============================================================ */
.rules-bar {
  padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem) 2.4rem;
}

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

.rules-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--edge);
}

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

.rules-table th {
  background: rgba(255, 181, 107, 0.18);
  color: #ffe9d2;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.rules-table tbody tr:hover {
  background: rgba(255, 181, 107, 0.08);
}

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

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

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

.icon-tile {
  text-align: center;
  padding: 1.1rem 0.8rem;
  border-radius: var(--radius-sm) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-tile:hover {
  transform: translateY(-6px) rotate(1.5deg);
  box-shadow: 0 18px 36px rgba(255, 181, 107, 0.28), inset 0 1px 0 var(--edge-hi);
}

.icon-tile img {
  width: 84px;
  height: 84px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  border: 1px solid var(--edge-hi);
}

.icon-tile__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sun-orange);
}

.quote-bars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.quote-bar {
  margin: 0;
  padding: 1.4rem clamp(1.2rem, 3vw, 2rem);
}

.quote-bar__stars {
  color: var(--sun-orange);
  letter-spacing: 0.15em;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.quote-bar__text {
  font-style: italic;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.quote-bar__author {
  font-weight: 700;
  color: var(--sun-pink);
  font-size: 0.88rem;
}

/* ============================================================
   9. Breadcrumbs
   ============================================================ */
.breadcrumbs {
  padding: 1.2rem 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-muted);
}

.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.4rem;
  color: var(--sun-orange);
}

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

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

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

/* ============================================================
   10. Archive / posts
   ============================================================ */
.page-head {
  padding: 2.2rem 0 0.6rem;
}

.page-head .head-bar {
  padding: 1.8rem clamp(1.2rem, 3vw, 2.2rem);
}

.archive-shell {
  padding: 1.6rem 0 3rem;
}

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

@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 {
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.post-card__media {
  position: relative;
  display: block;
}

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

.post-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(74, 23, 64, 0.7));
  pointer-events: none;
}

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

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

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

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

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

.post-card__meta {
  font-size: 0.8rem;
  color: var(--sun-pink);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.6rem;
  color: var(--ink-muted);
}

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.6rem 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(--edge);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-numbers.current {
  background: linear-gradient(140deg, var(--sun-orange), var(--sun-pink));
  color: #4a1740;
  border-color: transparent;
}

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

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

/* ============================================================
   11. Single post
   ============================================================ */
.single-bar {
  margin-top: 1.4rem;
  padding: 2rem clamp(1.2rem, 4vw, 2.6rem);
}

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

.single-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0.6rem 0 0;
}

.single-media img {
  width: 100%;
}

.single-media__veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: linear-gradient(180deg, transparent, rgba(74, 23, 64, 0.62));
  pointer-events: none;
}

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

.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(--sun-orange);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

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

.cta-bar {
  text-align: center;
  padding: 2.6rem 1.4rem;
  background:
    radial-gradient(ellipse at center, rgba(255, 181, 107, 0.14), transparent 70%),
    var(--glass);
}

/* ============================================================
   12. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--plum-deep), #1c0922);
  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(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.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(--ink-muted);
}

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

.site-footer__copy {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: rgba(240, 201, 184, 0.6);
}

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