/*
Theme Name: QQ88Asia Info
Theme URI: https://www.qq-88asia.com/
Author: QQ88Asia
Author URI: https://www.qq-88asia.com/
Description: Tema informasi SEO ramah mesin pencari untuk QQ88Asia - panduan dan informasi slot online Indonesia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
License: GNU General Public License v2 or later
Text Domain: qq88asia-info
*/

:root {
  --bg: #0d0e13;
  --bg2: #12141c;
  --panel: #171a24;
  --panel2: #1d2130;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --txt: #eef0f7;
  --mut: #a3a9c0;
  --pri: #705dd3;
  --pri2: #8b7cf0;
  --grd: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 60%, #5b21b6 100%);
  --grd2: linear-gradient(135deg, #705dd3 0%, #4c3aa8 100%);
  --gold: #ffde4d;
  --ok: #34d399;
  --bad: #f87171;
  --rad: 14px;
  --rad2: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-body: 'Chakra Petch', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Raleway', 'Chakra Petch', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pri2); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
blockquote {
  margin: 1.4em 0; padding: 0.9em 1.2em;
  border-left: 4px solid var(--pri);
  background: var(--panel);
  border-radius: 0 var(--rad2) var(--rad2) 0;
  color: var(--mut);
}
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-family: Consolas, monospace; background: var(--panel); border-radius: 6px; }
code { padding: 0.15em 0.45em; font-size: 0.92em; }
pre { padding: 1em; overflow: auto; }
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95em; }
th, td { padding: 0.65em 0.8em; border: 1px solid var(--line); text-align: left; }
th { background: var(--panel2); font-weight: 600; color: #fff; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(13, 14, 19, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.hd-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.custom-logo { max-height: 44px; width: auto; }
.brand-text {
  font-family: var(--font-head); font-weight: 900; font-size: 1.35rem;
  letter-spacing: 0.5px; color: #fff;
}
.brand-text span { color: var(--gold); }
.brand-sub { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 500; letter-spacing: 2.5px; color: var(--mut); text-transform: uppercase; }
#nav-toggle { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 8px;
  color: var(--txt); font-weight: 500; font-size: 0.95rem;
}
.main-nav a:hover, .main-nav .current_page_item > a, .main-nav .current-menu-item > a {
  background: rgba(112, 93, 211, 0.18); color: #fff; text-decoration: none;
}
.hd-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hd-search { display: flex; }
.hd-search input[type="search"] {
  background: var(--panel); border: 1px solid var(--line2); color: var(--txt);
  border-radius: 8px 0 0 8px; padding: 8px 12px; font-family: inherit; font-size: 0.9rem; width: 170px;
}
.hd-search input[type="submit"] {
  border: 0; border-radius: 0 8px 8px 0; padding: 8px 14px; cursor: pointer;
  background: var(--grd2); color: #fff; font-family: inherit; font-weight: 600; font-size: 0.85rem;
}
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grd); color: #fff; box-shadow: 0 6px 20px rgba(112, 93, 211, 0.4); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(112, 93, 211, 0.55); }
.btn-gold { background: linear-gradient(135deg, #ffe066, #f5c518); color: #201a02; box-shadow: 0 6px 20px rgba(245, 197, 24, 0.35); }
.btn-gold:hover { color: #201a02; }
.btn-ghost { background: transparent; border: 1px solid var(--line2); color: var(--txt); }
.btn-ghost:hover { border-color: var(--pri2); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }

/* ===== Marquee ===== */
.notice-bar {
  background: linear-gradient(90deg, rgba(112, 93, 211, 0.25), rgba(139, 92, 246, 0.12));
  border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
}
.notice-inner { display: inline-block; padding: 8px 0; animation: qqmarquee 28s linear infinite; color: var(--gold); font-size: 0.88rem; font-weight: 500; }
.notice-inner b { color: #fff; }
@keyframes qqmarquee { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(112, 93, 211, 0.2), transparent 60%),
    var(--bg2);
  border-bottom: 1px solid var(--line);
  padding: 58px 0 54px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.hero .kicker {
  display: inline-block; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(255, 222, 77, 0.12); border: 1px solid rgba(255, 222, 77, 0.35);
  color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
}
.hero h1 { margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a78bfa, #ffde4d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--mut); font-size: 1.05rem; max-width: 56ch; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  background: var(--panel); border: 1px solid var(--line);
}
.badge svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; }
.hero-media { position: relative; }
.hero-card {
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--rad);
  padding: 20px; box-shadow: var(--shadow);
}
.hero-card img { border-radius: var(--rad2); display: block; }
.hero-card figcaption { font-size: 0.78rem; color: var(--mut); margin-top: 10px; text-align: center; }

/* ===== Sections ===== */
.section { padding: 54px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.sec-kicker {
  display: inline-block; color: var(--pri2); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 8px;
}
.sec-head p { color: var(--mut); margin-bottom: 0; }

/* cards */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 22px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--mut); font-size: 0.93rem; margin-bottom: 0; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(112, 93, 211, 0.16); border: 1px solid rgba(139, 92, 246, 0.3); margin-bottom: 14px;
}
.icon-tile svg { width: 22px; height: 22px; color: var(--pri2); }

/* provider grid */
.prov-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.prov-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad2);
  padding: 14px 10px; text-align: center; transition: border-color 0.15s ease, transform 0.15s ease;
  display: block; color: var(--txt);
}
.prov-item:hover { border-color: rgba(139, 92, 246, 0.55); transform: translateY(-3px); text-decoration: none; color: #fff; }
.prov-item img { display: block; margin: 0 auto 8px; max-height: 44px; width: auto; }
.prov-item .pname { font-size: 0.82rem; font-weight: 600; }
.prov-mono {
  width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 12px;
  background: var(--grd2); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}

/* banner slides */
.slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slide-card { position: relative; border-radius: var(--rad); overflow: hidden; border: 1px solid var(--line); display: block; }
.slide-card img { display: block; width: 100%; transition: transform 0.3s ease; }
.slide-card:hover img { transform: scale(1.04); }

/* steps */
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grd);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(112, 93, 211, 0.35);
}

/* posts */
.post-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-3px); }
.post-card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-meta { font-size: 0.78rem; color: var(--mut); margin-bottom: 8px; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.post-card h3 a { color: #fff; }
.post-card h3 a:hover { color: var(--pri2); text-decoration: none; }
.post-card .pc-ex { color: var(--mut); font-size: 0.9rem; flex: 1; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
details.faq {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad2);
  margin-bottom: 12px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: #fff;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--pri2); font-weight: 700; }
details.faq[open] summary::after { content: '–'; }
details.faq[open] { border-color: rgba(139, 92, 246, 0.4); }
details.faq .faq-a { padding: 0 20px 18px; color: var(--mut); }
details.faq .faq-a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(112, 93, 211, 0.25), rgba(13, 14, 19, 0.9)), var(--panel);
  border: 1px solid rgba(139, 92, 246, 0.35); border-radius: var(--rad);
  padding: 36px; text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--mut); max-width: 62ch; margin: 0 auto 22px; }

/* ===== Page / Single ===== */
.page-head { padding: 40px 0 6px; }
.crumbs { font-size: 0.82rem; color: var(--mut); margin-bottom: 14px; }
.crumbs a { color: var(--mut); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 7px; opacity: 0.5; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; padding-bottom: 56px; }
.content-area { min-width: 0; }
.entry-header { margin-bottom: 20px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: var(--mut); margin-bottom: 12px; }
.entry-content { font-size: 1.01rem; }
.entry-content h2 { margin-top: 1.6em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: var(--rad2); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.82rem; color: var(--mut); text-align: center; margin-top: 8px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(139, 92, 246, 0.5); text-underline-offset: 3px; }
.entry-content .wp-block-table { margin: 1.4em 0; }
.toc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad2);
  padding: 16px 20px; margin: 0 0 1.6em; font-size: 0.92rem;
}
.toc strong { display: block; margin-bottom: 8px; color: #fff; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--pri2); }
.author-box, .post-nav, .related-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 22px; margin-top: 28px;
}
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; }
.author-box p, .related-box p { margin-bottom: 0; }
.related-box ul { list-style: none; padding: 0; margin: 0; }
.related-box li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.related-box li:last-child { border-bottom: 0; }

/* sidebar */
.sidebar .widget {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 22px; margin-bottom: 20px;
}
.widget-title { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; padding: 0; margin: 0; font-size: 0.93rem; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--txt); }
.widget a:hover { color: var(--gold); }

/* ===== Footer ===== */
.site-footer {
  background: #0a0b0f; border-top: 1px solid var(--line);
  padding: 46px 0 0; margin-top: 20px;
}
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 34px; }
.ft-grid h4 { font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.ft-grid p { color: var(--mut); font-size: 0.9rem; }
.ft-grid ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.ft-grid li { margin-bottom: 9px; }
.ft-grid a { color: var(--mut); }
.ft-grid a:hover { color: var(--gold); }
.ft-prov { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ft-prov span {
  padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--mut);
}
.ft-bottom {
  border-top: 1px solid var(--line); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--mut);
}
.ft-18 { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bad); color: var(--bad); font-weight: 700; font-size: 0.72rem; flex-shrink: 0; }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 70px 20px 90px; }
.error-404 .code {
  font-family: var(--font-head); font-weight: 900; font-size: clamp(4.5rem, 14vw, 8.5rem); line-height: 1;
  background: linear-gradient(135deg, #a78bfa, #ffde4d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.error-404 h1 { font-size: 1.5rem; }
.error-404 p { color: var(--mut); max-width: 52ch; margin: 0 auto 26px; }
.error-404 .hd-search { justify-content: center; margin-bottom: 30px; }
.error-404 .hd-search input[type="search"] { width: 260px; }
.err-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .prov-grid { grid-template-columns: repeat(4, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  #nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line2); cursor: pointer; order: 3; }
  #nav-toggle span, #nav-toggle span::before, #nav-toggle span::after {
    content: ''; display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative;
  }
  #nav-toggle span::before { position: absolute; top: -6px; }
  #nav-toggle span::after { position: absolute; top: 6px; }
  #nav-toggle:checked span { background: transparent; }
  #nav-toggle:checked span::before { transform: translateY(6px) rotate(45deg); }
  #nav-toggle:checked span::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #101218; border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
  }
  #nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .hd { flex-wrap: wrap; padding: 10px 0; }
  .hd-search { order: 4; display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .slides { grid-template-columns: 1fr; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 40px 0; }
}
@media (max-width: 540px) {
  .prov-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 38px; }
  .hero-cta .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .notice-inner { animation: none; }
  * { transition: none !important; }
}
