/*
Theme Name: DK88
Theme URI: https://dash-king.casino
Author: DK88
Description: Tema kasino dalam talian DK88 untuk pasaran Malaysia (ms-MY). Reka bentuk gelap navy dengan hero biru, statistik, lobi permainan, FAQ akordion dan pengaki berbilang lajur. Mematuhi kontrak markup kandungan (pengoperasian selektor mengikut tag).
Version: 1.0.5
Requires at least: 6.4
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: dk88
*/

/* ---------- Design tokens ---------- */
:root{
  --bg:            #0a1a2e;
  --bg-alt:        #0e2338;
  --surface:       #123049;
  --surface-2:     #0f2740;
  --header-bg:     #0c1f37;
  --line:          #1d3b57;
  --line-soft:     #21456610;
  --ink:           #eaf1f9;
  --ink-2:         #ffffff;
  --muted:         #9fb4cc;
  --muted-2:       #7f97b3;
  --accent:        #4fd1e6;   /* cyan: numbers, logo 88, headings */
  --accent-ink:    #0a1a2e;
  --hero-a:        #2f60d8;
  --hero-b:        #4b83f4;
  --mint:          #7fe3d1;   /* primary CTA */
  --mint-hover:    #6ad3c0;
  --red:           #ff6b6b;

  --container: 1200px;
  --content: 860px;
  --radius: 12px;
  --radius-lg: 18px;
  --gap-1:8px; --gap-2:16px; --gap-3:24px; --gap-4:40px; --gap-5:64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
.dk-container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 20px; }
.dk-visually-hidden{ position:absolute!important; width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }
.skip-link{ position:absolute; left:-999px; }
.skip-link:focus{ left:16px; top:12px; background:var(--mint); color:var(--accent-ink); padding:8px 14px; border-radius:8px; z-index:1000; }

/* ---------- Buttons ---------- */
.dk-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:48px; padding:0 26px; border-radius:999px;
  font-weight:700; font-size:15px; letter-spacing:.02em;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:background .15s ease, transform .05s ease, border-color .15s ease;
}
.dk-btn:hover{ text-decoration:none; }
.dk-btn:active{ transform:translateY(1px); }
.dk-btn--primary{ background:var(--mint); color:var(--accent-ink); }
.dk-btn--primary:hover{ background:var(--mint-hover); }
.dk-btn--outline{ background:transparent; color:var(--ink-2); border-color:#3a5f85; }
.dk-btn--outline:hover{ border-color:var(--accent); color:var(--accent); }
.dk-btn--ghost{ background:transparent; color:var(--ink-2); border-color:#3a5f85; height:42px; padding:0 20px; }
.dk-btn--sm{ height:40px; padding:0 18px; font-size:14px; }

/* ---------- Header ---------- */
.dk-header{
  position:sticky; top:0; z-index:50;
  background:var(--header-bg);
  border-bottom:1px solid var(--line);
}
.dk-header__inner{ display:flex; align-items:center; gap:24px; height:76px; }
.dk-logo{ display:inline-flex; align-items:center; font-size:30px; font-weight:800; letter-spacing:.02em; color:var(--ink-2); }
.dk-logo b{ font-weight:800; }
.dk-logo span{ color:var(--accent); }
.dk-logo--img{ display:inline-flex; align-items:center; }
.dk-logo--img .custom-logo-link{ display:inline-flex; align-items:center; line-height:0; }
.dk-logo--img .custom-logo{ height:44px; width:auto; max-width:180px; display:block; }
@media (max-width:560px){ .dk-logo--img .custom-logo{ height:36px; } }
.dk-nav{ flex:1; }
.dk-nav ul{ list-style:none; display:flex; gap:34px; margin:0; padding:0; justify-content:center; }
.dk-nav a{ color:var(--ink-2); font-weight:600; font-size:15px; letter-spacing:.06em; text-transform:uppercase; opacity:.92; }
.dk-nav a:hover{ color:var(--accent); text-decoration:none; opacity:1; }
.dk-nav .current-menu-item>a, .dk-nav .current_page_item>a{ color:var(--accent); }
.dk-header__right{ display:flex; align-items:center; gap:16px; }
.dk-lang{ display:flex; align-items:center; gap:8px; color:var(--muted); font-weight:600; font-size:14px; }
.dk-lang a{ color:var(--ink-2); display:inline-flex; align-items:center; gap:6px; }
.dk-lang a:hover{ color:var(--accent); text-decoration:none; }
.dk-lang .sep{ opacity:.4; }
.dk-lang .is-active{ color:var(--accent); }
.dk-burger{ display:none; background:transparent; border:0; color:var(--ink-2); cursor:pointer; padding:8px; }
.dk-burger svg{ width:26px; height:26px; }

/* ---------- Hero ---------- */
.dk-hero{
  background:
    radial-gradient(1200px 500px at 15% -10%, #3a6df0 0%, transparent 60%),
    linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color:#fff;
}
.dk-hero__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; padding:64px 0 72px; }
.dk-hero h1{ font-size:46px; line-height:1.12; font-weight:800; margin:0 0 20px; letter-spacing:-.01em; }
.dk-hero__lead{ font-size:18px; line-height:1.6; color:#e7effb; max-width:560px; margin:0 0 28px; }
.dk-stats{ display:flex; flex-wrap:wrap; gap:36px; margin:0 0 30px; }
.dk-stat__num{ font-size:30px; font-weight:800; color:#bfeaff; line-height:1.1; }
.dk-stat__label{ font-size:15px; color:#dbe8fb; }
.dk-hero__cta{ display:flex; flex-wrap:wrap; gap:16px; }
.dk-hero__img{ width:100%; height:auto; display:block; border-radius:var(--radius-lg); border:1px solid #ffffff2e; box-shadow:0 30px 60px rgba(0,0,0,.35); }

/* ---------- Lobby mockup (original placeholder art) ---------- */
.dk-lobby{ background:var(--surface); border:1px solid #1c4b70; border-radius:var(--radius-lg); padding:16px; box-shadow:0 30px 60px rgba(0,0,0,.35); }
.dk-lobby__tabs{ display:flex; gap:10px; overflow:auto; padding-bottom:14px; border-bottom:1px solid var(--line); }
.dk-lobby__tab{ display:flex; flex-direction:column; align-items:center; gap:6px; min-width:66px; color:var(--muted); font-size:11px; text-align:center; }
.dk-lobby__ic{ width:38px; height:38px; border-radius:50%; background:var(--surface-2); display:flex; align-items:center; justify-content:center; color:var(--accent); border:1px solid var(--line); }
.dk-lobby__tab.is-active .dk-lobby__ic{ background:var(--accent); color:var(--accent-ink); }
.dk-lobby__tab.is-active{ color:var(--ink-2); }
.dk-lobby__title{ font-weight:700; margin:14px 4px 12px; font-size:15px; }
.dk-lobby__grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.dk-tile{ position:relative; aspect-ratio:1/1.12; border-radius:10px; overflow:hidden; border:1px solid #ffffff14; }
.dk-tile span{ position:absolute; left:0; right:0; bottom:0; font-size:10px; text-align:center; padding:3px 4px; background:linear-gradient(transparent,#000a); color:#fff; }
.dk-tile:nth-child(1){ background:linear-gradient(135deg,#3a4a63,#1c2740); }
.dk-tile:nth-child(2){ background:linear-gradient(135deg,#caa23a,#7a5a12); }
.dk-tile:nth-child(3){ background:linear-gradient(135deg,#2f7fae,#123049); }
.dk-tile:nth-child(4){ background:linear-gradient(135deg,#8a5cc0,#3a2a63); }
.dk-tile:nth-child(5){ background:linear-gradient(135deg,#d76bb0,#7a2a63); }
.dk-tile:nth-child(6){ background:linear-gradient(135deg,#5566c0,#232b63); }
.dk-tile:nth-child(7){ background:linear-gradient(135deg,#c0562f,#631f12); }
.dk-tile:nth-child(8){ background:linear-gradient(135deg,#c93f6b,#631f34); }
.dk-tile:nth-child(9){ background:linear-gradient(135deg,#cf5a2a,#7a2a12); }
.dk-tile:nth-child(10){ background:linear-gradient(135deg,#caa23a,#7a3a12); }

/* ---------- Section wrappers ---------- */
.dk-section{ padding:56px 0; }
.dk-section--alt{ background:var(--bg-alt); }
.dk-section__head{ text-align:center; margin-bottom:8px; }
.dk-section__head h2{ font-size:28px; margin:0; }

/* ---------- Content (respects markup contract) ---------- */
.dk-content{ max-width:var(--content); margin:0 auto; }
.dk-content h2{ font-size:26px; line-height:1.25; font-weight:700; color:var(--ink-2); margin:40px 0 16px; }
.dk-content h3{ font-size:19px; line-height:1.3; font-weight:600; color:var(--ink-2); margin:28px 0 10px; }
.dk-content h4{ font-size:17px; font-weight:600; color:var(--ink-2); margin:22px 0 8px; }
.dk-content p{ margin:0 0 16px; color:var(--ink); }
.dk-content a{ color:var(--accent); }
.dk-content strong{ color:var(--ink-2); }
.dk-content ul, .dk-content ol{ margin:0 0 18px; padding-left:22px; }
.dk-content li{ margin:6px 0; }
.dk-content img{ margin:24px auto; border-radius:10px; max-width:100%; height:auto; display:block; }
.dk-content>p:first-child{ font-size:18px; color:#d6e2f2; }

/* Tables */
.dk-content .table-responsive{
  overflow-x:auto; -webkit-overflow-scrolling:touch; margin:24px 0;
  border:1px solid var(--line); border-radius:12px;
  background:
    linear-gradient(to right, var(--surface-2) 30%, transparent),
    linear-gradient(to left, var(--surface-2) 30%, transparent) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.28), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.28), transparent) 100% 0;
  background-repeat:no-repeat; background-size:40px 100%,40px 100%,14px 100%,14px 100%;
  background-attachment:local,local,scroll,scroll;
}
.dk-content table{ border-collapse:collapse; width:100%; border:0; font-size:16px; min-width:520px; }
.dk-content th, .dk-content td{ border:0; border-bottom:1px solid var(--line); text-align:left; padding:12px 16px; vertical-align:top; }
.dk-content th{ background:var(--surface); color:var(--ink-2); font-weight:600; }
.dk-content tr:last-child td{ border-bottom:0; }
.dk-content tbody tr:nth-child(even) td, .dk-content tr:nth-child(even) td{ background:#0f24391a; }

/* Mandatory 18+/license paragraphs (last two <p><strong>) */
.dk-content>p:last-child, .dk-content>p:nth-last-child(2){
  background:var(--surface-2); border:1px solid var(--line); border-radius:10px;
  padding:14px 18px; font-size:15px; color:var(--muted);
}
.dk-content>p:nth-last-child(2){ margin-top:40px; }

/* FAQ accordion (JS-enhanced) */
.dk-faq-item{ border:1px solid var(--line); background:var(--surface-2); border-radius:12px; margin:12px 0; overflow:hidden; }
.dk-faq-q{ margin:0; }
.dk-faq-q button{ width:100%; text-align:left; background:transparent; border:0; color:var(--accent); font-size:17px; font-weight:600; padding:16px 18px; cursor:pointer; display:flex; justify-content:space-between; gap:12px; align-items:center; font-family:inherit; }
.dk-faq-q button::after{ content:"+"; font-size:22px; color:var(--muted); line-height:1; }
.dk-faq-item.is-open .dk-faq-q button::after{ content:"\2013"; }
.dk-faq-a{ padding:0 18px; max-height:0; overflow:hidden; transition:max-height .25s ease, padding .25s ease; }
.dk-faq-item.is-open .dk-faq-a{ padding:0 18px 16px; max-height:600px; }
.dk-faq-a p{ margin:0; color:var(--muted); }

/* Page title (non-front) */
.dk-page-hero{ background:var(--bg-alt); border-bottom:1px solid var(--line); padding:40px 0; }
.dk-page-hero h1{ margin:0; font-size:34px; }

/* ---------- Footer ---------- */
.dk-footer{ background:#081321; border-top:1px solid var(--line); padding:56px 0 28px; }
.dk-footer__cols{ display:grid; grid-template-columns:1.4fr 1fr; gap:36px; }
.dk-footer h4{ color:var(--accent); font-size:16px; margin:0 0 16px; }
.dk-footer p{ color:var(--muted); margin:0; max-width:340px; }
.dk-footer ul{ list-style:none; margin:0; padding:0; }
.dk-footer li{ margin:10px 0; }
.dk-footer li a{ color:var(--muted); }
.dk-footer li a:hover{ color:var(--accent); text-decoration:none; }
.dk-footer__note{ display:flex; gap:16px; align-items:flex-start; border-top:1px solid var(--line); margin-top:40px; padding-top:26px; color:var(--muted-2); font-size:14px; line-height:1.6; }
.dk-badge18{ flex:0 0 auto; width:52px; height:52px; border-radius:50%; border:2px solid var(--accent); color:var(--accent); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; }
.dk-footer__copy{ text-align:center; color:var(--muted-2); font-size:13px; margin-top:22px; }

/* ---------- Mobile menu panel ---------- */
.dk-mobile{ display:none; }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .dk-hero__grid{ grid-template-columns:1fr; gap:32px; padding:48px 0 56px; }
  .dk-hero h1{ font-size:38px; }
  .dk-lobby{ max-width:520px; }
}
@media (max-width:860px){
  .dk-nav, .dk-header__right .dk-btn, .dk-header__right .dk-lang{ display:none; }
  .dk-burger{ display:inline-flex; }
  .dk-footer__cols{ grid-template-columns:1fr 1fr; gap:28px; }
  .dk-mobile.is-open{ display:block; background:var(--header-bg); border-bottom:1px solid var(--line); }
  .dk-mobile ul{ list-style:none; margin:0; padding:12px 20px; }
  .dk-mobile li{ margin:0; }
  .dk-mobile a{ display:block; padding:12px 0; color:var(--ink-2); border-bottom:1px solid var(--line); text-transform:uppercase; font-size:14px; letter-spacing:.05em; }
  .dk-mobile__cta{ display:flex; gap:12px; padding:16px 20px; }
}
@media (max-width:560px){
  body{ font-size:16px; }
  .dk-header__inner{ height:64px; }
  .dk-logo{ font-size:26px; }
  .dk-hero h1{ font-size:30px; }
  .dk-hero__lead{ font-size:16px; }
  .dk-stats{ gap:20px 28px; }
  .dk-stat__num{ font-size:26px; }
  .dk-lobby__grid{ grid-template-columns:repeat(4,1fr); }
  .dk-footer__cols{ grid-template-columns:1fr; }
  .dk-section{ padding:40px 0; }
  .dk-content h2{ font-size:23px; }
}
