/* ============================================================
   Poker Academy — dark felt-and-gold theme
   Deep black-green felt, warm white text, gold trim, chip red accents
   ============================================================ */
:root {
  --bg: #0b0f0d;
  --bg2: #0f1613;
  --felt: #14372b;
  --felt2: #1a4a38;
  --gold: #d4af37;
  --gold2: #b8912e;
  --red: #c0392b;
  --text: #f2ead8;
  --muted: #a9b4a9;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(212, 175, 55, 0.32);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, var(--felt) 0%, var(--bg) 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f6e6a0, var(--gold) 45%, var(--gold2) 80%);
  color: #1a1206; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 235, 170, 0.55);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
  letter-spacing: 0.5px;
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 0.3px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.nav-link:hover { color: var(--gold); }
.lang-select {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--card-border); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; outline: none;
}
.lang-select:focus { border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--felt) 0%, var(--felt2) 34%, var(--bg) 100%);
  border-bottom: 1px solid var(--card-border);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(192, 57, 43, 0.55), rgba(192, 57, 43, 0) 65%);
  width: 340px; height: 340px; pointer-events: none;
}
.hero::before { top: -120px; right: 8%; }
.hero::after { bottom: -160px; left: 4%; width: 420px; height: 420px; }
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 64px 24px 44px; position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-block; font-size: 13px; letter-spacing: 1.5px;
  color: var(--gold); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 18px;
  background: rgba(11, 15, 13, 0.5);
}
.hero-title { font-size: clamp(30px, 5vw, 50px); line-height: 1.22; font-weight: 800; margin-bottom: 12px; }
.hero-title-line { display: block; }
.accent-text { color: var(--gold); text-shadow: 0 0 26px rgba(212, 175, 55, 0.35); }
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto 28px; font-size: 16px; }
.hero-search {
  position: relative; max-width: 560px; margin: 0 auto 34px;
}
.hero-search input {
  width: 100%; padding: 14px 20px 14px 46px;
  background: rgba(11, 15, 13, 0.72); border: 1px solid var(--card-border);
  border-radius: 999px; color: var(--text); font-size: 15px; outline: none;
  backdrop-filter: blur(8px);
}
.hero-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
.hero-search input::placeholder { color: var(--muted); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold); }

.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px; padding: 12px 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  min-width: 96px;
}
.stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

/* ---------- Main & tabs ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 34px 24px 60px; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tab-btn {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted); border-radius: 999px; padding: 9px 20px; font-size: 14px;
  transition: all 0.2s;
}
.tab-btn:hover { border-color: var(--gold); color: var(--text); }
.tab-btn.active {
  background: linear-gradient(120deg, var(--gold), var(--gold2));
  color: #1a1206; border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.filter-left { display: flex; flex-wrap: wrap; gap: 22px; }
.filter-item { display: flex; align-items: center; gap: 10px; }
.filter-label { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 13px;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.active {
  background: var(--red); border-color: var(--red); color: #fff; font-weight: 600;
  box-shadow: 0 3px 12px rgba(192, 57, 43, 0.4);
}
.count-line { font-size: 13px; color: var(--muted); margin: 6px 2px 18px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(212, 175, 55, 0.12);
}
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(11, 15, 13, 0.78); color: var(--gold);
  border: 1px solid var(--card-border);
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-size: 17px; font-weight: 700; }
.card-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.4px; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card-chips span {
  font-size: 12px; color: var(--text); background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25); border-radius: 6px; padding: 2px 8px;
}
.card-foot { margin-top: auto; }
.card-more { font-size: 13px; color: var(--gold); font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- No results ---------- */
.no-results { text-align: center; padding: 60px 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--card-border); background: var(--bg2); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px; text-align: center; }
.footer-text { font-size: 12px; color: var(--muted); max-width: 860px; margin: 0 auto 8px; line-height: 1.8; }
.footer-copy { font-size: 13px; color: var(--gold); letter-spacing: 0.5px; }

/* ---------- Detail ---------- */
.detail-back { display: inline-block; margin-bottom: 18px; color: var(--gold); font-size: 14px; }
.detail-hero { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; }
.hero-bg { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.detail-hero-inner {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(to top, rgba(11, 15, 13, 0.92) 20%, rgba(11, 15, 13, 0.25) 70%, transparent);
  padding: 26px;
}
.detail-kicker { display: flex; gap: 8px; flex-wrap: wrap; }
.kicker-chip {
  background: rgba(11, 15, 13, 0.72); color: var(--gold);
  border: 1px solid var(--card-border); border-radius: 999px;
  padding: 3px 12px; font-size: 12px;
}
.detail-title { margin-top: 10px; font-size: clamp(24px, 4vw, 38px); font-weight: 800; }
.detail-body { display: flex; flex-direction: column; gap: 22px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px; padding: 13px 15px;
}
.tile-label { font-size: 11px; color: var(--muted); letter-spacing: 0.6px; margin-bottom: 4px; }
.tile-value { font-size: 15px; font-weight: 600; word-break: break-word; }
.tile-value.accent { color: var(--gold); }
.section { }
.section-title {
  font-size: 18px; font-weight: 700; margin-bottom: 10px;
  padding-left: 12px; border-left: 3px solid var(--gold);
}
.section-text { color: var(--muted); font-size: 15px; }
.owner-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px; padding: 16px 18px;
}
.steps-list, .mistakes-list { margin: 0; padding: 0 0 0 20px; color: var(--muted); font-size: 15px; }
.steps-list li, .mistakes-list li { margin-bottom: 8px; }
.facts-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.facts-list li {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: 14px;
}
.facts-list li::before { content: "◆"; color: var(--red); margin-right: 8px; font-size: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery img { border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.09); }
.source-list { display: flex; flex-direction: column; gap: 6px; }
.source-list a { color: var(--gold); font-size: 13px; word-break: break-all; }
.source-list a:hover { text-decoration: underline; }
.notfound { text-align: center; padding: 70px 0; }
.notfound h2 { margin-bottom: 8px; }
.notfound p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Glossary page ---------- */
.glossary-search { position: relative; max-width: 560px; margin: 0 auto 30px; }
.glossary-search input {
  width: 100%; padding: 14px 20px 14px 46px;
  background: rgba(11, 15, 13, 0.72); border: 1px solid var(--card-border);
  border-radius: 999px; color: var(--text); font-size: 15px; outline: none;
}
.glossary-search input:focus { border-color: var(--gold); }
.glossary-hint { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.glossary-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 12px;
  padding: 16px 18px; transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 6px;
}
.glossary-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.glossary-term { font-size: 17px; font-weight: 800; color: var(--gold); }
.glossary-zh { font-size: 15px; font-weight: 700; }
.glossary-desc { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-inner { padding: 10px 16px; }
  .brand-name { font-size: 16px; }
  .hero-inner { padding: 44px 18px 32px; }
  .stat { padding: 10px 16px; min-width: 82px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
