/* ============================================================
   Mesin Slot Demo — Main Stylesheet
   Dark casino theme: purple/gold palette
   ============================================================ */

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

:root {
  --bg:          #080010;
  --surface:     #110820;
  --surface-2:   #1A0B30;
  --border:      rgba(255,200,60,.18);
  --border-hover:rgba(255,200,60,.50);
  --text:        #F0E8FF;
  --muted:       rgba(200,180,240,.65);
  --gold:        #FFCC00;
  --gold-2:      #FF8C00;
  --purple-1:    #8B2FC9;
  --purple-2:    #C060FF;
  --green:       #00FFAA;
  --radius:      12px;
  --radius-btn:  50px;
  --max-w:       1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 70px; /* room for bottom-nav on mobile */
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple-1); border-radius: 3px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(8,0,16,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2.5s linear infinite;
  white-space: nowrap;
  letter-spacing: .5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(255,200,60,.1);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 20px 60px;
}

/* Hero with banner image */
.hero.has-banner {
  background-image:
    radial-gradient(ellipse 70% 55% at 25% 40%, rgba(139,47,201,.55) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 78% 65%, rgba(255,140,0,.35) 0%, transparent 65%),
    linear-gradient(rgba(8,0,16,.72), rgba(8,0,16,.82)),
    url('assets/img/banner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(139,47,201,.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(255,140,0,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--purple-2), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  margin-bottom: 16px;
}

.hero p {
  position: relative;
  font-size: clamp(14px, 2.5vw, 17px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.btn-primary {
  display: inline-block;
  position: relative;
  padding: 13px 36px;
  border-radius: var(--radius-btn);
  border: none;
  background: linear-gradient(90deg, var(--purple-1), var(--purple-2), var(--purple-1));
  background-size: 200% 100%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(139,47,201,.55);
  transition: transform .15s, box-shadow .15s;
  animation: btnPulse 2.5s ease infinite;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 32px rgba(139,47,201,.8);
}

/* Money-site CTA */
.btn-cta-money {
  display: inline-block;
  position: relative;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  border: 2px solid rgba(255,200,60,.55);
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2));
  background-size: 200% 100%;
  color: #1a0010;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 4px 24px rgba(255,160,0,.45);
  transition: transform .15s, box-shadow .15s;
  animation: shimmer 2.5s linear infinite;
}

.btn-cta-money:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 32px rgba(255,160,0,.7);
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 16px;
  scrollbar-width: none;
  max-width: var(--max-w);
  margin: 0 auto;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);
  background: rgba(255,200,60,.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: rgba(255,200,60,.55);
  color: var(--gold);
  background: rgba(255,200,60,.1);
  box-shadow: 0 0 10px rgba(255,200,60,.2);
}

/* ============================================================
   GAME GRID SECTION
   ============================================================ */
.game-grid-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 20px 32px;
}

.game-grid-section > h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 4px;
}

.game-grid-section > h2 span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (min-width: 480px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .game-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(5, 1fr); } }

/* ── Game Card ── */
.game-card {
  background: linear-gradient(160deg, rgba(25,10,50,.9), rgba(15,5,30,.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139,47,201,.35);
  border-color: var(--border-hover);
}

.game-card a { display: block; }

.game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.game-card:hover .game-thumb img {
  transform: scale(1.06);
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,0,30,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}

.game-card:hover .game-overlay { opacity: 1; }

.btn-play {
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  background: linear-gradient(90deg, var(--purple-1), var(--purple-2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(139,47,201,.5);
}

.game-info {
  padding: 10px 12px 12px;
}

.game-info h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.game-provider {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.game-rtp {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0,255,170,.1);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ── Placeholder for missing images ── */
.game-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 36px;
  color: var(--purple-2);
  background: linear-gradient(160deg, rgba(30,10,60,.8), rgba(20,5,40,.9));
}

.game-thumb-placeholder span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(255,200,60,.06);
  color: var(--gold);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255,200,60,.18);
  border-color: rgba(255,200,60,.5);
}

.page-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

#pageIndicator {
  font-size: 13px;
  color: var(--muted);
  min-width: 110px;
  text-align: center;
}

/* ============================================================
   INFO STRIP (trust badges)
   ============================================================ */
.info-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  padding: 28px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.info-badge-icon {
  font-size: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer a {
  color: var(--muted);
  transition: color .2s;
}

.site-footer a:hover { color: var(--gold); }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ============================================================
   BOTTOM NAV (mobile only)
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: 56px;
  background: rgba(8,0,16,.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bottom-nav-list {
  display: flex;
  height: 100%;
  list-style: none;
}

.bottom-nav-list li {
  flex: 1;
}

.bottom-nav-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  transition: color .2s;
}

.bottom-nav-list a:hover,
.bottom-nav-list a.active { color: var(--gold); }

.bottom-nav-icon { font-size: 20px; }

@media (max-width: 767px) {
  .bottom-nav { display: block; }
  .nav-links   { display: none; }
  body          { padding-bottom: 70px; }
}

/* ============================================================
   GAME PAGE — BREADCRUMB
   ============================================================ */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(200,180,240,.35); }
.breadcrumb .current { color: var(--text); }

/* ============================================================
   GAME PAGE — HERO
   ============================================================ */
.game-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 20px 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.game-hero-img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--surface-2);
}

.game-hero-img-placeholder {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.game-hero-meta { flex: 1; min-width: 220px; }

.game-hero-meta h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}

.game-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.stat {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 3px;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.btn-open-demo {
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  border: none;
  background: linear-gradient(90deg, var(--purple-1), var(--purple-2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(139,47,201,.5);
  transition: transform .15s, box-shadow .15s;
}

.btn-open-demo:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(139,47,201,.75);
}

/* ============================================================
   GAME PAGE — DESCRIPTION
   ============================================================ */
.game-description {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 32px;
}

.game-description h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.game-description p {
  color: rgba(220,210,240,.85);
  line-height: 1.75;
  font-size: 14px;
  margin-bottom: 12px;
}

/* ============================================================
   GAME PAGE — FAQ
   ============================================================ */
.faq-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 32px;
}

.faq-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.faq-section details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s;
}

.faq-section details[open] {
  border-color: rgba(255,200,60,.4);
}

.faq-section summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-section summary::-webkit-details-marker { display: none; }

.faq-section summary::after {
  content: '›';
  font-size: 18px;
  color: var(--gold);
  transition: transform .25s;
  flex-shrink: 0;
}

.faq-section details[open] summary::after {
  transform: rotate(90deg);
}

.faq-section details p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 20px 40px;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s, border-color .2s;
  max-width: calc(var(--max-w) - 40px);
}

.btn-back:hover {
  color: var(--gold);
  border-color: rgba(255,200,60,.4);
}

/* ============================================================
   STATIC PAGES (tentang, kebijakan-privasi)
   ============================================================ */
.static-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.static-page h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.static-page .lead {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

.static-page h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.static-page p,
.static-page li {
  font-size: 14px;
  color: rgba(220,210,240,.85);
  line-height: 1.8;
  margin-bottom: 10px;
}

.static-page ul,
.static-page ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(139,47,201,.5); }
  50%       { box-shadow: 0 4px 36px rgba(139,47,201,.8), 0 0 0 4px rgba(139,47,201,.15); }
}
