/* ==========================================================================
   WorldMatch Malaysia — Design System
   Dark iGaming theme: neon violet + gold accents, glass cards, glow effects
   ========================================================================== */

:root {
  --bg-0: #0a0714;
  --bg-1: #0f0c1f;
  --bg-2: #161230;
  --bg-card: #17132b;
  --bg-card-hover: #1e1840;
  --border-soft: rgba(155, 120, 255, 0.16);
  --border-strong: rgba(155, 120, 255, 0.35);

  --violet: #8b5cf6;
  --violet-2: #a855f7;
  --pink: #ff3f8e;
  --gold: #ffb703;
  --gold-2: #ffd166;
  --cyan: #22d3ee;
  --green: #2bd576;
  --red: #ff4d6d;

  --text-0: #f5f3ff;
  --text-1: #cfc9e8;
  --text-2: #9d97bd;
  --text-3: #706a91;

  --grad-brand: linear-gradient(135deg, var(--violet) 0%, var(--pink) 55%, var(--gold) 100%);
  --grad-hero: radial-gradient(60% 60% at 20% 20%, rgba(139,92,246,0.35) 0%, transparent 60%),
               radial-gradient(50% 50% at 85% 15%, rgba(255,63,142,0.25) 0%, transparent 60%),
               radial-gradient(60% 60% at 50% 100%, rgba(34,211,238,0.15) 0%, transparent 60%);
  --grad-card-border: linear-gradient(135deg, rgba(139,92,246,0.6), rgba(255,63,142,0.2), rgba(255,183,3,0.5));

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 8px 30px rgba(139, 92, 246, 0.25);
  --shadow-card: 0 4px 24px rgba(4, 2, 15, 0.55);
  --maxw: 1200px;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text-0);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 8px; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--text-0); }

p { margin: 0 0 16px; color: var(--text-1); }
ul, ol { color: var(--text-1); padding-left: 22px; }
li { margin-bottom: 8px; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------------- Skip link ---------------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--violet); color: #fff; padding: 10px 16px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 7, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--text-0); }
.brand img { width: 36px; height: 36px; }
.brand .brand-my { color: var(--gold-2); font-weight: 700; font-size: 0.95em; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-1); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-2); }

.nav-cta {
  background: var(--grad-brand); color: #100826 !important; font-weight: 800;
  padding: 10px 20px; border-radius: 999px; font-size: 0.9rem;
  box-shadow: var(--shadow-glow);
}
.nav-cta:hover { filter: brightness(1.08); color: #100826 !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong); border-radius: 8px;
  width: 42px; height: 42px; color: var(--text-0); font-size: 1.3rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-1); flex-direction: column; align-items: flex-start;
    padding: 18px 20px; border-bottom: 1px solid var(--border-soft);
    display: none; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { align-self: flex-start; }
}

/* ---------------- Breadcrumbs ---------------- */
.breadcrumb-wrap { border-bottom: 1px solid var(--border-soft); background: var(--bg-1); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; margin: 0; font-size: 0.85rem; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--text-3); margin: 0; }
.breadcrumb a { color: var(--text-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb li[aria-current] { color: var(--text-1); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: var(--grad-hero), var(--bg-0); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy p.lead { font-size: 1.1rem; color: var(--text-1); max-width: 56ch; }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 13px 26px; border-radius: 999px; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--grad-brand); color: #100826; box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.07); color: #100826; }
.btn-outline { background: transparent; color: var(--text-0); border-color: var(--border-strong); }
.btn-outline:hover { background: rgba(139,92,246,0.12); color: var(--text-0); }

.stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.stat { min-width: 110px; }
.stat .num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--gold-2); }
.stat .lbl { font-size: 0.82rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------------- Sections ---------------- */
section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-alt { background: var(--bg-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* ---------------- Cards / Grids ---------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-card); transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--bg-card-hover); }
.card .icon { width: 46px; height: 46px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); margin-bottom: 0; font-size: 0.95rem; }

.category-card { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-soft); background: var(--bg-card); }
.category-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.category-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.category-card:hover .thumb img { transform: scale(1.06); }
.category-card .body { padding: 20px 22px 24px; }
.category-card .body h3 { margin-bottom: 8px; }
.category-card .body p { color: var(--text-2); font-size: 0.93rem; margin-bottom: 10px; }
.category-card .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ---------------- Badges / Tags ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.badge-violet { background: rgba(139,92,246,0.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.35); }
.badge-gold { background: rgba(255,183,3,0.12); color: var(--gold-2); border: 1px solid rgba(255,183,3,0.35); }
.badge-pink { background: rgba(255,63,142,0.12); color: #ff8fb8; border: 1px solid rgba(255,63,142,0.35); }
.badge-cyan { background: rgba(34,211,238,0.12); color: #67e8f9; border: 1px solid rgba(34,211,238,0.35); }
.badge-green { background: rgba(43,213,118,0.12); color: #6ee7a0; border: 1px solid rgba(43,213,118,0.35); }

/* ---------------- Feature glossary ---------------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }
.feature-item { display: flex; gap: 14px; padding: 18px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.feature-item .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-brand); margin-top: 8px; }
.feature-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.9rem; color: var(--text-2); margin: 0; }

/* ---------------- Table ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); font-size: 0.92rem; }
th { background: var(--bg-2); color: var(--text-0); font-family: var(--font-head); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td { color: var(--text-1); }

/* ---------------- FAQ ---------------- */
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--bg-card); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text-0); font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q::after { content: "+"; color: var(--gold-2); font-size: 1.3rem; flex: none; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 20px 20px; }
.faq-a p { color: var(--text-2); margin: 0; }

/* ---------------- Blog ---------------- */
.blog-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { font-size: 0.78rem; color: var(--text-3); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.blog-card p { color: var(--text-2); font-size: 0.92rem; flex: 1; }
.blog-card .readmore { margin-top: 12px; font-weight: 700; color: var(--gold-2); font-size: 0.88rem; }

.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-soft); margin: 24px 0 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--text-3); font-size: 0.88rem; margin: 18px 0 6px; }
.article-meta .author-chip { display: flex; align-items: center; gap: 8px; color: var(--text-1); font-weight: 600; }
.article-meta .author-chip img { width: 28px; height: 28px; border-radius: 50%; }
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 40px; }
.article-body h3 { margin-top: 26px; }
.article-body ul, .article-body ol { margin-bottom: 20px; }
.callout { background: var(--bg-card); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; }
.callout p { margin: 0; color: var(--text-1); font-size: 0.94rem; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }

.toc { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px 24px; margin: 30px 0; max-width: 760px; }
.toc h2 { font-size: 1.05rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--text-1); font-weight: 600; }
.toc a:hover { color: var(--gold-2); }

/* ---------------- Author box ---------------- */
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 22px; margin: 34px 0; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author-box h3 { margin-bottom: 4px; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.author-box a { font-weight: 700; }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(135deg, #1c1440, #2a1245); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 44px; text-align: center; margin: 10px 0; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 56ch; margin: 0 auto 22px; color: var(--text-1); }

/* ---------------- Responsible gaming strip ---------------- */
.rg-strip { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding: 16px 0; font-size: 0.82rem; color: var(--text-3); text-align: center; }
.rg-strip strong { color: var(--text-1); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--border-soft); padding: 50px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-2); font-size: 0.92rem; font-weight: 500; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-about p { color: var(--text-2); font-size: 0.9rem; }
.footer-disclaimer { border-top: 1px solid var(--border-soft); margin-top: 36px; padding-top: 20px; font-size: 0.78rem; color: var(--text-3); line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 0.8rem; color: var(--text-3); }

/* ---------------- Misc ---------------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-weight: 800; font-size: 0.85rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.icon-check { color: var(--green); font-weight: 800; margin-right: 8px; }
.icon-x { color: var(--red); font-weight: 800; margin-right: 8px; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
