/*
Theme Name: Moban 8-2-41
Description: Chủ đề WordPress Glassmorphism cho cổng thông tin game Bầu Cua Tôm Cá (Hoo Hey How) – biến thể Tinh Vân: vũ trụ tím đen, vòng biểu tượng xuyên tâm quanh lõi bàn chơi, thẻ sao nghiêng ngẫu hứng, tối ưu SEO.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Nebula design tokens
   ============================================================ */
:root {
  --bg: #0d0620;
  --bg-deep: #070313;
  --ink: #f3edff;
  --ink-muted: #b3a5d6;
  --violet: #a855f7;
  --magenta: #e879f9;
  --nova: #f0abfc;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --edge: rgba(232, 121, 249, 0.26);
  --edge-hi: rgba(255, 255, 255, 0.4);
  --blur: 16px;
  --radius: 30px;
  --radius-sm: 18px;
  --shadow: 0 28px 60px rgba(5, 2, 16, 0.65);
  --font-display: 'Urbanist', 'Be Vietnam Pro', sans-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.7;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* Fixed nebula starfield layer */
.nebula-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 12%, rgba(255, 255, 255, 0.4) 0 1.5px, transparent 3px),
    radial-gradient(circle at 82% 42%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 64%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.35) 0 1.5px, transparent 3px),
    radial-gradient(circle at 12% 86%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px),
    radial-gradient(ellipse 56% 40% at 22% -8%, rgba(168, 85, 247, 0.32), transparent 64%),
    radial-gradient(ellipse 50% 44% at 82% 6%, rgba(232, 121, 249, 0.2), transparent 62%),
    radial-gradient(ellipse 70% 46% at 50% 110%, rgba(168, 85, 247, 0.18), transparent 60%),
    linear-gradient(180deg, #1b0d38 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

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

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

a:hover {
  color: #fff;
}

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

h1 { font-size: clamp(1.75rem, 4.6vw, 2.9rem); }
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 {
  padding: 3.4rem 0;
}

.star-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.35rem 1.05rem;
  margin-bottom: 0.9rem;
  background: rgba(232, 121, 249, 0.08);
}

.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(--violet), var(--magenta), transparent);
}

.section-lead {
  max-width: 70ch;
  color: var(--ink-muted);
}

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

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

.card {
  overflow: hidden;
}

/* ============================================================
   3. Header — floating glass bar detached from the top edge
   ============================================================ */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 60;
  background: transparent;
  border: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.1rem;
  background: rgba(19, 9, 42, 0.6);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge-hi), 0 0 34px rgba(168, 85, 247, 0.18);
}

.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 20px rgba(232, 121, 249, 0.45);
}

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

.site-brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  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.48rem 0.92rem;
  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: #1c0a35;
  background: linear-gradient(140deg, var(--nova), var(--magenta));
}

.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(--magenta);
  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(13, 6, 32, 0.9);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  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;
  }
}

/* ============================================================
   4. Hero orb
   ============================================================ */
.hero-orb-wrap {
  padding: 3rem 0 1.6rem;
}

.hero-orb {
  position: relative;
  text-align: center;
  padding: 3rem clamp(1.4rem, 5vw, 4rem) 2.8rem;
  background:
    radial-gradient(ellipse 60% 55% at 50% -10%, rgba(168, 85, 247, 0.25), transparent 70%),
    var(--glass);
}

.hero-orb::before {
  content: '';
  position: absolute;
  inset: -40px -60px auto;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(232, 121, 249, 0.22), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-orb__title {
  max-width: 24ch;
  margin-inline: auto;
  background: linear-gradient(115deg, #faf6ff 20%, var(--nova) 55%, var(--violet) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-orb__lead {
  max-width: 66ch;
  margin-inline: auto;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* ============================================================
   5. CTA button
   ============================================================ */
.cta-btn {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #1c0a35;
  background: linear-gradient(150deg, #ffe3fd, var(--nova) 45%, var(--violet));
  border-radius: 999px;
  padding: 0.95rem 2.6rem;
  box-shadow: 0 14px 36px rgba(232, 121, 249, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: nova-pulse 2.8s ease-in-out infinite;
}

.cta-btn:hover,
.cta-btn:focus {
  color: #1c0a35;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 48px rgba(232, 121, 249, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

@keyframes nova-pulse {
  0%, 100% { box-shadow: 0 14px 36px rgba(232, 121, 249, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
  50% { box-shadow: 0 14px 54px rgba(232, 121, 249, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
}

/* ============================================================
   6. Orbital symbol ring
   ============================================================ */
.orbit-head {
  text-align: center;
  margin-bottom: 2rem;
}

.orbit-head .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.orbit-head .section-lead {
  margin-inline: auto;
}

.orbit-ring {
  position: relative;
}

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

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

.orbit-core {
  display: none;
}

.satellite__orb {
  text-align: center;
  padding: 1.1rem 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.satellite__orb:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 22px 44px rgba(232, 121, 249, 0.3), inset 0 1px 0 var(--edge-hi);
}

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

.satellite__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--nova);
}

/* Desktop: radial placement around a central core */
@media (min-width: 980px) {
  .orbit-ring {
    height: 640px;
  }

  .orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 220px;
    height: 220px;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-strong);
    border: 1px solid var(--edge);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    box-shadow: var(--shadow), inset 0 1px 0 var(--edge-hi), 0 0 60px rgba(168, 85, 247, 0.25);
  }

  .orbit-core img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
  }

  .orbit-core__label {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--nova);
  }

  .orbit-satellites {
    display: block;
    position: absolute;
    inset: 0;
  }

  .satellite {
    position: absolute;
    width: 176px;
  }

  .satellite--1 { top: 0; left: 50%; transform: translateX(-50%); }
  .satellite--2 { top: 14%; right: 4%; }
  .satellite--3 { bottom: 14%; right: 4%; }
  .satellite--4 { bottom: 0; left: 50%; transform: translateX(-50%); }
  .satellite--5 { bottom: 14%; left: 4%; }
  .satellite--6 { top: 14%; left: 4%; }
}

/* ============================================================
   7. Constellation feature cards
   ============================================================ */
.constellation-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
}

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

.star-card {
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.star-card:hover {
  border-color: var(--magenta);
  transform: rotate(0deg) translateY(-6px) !important;
}

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

.star-card__body {
  padding: 1.15rem 1.3rem 1.45rem;
}

.star-card__title {
  margin-bottom: 0.35rem;
}

.star-card__text {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

@media (min-width: 900px) {
  .star-card--1 { transform: rotate(-1.6deg); }
  .star-card--2 { transform: rotate(1.4deg) translateY(18px); }
  .star-card--3 { transform: rotate(1.8deg); }
  .star-card--4 { transform: rotate(-1.2deg) translateY(18px); }
}

/* ============================================================
   8. Rules panel, reviews, CTA
   ============================================================ */
.rules-core {
  display: flex;
  justify-content: center;
}

.rules-panel {
  width: min(860px, 100%);
  padding: 2.4rem clamp(1.2rem, 4vw, 2.8rem) 2.6rem;
}

.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(232, 121, 249, 0.14);
  font-size: 0.94rem;
}

.rules-table th {
  background: rgba(168, 85, 247, 0.18);
  color: #f4dcff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.rules-table tbody tr:hover {
  background: rgba(232, 121, 249, 0.07);
}

.review-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

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

.review-orb {
  margin: 0;
  padding: 1.6rem 1.4rem;
}

.review-orb__stars {
  color: var(--nova);
  letter-spacing: 0.15em;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.review-orb__text {
  font-style: italic;
  font-size: 0.95rem;
}

.review-orb__author {
  margin: 0.9rem 0 0;
  font-weight: 700;
  color: var(--magenta);
  font-size: 0.88rem;
}

.cta-nebula {
  padding-bottom: 3rem;
}

.cta-orb {
  text-align: center;
  padding: 2.8rem 1.4rem;
  background:
    radial-gradient(ellipse at center, rgba(232, 121, 249, 0.14), transparent 70%),
    var(--glass);
}

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

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

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

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

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

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

.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) rotate(0.6deg);
  border-color: var(--magenta);
}

.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: 46%;
  background: linear-gradient(180deg, transparent, rgba(13, 6, 32, 0.74));
  pointer-events: none;
}

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

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

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

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

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

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

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  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(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-numbers.current {
  background: linear-gradient(140deg, var(--nova), var(--magenta));
  color: #1c0a35;
  border-color: transparent;
}

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

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

/* ============================================================
   11. Single post
   ============================================================ */
.single-orb {
  margin-top: 1.4rem;
  padding: 2.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: 0;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  background: radial-gradient(ellipse at 50% 120%, rgba(168, 85, 247, 0.35), transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(13, 6, 32, 0.6));
  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(--magenta);
  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-orb--end {
  margin-top: 0.4rem;
}

/* ============================================================
   12. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--edge);
  background: rgba(7, 3, 19, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  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(--nova);
}

.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(179, 165, 214, 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(--nova);
  outline-offset: 3px;
}
