/*
Theme Name: Triton Asia
Theme URI: https://triton-poker.asia/
Author: Triton Poker Asia Editorial
Author URI: https://triton-poker.asia/about/
Description: Independent premium review theme for Triton Poker coverage. Dark high-stakes aesthetic, block-style layout, mobile-first.
Version: 1.4.2
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tritonasia
Tags: dark, one-column, custom-menu, featured-images, translation-ready, block-styles
*/

:root {
  --gold: #c9a45c;
  --gold-2: #e8d5a3;
  --gold-dim: rgba(201, 164, 92, 0.16);
  --ink: #0a0c10;
  --ink-2: #12151c;
  --ink-3: #1a1f28;
  --panel: #161a22;
  --line: rgba(232, 213, 163, 0.14);
  --text: #ede8dc;
  --muted: #a39b8a;
  --danger: #c45c5c;
  --ok: #7dba8a;
  --felt: #7c2433;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --header-h: 66px;
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
button, input, select { font-family: inherit; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  top: 8px; left: 8px; padding: 10px 14px; background: var(--gold); color: #111; z-index: 100000;
}

#page { min-height: 100vh; overflow-x: hidden; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}
.site-branding { flex-shrink: 0; }
.site-branding__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.custom-logo { width: 34px; height: 34px; }
.site-title {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--gold-2);
  font-weight: 700;
  line-height: 1;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  width: 44px; height: 44px;
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.main-navigation {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}
.nav-menu a {
  display: block;
  color: var(--text);
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 8px;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--gold-2);
  background: var(--gold-dim);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switcher { position: relative; }
.lang-switcher__btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.lang-switcher__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 180px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 20;
}
.lang-switcher__menu.is-open { display: block; }
.lang-switcher__menu a {
  display: block;
  padding: 8px 10px;
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
}
.lang-switcher__menu a:hover,
.lang-switcher__menu a.is-active { background: var(--gold-dim); color: var(--gold-2); }

/* Buttons */
.wp-block-button__link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #e8d5a3, #c9a45c);
  color: #1a1408 !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 164, 92, 0.22);
  text-decoration: none !important;
}
.btn:hover { filter: brightness(1.06); color: #000 !important; }
.btn--ghost {
  background: transparent;
  color: var(--gold-2) !important;
  border: 1px solid var(--gold);
  box-shadow: none;
}
.btn--full { width: 100%; }
.btn--sm { padding: 9px 14px; font-size: 13px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 22px 48px;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(201, 164, 92, 0.16), transparent 55%),
    linear-gradient(180deg, #0d1016 0%, #0a0c10 100%);
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: start;
}
.kicker {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  margin: 0 0 10px;
}
.hero h1,
.entry-header h1,
.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.14;
  margin: 0 0 20px;
  color: #f7f1e4;
}
.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin: 20px 0 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-card {
  background: rgba(22, 26, 34, 0.86);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-media img { width: 100%; height: 330px; object-fit: cover; }
.hero-media figcaption,
.wp-element-caption {
  font-size: 12px; color: var(--muted); padding: 8px 4px 0;
}

/* Promo chip */
.promo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b0d12;
  border: 1px dashed var(--gold);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.promo-code__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.promo-code__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  color: var(--gold-2);
  letter-spacing: 0.12em;
}
.promo-code__hint { font-size: 12px; color: var(--gold); }
.promo-code.is-copied { border-style: solid; background: rgba(125, 186, 138, 0.08); }

/* Layout */
.site-main { padding: 0 0 80px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.entry-content { max-width: 760px; }
.layout-split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: start;
}

.wp-block-group,
.content-section {
  margin: 0 0 42px;
}
.content-section h2,
.entry-content h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  margin: 0 0 16px;
}
.entry-content h3 { font-size: 20px; margin: 28px 0 10px; color: var(--gold-2); }
.entry-content p,
.content-section p { margin: 0 0 16px; color: #d9d2c4; }
.entry-content ul, .entry-content ol { padding-left: 20px; color: #d9d2c4; }
.entry-content li { margin: 0 0 8px; }

.notice,
.disclaimer-box {
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 14px;
}
.disclaimer-box { margin: 24px 0; }

/* Cards / tables */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stat-card,
.wp-block-column,
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.info-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--gold-2); }
.plus-minus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plus-minus ul { margin: 0; padding-left: 18px; }
.plus-minus__plus { border-color: rgba(125, 186, 138, 0.28); }
.plus-minus__minus { border-color: rgba(196, 92, 92, 0.28); }

.wp-block-table,
.table-wrap { overflow-x: auto; margin: 18px 0 28px; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
th { color: var(--gold); font-weight: 600; background: #12151b; }
td { color: #ddd6c8; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative;
  padding: 16px 16px 16px 62px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 12px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px; top: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1408;
  display: grid; place-items: center;
  font-weight: 700;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 10px;
  background: var(--panel);
}
.faq-item__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px;
  cursor: pointer;
}
.faq-item__a { display: none; padding: 0 16px 16px; color: var(--muted); }
.faq-item.is-open .faq-item__a { display: block; }

.sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.widget h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; }
.widget p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

.figure-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 8px 0 28px;
}
.figure-frame img { width: 100%; height: 320px; object-fit: cover; }
.wp-caption-text { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.cta-band {
  margin: 36px 0;
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(201, 164, 92, 0.16), rgba(124, 36, 51, 0.18)),
    var(--ink-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.related-links { display: grid; gap: 8px; }
.related-links a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}
.related-links a:hover { border-color: var(--gold); color: var(--gold-2); }

.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 10px 10px 10px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  width: 16px; height: 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  position: absolute; left: 8px; top: 12px;
}

.rg-box {
  font-size: 14px;
  color: var(--muted);
  background: #10131a;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

/* Footer */
.site-footer {
  background: #07080b;
  border-top: 1px solid var(--line);
  padding: 42px 0 24px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer h4 { color: var(--gold-2); margin: 0 0 12px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer a { color: #cfc6b4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-info {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 18px 22px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font-weight: 700;
  flex-shrink: 0;
}
.age-badge--sm { width: 28px; height: 28px; font-size: 11px; }
.site-disclaimer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 0 22px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { color: var(--gold-2); }

/* Language-specific typography tuning */
html[lang^="th"] body { line-height: 1.85; }
html[lang^="th"] .hero h1 { line-height: 1.4; }
html[lang^="ja"] .hero h1,
html[lang^="ko"] .hero h1 { line-height: 1.32; }
html[lang^="ja"] .site-title,
html[lang^="ko"] .site-title,
html[lang^="th"] .site-title { letter-spacing: 0.02em; font-size: 18px; }
html[lang^="ru"] .kicker { letter-spacing: 0.14em; }
html[lang^="ja"] .kicker,
html[lang^="ko"] .kicker,
html[lang^="th"] .kicker { letter-spacing: 0.06em; }
html[lang^="ja"] .btn,
html[lang^="ko"] .btn,
html[lang^="th"] .btn,
html[lang^="ru"] .btn { letter-spacing: 0; }
html[lang^="ja"] th, html[lang^="ja"] td,
html[lang^="ko"] th, html[lang^="ko"] td,
html[lang^="th"] th, html[lang^="th"] td { letter-spacing: 0; }

@media (max-width: 1160px) {
  .nav-menu a { padding: 8px 8px; font-size: 13px; }
  .site-title { font-size: 18px; }
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-navigation {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #0d1016;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .main-navigation.is-open { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; }
  .nav-menu a { padding: 12px 10px; font-size: 15px; }
  .header-cta { flex-direction: column; align-items: stretch; }
  .header-cta .btn, .lang-switcher__btn { width: 100%; }
  .hero__grid,
  .layout-split,
  .footer-grid,
  .card-grid,
  .plus-minus { grid-template-columns: 1fr; }
  .hero { padding: 26px 18px 32px; }
  .hero__grid { gap: 26px; }
  .hero-media img, .figure-frame img { height: 220px; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 18px 18px 26px; }
  .hero h1 { font-size: clamp(25px, 7.2vw, 32px); margin-bottom: 16px; }
  .lead { font-size: 16px; margin-top: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero-media img { height: 185px; }
  .figure-frame img { height: 190px; }
}

.wager-calc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 8px 0 28px;
}
.wager-calc h3 { margin: 0 0 8px; font-family: var(--serif); }
.wager-calc label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.wager-calc__input {
  background: #0b0d12;
  border: 1px solid var(--line);
  color: var(--gold-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 20px;
  width: 100%;
}
.wager-calc__out {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 0;
}
.wager-calc__out div {
  background: #0b0d12;
  border-radius: 12px;
  padding: 12px;
}
.wager-calc__out dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wager-calc__out dd { margin: 6px 0 0; font-size: 18px; color: var(--gold-2); font-weight: 700; }

@media (max-width: 640px) {
  .wager-calc__out { grid-template-columns: 1fr; }
}
