/*
Theme Name: Moban 8-2-19
Description: Chủ đề WordPress tùy chỉnh cho trung tâm đánh giá game Bầu Cua Tôm Cá (Hoo Hey How) – bản radar sáu chiều, tông tím than công nghệ với hình lục giác CSS tĩnh.
Version: 1.0
Author: Moban82
Text Domain: moban82
*/

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

/* ============================================================
   1. Design tokens — violet plasma + hex cyan
   ============================================================ */
:root {
  --bg: #171129;
  --bg-deep: #0f0b1d;
  --panel: #221a3d;
  --panel-alt: #2b2150;
  --violet: #8f7bff;
  --hex-cyan: #46e3c9;
  --hex-cyan-soft: #9df3e4;
  --warm: #ffb45e;
  --text: #ede9fb;
  --text-muted: #a99ecb;
  --line: rgba(143, 123, 255, 0.28);
  --radius: 14px;
  --shadow: 0 16px 42px rgba(6, 4, 16, 0.55);
  --font-display: 'Archivo', '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(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 55% 45% at 85% -10%, rgba(143, 123, 255, 0.22), transparent 62%),
    radial-gradient(ellipse 45% 40% at 5% 15%, rgba(70, 227, 201, 0.08), transparent 60%),
    radial-gradient(circle at 50% 115%, rgba(143, 123, 255, 0.1), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

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

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

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

h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.15rem); }
h3 { font-size: clamp(1.08rem, 2.3vw, 1.3rem); }

p {
  margin: 0 0 1.2em;
}

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

.section {
  padding: 3.4rem 0;
}

.section--dusk {
  background: linear-gradient(180deg, rgba(34, 26, 61, 0.85), rgba(34, 26, 61, 0.35));
  border-block: 1px solid rgba(143, 123, 255, 0.16);
}

.dim-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(90deg, var(--hex-cyan), var(--violet));
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.dim-kicker--ghost {
  color: var(--hex-cyan);
  background: transparent;
  border: 1px solid var(--hex-cyan);
}

.section-title {
  letter-spacing: -0.01em;
}

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

/* ============================================================
   3. Header + indexed nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 11, 29, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

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

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

.site-brand__logo {
  width: 46px;
  height: 46px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

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

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

.site-nav--index {
  display: none;
}

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

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__idx {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--hex-cyan);
  opacity: 0.85;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: var(--text);
  background: rgba(143, 123, 255, 0.16);
}

.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: 12px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--hex-cyan);
  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--index.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--hex-cyan);
  box-shadow: var(--shadow);
}

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

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

  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   4. Radar hero
   ============================================================ */
.radar-hero {
  padding: 3.4rem 0 3.2rem;
  border-bottom: 1px solid var(--line);
}

.radar-hero__grid {
  display: grid;
  gap: 2.6rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 940px) {
  .radar-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.radar-hero__lead {
  max-width: 58ch;
  color: var(--text-muted);
}

/* Static CSS hexagon radar (decorative) */
.radar-wrap {
  position: relative;
  width: min(380px, 86vw);
  margin-inline: auto;
  padding: 52px 0;
}

.radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.radar__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(143, 123, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(143, 123, 255, 0.35);
}

.radar__ring--100 {
  width: 100%;
  height: 100%;
  background: rgba(143, 123, 255, 0.07);
}

.radar__ring--75 {
  width: 75%;
  height: 75%;
  background: rgba(70, 227, 201, 0.05);
}

.radar__ring--50 {
  width: 50%;
  height: 50%;
  background: rgba(143, 123, 255, 0.09);
}

.radar__ring--25 {
  width: 25%;
  height: 25%;
  background: rgba(70, 227, 201, 0.1);
}

.radar__shape {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 6.4%, 88.1% 28%, 84.7% 70.1%, 50% 91.5%, 17% 71%, 13.8% 29%);
  background: linear-gradient(160deg, rgba(70, 227, 201, 0.5), rgba(143, 123, 255, 0.45));
}

.radar__labels {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.radar__label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.radar__label b {
  color: var(--hex-cyan);
  font-weight: 900;
  margin-left: 0.25rem;
}

.radar__label--top { top: 18px; left: 50%; transform: translateX(-50%); }
.radar__label--tr { top: 26%; right: -8px; }
.radar__label--br { bottom: 24%; right: -8px; }
.radar__label--bottom { bottom: 18px; left: 50%; transform: translateX(-50%); }
.radar__label--bl { bottom: 24%; left: -8px; }
.radar__label--tl { top: 26%; left: -8px; }

/* ============================================================
   5. Dimension cards
   ============================================================ */
.dim-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr;
  margin-top: 1.9rem;
}

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

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

.dim-card {
  background: linear-gradient(170deg, var(--panel-alt), var(--panel));
  border: 1px solid rgba(143, 123, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.dim-card:hover {
  transform: translateY(-5px);
  border-color: var(--hex-cyan);
}

.dim-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.dim-card__name {
  margin: 0;
}

.dim-card__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--hex-cyan);
}

.dim-card--giaodien .dim-card__num { color: var(--hex-cyan); }
.dim-card--tocdo .dim-card__num { color: var(--violet); }
.dim-card--amthanh .dim-card__num { color: var(--warm); }
.dim-card--luatchoi .dim-card__num { color: var(--hex-cyan); }
.dim-card--thanthien .dim-card__num { color: var(--violet); }
.dim-card--lehoi .dim-card__num { color: var(--warm); }

.dim-card__bar {
  display: block;
  height: 8px;
  margin: 0.8rem 0 0.9rem;
  border-radius: 999px;
  background: rgba(15, 11, 29, 0.7);
  overflow: hidden;
}

.dim-card__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hex-cyan), var(--violet));
}

.dim-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   6. Methodology + verdict split
   ============================================================ */
.method-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 940px) {
  .method-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.method-fig {
  margin: 0;
}

.method-fig img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.method-fig figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.verdict-split {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr;
  margin-top: 1.8rem;
}

@media (min-width: 800px) {
  .verdict-split {
    grid-template-columns: 1fr 1fr;
  }
}

.verdict-col {
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
}

.verdict-col--up {
  background: linear-gradient(160deg, rgba(70, 227, 201, 0.12), rgba(34, 26, 61, 0.6));
}

.verdict-col--down {
  background: linear-gradient(160deg, rgba(255, 180, 94, 0.1), rgba(34, 26, 61, 0.6));
}

.verdict-col--up h3 {
  color: var(--hex-cyan);
}

.verdict-col--down h3 {
  color: var(--warm);
}

.verdict-col p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ============================================================
   7. CTA
   ============================================================ */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(120deg, var(--hex-cyan), var(--violet));
  border-radius: 999px;
  padding: 0.9rem 2.5rem;
  box-shadow: 0 12px 34px rgba(70, 227, 201, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover,
.cta-btn:focus {
  color: var(--bg-deep);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(143, 123, 255, 0.4);
}

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

.cta-strip {
  text-align: center;
  padding: 2.6rem 1.2rem;
  margin: 2rem 0 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(70, 227, 201, 0.08), transparent 60%),
    radial-gradient(ellipse at 75% 85%, rgba(143, 123, 255, 0.1), transparent 60%),
    var(--panel);
}

/* ============================================================
   8. 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.45rem;
  color: var(--hex-cyan);
}

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

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

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

/* ============================================================
   9. Archive / posts
   ============================================================ */
.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);
  }
}

.post-card {
  overflow: hidden;
  padding: 0;
}

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

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

.hex-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 52px;
  height: 56px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--hex-cyan), var(--violet));
}

.hex-badge__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--bg-deep);
}

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

.post-card__mini-hex {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 41px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--hex-cyan), var(--violet));
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--bg-deep);
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

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

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

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

.post-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 3.6rem 1.4rem;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.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);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  background: var(--panel);
}

.page-numbers.current {
  background: linear-gradient(120deg, var(--hex-cyan), var(--violet));
  color: var(--bg-deep);
  border-color: transparent;
}

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

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

/* ============================================================
   10. Single post
   ============================================================ */
.single-head {
  padding: 2rem 0 1rem;
}

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

.single-meta__chip {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--bg-deep);
  background: linear-gradient(120deg, var(--hex-cyan), var(--violet));
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}

.radar-verdict {
  padding: 1.5rem 1.5rem;
  margin-bottom: 1.7rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--hex-cyan);
  border-radius: var(--radius);
  background: var(--panel);
}

.radar-verdict__title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hex-cyan);
  margin-bottom: 0.5rem;
}

.radar-verdict p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

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

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

.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(--violet);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

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

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-deep), #090614);
  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(--hex-cyan);
}

.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(169, 158, 203, 0.55);
}

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