/* ============================================================
   Kingbet9 Casino – Main Stylesheet
   Theme: Dark background with gold accents
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #f0c040;
  --gold-dark:   #c9931f;
  --gold-light:  #ffe082;
  --bg-dark:     #0d0d12;
  --bg-card:     #16161f;
  --bg-section:  #111118;
  --text:        #e8e8ee;
  --text-muted:  #9090a8;
  --border:      #2a2a38;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --transition:  0.25s ease;
  --nav-height:  68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ── Container ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Logo image ── */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto 24px;
  filter: brightness(1.1);
}

/* ── Hero screenshot ── */
.hero-screenshot {
  margin-top: 40px;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.hero-screenshot a { display: block; }
.screenshot-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(240,192,64,0.25), 0 2px 16px rgba(0,0,0,0.6);
  border: 2px solid rgba(240,192,64,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.screenshot-img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 50px rgba(240,192,64,0.35), 0 4px 20px rgba(0,0,0,0.7);
}

/* ── Bonus screenshot ── */
.bonus-screenshot-wrap {
  max-width: 440px;
  width: 100%;
  margin: 0 auto 40px;
}
.bonus-screenshot-wrap a { display: block; }
.bonus-screenshot {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(240,192,64,0.2), 0 2px 12px rgba(0,0,0,0.5);
  border: 2px solid rgba(240,192,64,0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.bonus-screenshot:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(240,192,64,0.3), 0 4px 16px rgba(0,0,0,0.6);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,192,64,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 24px;
}
.btn-outline:hover {
  background: var(--gold);
  color: #000;
}

.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-section); }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

.section-cta { text-align: center; margin-top: 50px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(13,13,18,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo span { color: var(--gold); }
.logo:hover { color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--gold); background: rgba(240,192,64,0.08); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 20px 80px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(240,192,64,0.12) 0%, transparent 70%),
    linear-gradient(180deg, #0d0d12 0%, #0a0a15 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f0c040' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ============================================================
   OVERVIEW / INFO TABLE
   ============================================================ */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 40px;
}

.overview-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.info-table { width: 100%; border-collapse: collapse; }
.info-table th,
.info-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  background: rgba(240,192,64,0.08);
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  width: 40%;
}
.info-table td { color: var(--text); }
.info-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ============================================================
   FEATURES / WHY CHOOSE
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold-dark);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 12px; }
.feature-card p  { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   GAMES
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.game-img-placeholder {
  font-size: 4rem;
  background: linear-gradient(135deg, #1a1a28, #22222f);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.game-info { padding: 20px 22px; }
.game-info h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 6px; }
.game-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.game-info p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ============================================================
   BONUSES
   ============================================================ */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}
.bonus-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); }

.bonus-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.bonus-card h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 8px; }
.bonus-highlight {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.bonus-card ul {
  list-style: none;
  margin-bottom: 24px;
}
.bonus-card ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.bonus-card ul li:last-child { border-bottom: none; }
.bonus-card ul li::before { content: '✓  '; color: var(--gold); font-weight: 700; }

/* ============================================================
   PAYMENTS
   ============================================================ */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 48px;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.payment-card:hover { border-color: var(--gold-dark); transform: translateY(-3px); }
.payment-icon { font-size: 2.2rem; margin-bottom: 12px; }
.payment-card h3 { color: var(--gold); font-size: 1rem; margin-bottom: 10px; }
.payment-card p  { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

.table-wrap { overflow-x: auto; }

.payment-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.payment-table th,
.payment-table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: center;
}
.payment-table th {
  background: rgba(240,192,64,0.1);
  color: var(--gold);
  font-weight: 700;
}
.payment-table td { color: var(--text); }
.payment-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.payment-table tbody tr:hover td { background: rgba(240,192,64,0.05); }
.payment-table td:first-child { text-align: left; font-weight: 600; }

/* ============================================================
   MOBILE
   ============================================================ */
.mobile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.mobile-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); }
.mobile-icon { font-size: 2.5rem; margin-bottom: 16px; }
.mobile-card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; }
.mobile-card p  { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   RESPONSIBLE GAMING
   ============================================================ */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.rg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  border-left: 3px solid var(--gold-dark);
}
.rg-card h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.rg-card p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 820px;
  margin: 40px auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition), background var(--transition);
}
.faq-question:hover { color: var(--gold); background: rgba(240,192,64,0.04); }

.faq-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   REGISTRATION CTA
   ============================================================ */
.reg-section {
  background: linear-gradient(135deg, rgba(240,192,64,0.12) 0%, rgba(13,13,18,0.0) 100%),
              var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reg-inner {
  text-align: center;
  padding: 20px 0;
}
.reg-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 16px;
}
.reg-inner h2 span { color: var(--gold); }
.reg-inner p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; }
.reg-inner p strong { color: var(--gold); }
.reg-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 20px; margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #090910;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}

.footer-inner { text-align: center; }

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
}
.footer-logo span { color: var(--gold); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 28px;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }

.footer-legal {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 640px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.footer-copy {
  color: #555566;
  font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 60px 0; }

  /* Header */
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(13,13,18,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; width: 100%; border-radius: 8px; }

  /* Overview */
  .overview-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Games */
  .games-grid { grid-template-columns: 1fr; }

  /* Table */
  .info-table th { width: auto; }
}

@media (max-width: 480px) {
  .bonus-grid,
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }

  /* Mobile: screenshot fills screen nicely */
  .hero-screenshot { max-width: 100%; margin-top: 32px; }
  .screenshot-img  { border-radius: 14px; }
  .bonus-screenshot-wrap { max-width: 100%; }
  .bonus-screenshot { border-radius: 12px; }

  /* Mobile: logo smaller */
  .logo-img { height: 36px; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb-list li { display: flex; align-items: center; }
.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--text-muted);
}
.breadcrumb-list a { color: var(--gold); }
.breadcrumb-list a:hover { text-decoration: underline; }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 60%, #16213e 100%);
  padding: 70px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}
.page-hero-inner p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Active nav link */
.site-nav a.active { color: var(--gold); }

/* ============================================================
   BLOG STYLES
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dark);
}
.blog-card-body { padding: 24px; }
.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 12px;
  line-height: 1.45;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.blog-tag {
  display: inline-block;
  background: rgba(240,192,64,0.15);
  color: var(--gold);
  border: 1px solid rgba(240,192,64,0.35);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.blog-read-more {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-read-more:hover { color: var(--gold-light); }

.blog-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.blog-featured-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 14px 0 16px;
  line-height: 1.4;
}
.blog-featured-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.blog-featured-content .blog-meta { margin-bottom: 22px; }

/* Section CTA block */
.section-cta-block { padding: 80px 0; }
.section-cta-block h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}
.section-cta-block p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 50px 0 40px; }
  .blog-featured { padding: 22px; }
}
