/**
 * Jilibet Click - Theme Stylesheet
 * File: css/theme-b4c6.css
 * Prefix: sb4c-
 */

/* === CSS Variables === */
:root {
  -sb4c-gold: #F0E68C;
  -sb4c-purple: #8470FF;
  -sb4c-dark: #0A0A0A;
  -sb4c-slate: #6A5ACD;
  -sb4c-sand: #F4A460;
  -sb4c-primary: #8470FF;
  -sb4c-secondary: #F0E68C;
  -sb4c-bg: #0A0A0A;
  -sb4c-bg-card: #1A1A2E;
  -sb4c-bg-section: #12121F;
  -sb4c-text: #F0E68C;
  -sb4c-text-light: #E8E8E8;
  -sb4c-text-muted: #A0A0B8;
  -sb4c-accent: #F4A460;
  -sb4c-border: #2A2A4A;
  -sb4c-hover: #9B8AFF;
  -sb4c-radius: 8px;
  -sb4c-shadow: 0 2px 12px rgba(132, 112, 255, 0.15);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(-sb4c-bg);
  color: var(-sb4c-text-light);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(-sb4c-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(-sb4c-hover); }

/* === Container === */
.sb4c-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.sb4c-wrapper { padding: 1.6rem 0; }
.sb4c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* === Header === */
.sb4c-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A2E 100%);
  border-bottom: 1px solid var(-sb4c-border);
  padding: 0 1rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.sb4c-header-left {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.sb4c-header-logo {
  width: 28px; height: 28px; border-radius: 4px;
}
.sb4c-header-name {
  font-size: 1.6rem; font-weight: 700; color: var(-sb4c-gold);
  letter-spacing: 0.5px;
}
.sb4c-header-right {
  display: flex; align-items: center; gap: 0.4rem;
}
.sb4c-btn-register {
  background: linear-gradient(135deg, var(-sb4c-purple), var(-sb4c-slate));
  color: #fff; border: none; padding: 0.4rem 0.8rem;
  border-radius: 4px; font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.sb4c-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(132,112,255,0.4); }
.sb4c-btn-login {
  background: transparent; color: var(-sb4c-gold);
  border: 1px solid var(-sb4c-gold); padding: 0.4rem 0.8rem;
  border-radius: 4px; font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
  white-space: nowrap;
}
.sb4c-btn-login:hover { background: rgba(240,230,140,0.1); }
.sb4c-menu-toggle {
  background: none; border: none; color: var(-sb4c-gold);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* === Mobile Menu === */
.sb4c-mobile-menu {
  position: fixed; top: 0; right: -280px;
  width: 280px; height: 100vh; z-index: 9999;
  background: linear-gradient(180deg, #0A0A0A, #1A1A2E);
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}
.sb4c-menu-active { right: 0; }
.sb4c-mobile-menu .sb4c-menu-title {
  font-size: 1.8rem; font-weight: 700; color: var(-sb4c-gold);
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(-sb4c-border);
}
.sb4c-mobile-menu a {
  display: block; padding: 1rem 0; color: var(-sb4c-text-light);
  font-size: 1.4rem; border-bottom: 1px solid rgba(42,42,74,0.5);
  transition: color 0.2s, padding-left 0.2s;
}
.sb4c-mobile-menu a:hover { color: var(-sb4c-gold); padding-left: 0.5rem; }
.sb4c-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(-sb4c-gold);
  font-size: 2.4rem; cursor: pointer;
}
.sb4c-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s;
}
.sb4c-overlay-active { display: block; opacity: 1; }

/* === Main Content === */
main { padding-top: 56px; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* === Carousel === */
.sb4c-carousel {
  position: relative; overflow: hidden; border-radius: var(-sb4c-radius);
  margin: 1rem 0;
}
.sb4c-carousel-track {
  display: flex; transition: transform 0.5s ease;
}
.sb4c-carousel-slide {
  min-width: 100%; cursor: pointer;
}
.sb4c-carousel-slide img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(-sb4c-radius);
}
.sb4c-carousel-dots {
  display: flex; justify-content: center; gap: 0.6rem;
  margin-top: 0.6rem;
}
.sb4c-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(-sb4c-border); border: none; cursor: pointer;
  transition: background 0.2s;
}
.sb4c-dot-active { background: var(-sb4c-purple); }

/* === Section === */
.sb4c-section {
  padding: 2rem 0;
}
.sb4c-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(-sb4c-gold);
  margin-bottom: 1.2rem; padding-left: 1rem;
  border-left: 3px solid var(-sb4c-purple);
}
.sb4c-section-subtitle {
  font-size: 1.3rem; color: var(-sb4c-text-muted);
  margin-bottom: 1rem; line-height: 1.5;
}

/* === Game Card === */
.sb4c-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.sb4c-game-card {
  background: var(-sb4c-bg-card); border-radius: var(-sb4c-radius);
  overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.sb4c-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(132,112,255,0.25);
  border-color: var(-sb4c-purple);
}
.sb4c-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.sb4c-game-card p {
  padding: 0.4rem 0.5rem; font-size: 1.1rem; color: var(-sb4c-text-light);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}

/* === Category Label === */
.sb4c-cat-label {
  font-size: 1.5rem; font-weight: 600; color: var(-sb4c-accent);
  margin: 1.6rem 0 0.8rem; display: flex; align-items: center; gap: 0.6rem;
}

/* === Info Card === */
.sb4c-card {
  background: var(-sb4c-bg-card); border-radius: var(-sb4c-radius);
  padding: 1.6rem; margin-bottom: 1.2rem;
  border: 1px solid var(-sb4c-border);
}
.sb4c-card h3 {
  font-size: 1.5rem; color: var(-sb4c-gold); margin-bottom: 0.8rem;
}
.sb4c-card p {
  font-size: 1.3rem; color: var(-sb4c-text-light); line-height: 1.6;
}

/* === Promo Button === */
.sb4c-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(-sb4c-purple), var(-sb4c-slate));
  color: #fff; padding: 0.8rem 2rem; border-radius: 6px;
  font-size: 1.4rem; font-weight: 700; border: none;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}
.sb4c-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(132,112,255,0.4);
}

/* === Promo Text Link === */
.sb4c-promo-link {
  color: var(-sb4c-gold); font-weight: 600;
  text-decoration: underline; cursor: pointer;
  transition: color 0.2s;
}
.sb4c-promo-link:hover { color: var(-sb4c-accent); }

/* === Footer === */
.sb4c-footer {
  background: var(-sb4c-bg-section); padding: 2rem 0 1rem;
  border-top: 1px solid var(-sb4c-border);
  margin-top: 2rem;
}
.sb4c-footer-brand {
  font-size: 1.4rem; color: var(-sb4c-gold);
  margin-bottom: 0.8rem; line-height: 1.5;
}
.sb4c-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1rem;
}
.sb4c-footer-links a {
  background: var(-sb4c-bg-card); color: var(-sb4c-text-light);
  padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 1.1rem;
  border: 1px solid var(-sb4c-border); transition: border-color 0.2s;
}
.sb4c-footer-links a:hover { border-color: var(-sb4c-purple); color: var(-sb4c-gold); }
.sb4c-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(-sb4c-text-muted);
  padding-top: 1rem; border-top: 1px solid var(-sb4c-border);
}
.sb4c-footer-nav {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
  margin: 1rem 0;
}
.sb4c-footer-nav a {
  color: var(-sb4c-text-muted); font-size: 1.2rem;
  transition: color 0.2s;
}
.sb4c-footer-nav a:hover { color: var(-sb4c-gold); }

/* === Bottom Navigation === */
.sb4c-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1A1A2E, #0A0A0A);
  border-top: 1px solid var(-sb4c-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.4rem;
}
.sb4c-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  min-width: 60px; min-height: 54px;
  background: none; border: none; color: var(-sb4c-text-muted);
  cursor: pointer; transition: color 0.2s, transform 0.15s;
  padding: 0.3rem; gap: 0.2rem;
}
.sb4c-bottom-nav-btn:hover { color: var(-sb4c-gold); transform: scale(1.08); }
.sb4c-bottom-nav-btn.active { color: var(-sb4c-purple); }
.sb4c-bottom-nav-btn .sb4c-nav-icon { font-size: 2.2rem; line-height: 1; }
.sb4c-bottom-nav-btn .sb4c-nav-label {
  font-size: 0.95rem; line-height: 1.2;
}
@media (min-width: 769px) {
  .sb4c-bottom-nav { display: none; }
}

/* === Desktop Header Extra === */
@media (min-width: 769px) {
  .sb4c-container { max-width: 768px; }
  .sb4c-header { padding: 0 2rem; }
  .sb4c-btn-register { padding: 0.6rem 1.6rem; font-size: 1.3rem; }
  .sb4c-btn-login { padding: 0.6rem 1.6rem; font-size: 1.3rem; }
  .sb4c-game-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .sb4c-carousel-slide img { height: 280px; }
}

/* === Utility === */
.sb4c-text-center { text-align: center; }
.sb4c-mt-1 { margin-top: 0.8rem; }
.sb4c-mt-2 { margin-top: 1.6rem; }
.sb4c-mb-1 { margin-bottom: 0.8rem; }
.sb4c-mb-2 { margin-bottom: 1.6rem; }
.sb4c-py-2 { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.sb4c-hidden { display: none; }

/* === FAQ Accordion === */
.sb4c-faq-item {
  background: var(-sb4c-bg-card); border-radius: var(-sb4c-radius);
  margin-bottom: 0.8rem; overflow: hidden;
  border: 1px solid var(-sb4c-border);
}
.sb4c-faq-question {
  padding: 1.2rem 1.4rem; font-size: 1.3rem; font-weight: 600;
  color: var(-sb4c-gold); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.sb4c-faq-answer {
  padding: 0 1.4rem 1.2rem; font-size: 1.2rem; color: var(-sb4c-text-light);
  line-height: 1.6;
}

/* === Steps === */
.sb4c-steps { counter-reset: step-counter; }
.sb4c-step {
  position: relative; padding-left: 3.5rem; margin-bottom: 1.6rem;
}
.sb4c-step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(-sb4c-purple), var(-sb4c-slate));
  color: #fff; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sb4c-step h3 { font-size: 1.4rem; color: var(-sb4c-gold); margin-bottom: 0.4rem; }
.sb4c-step p { font-size: 1.2rem; color: var(-sb4c-text-light); line-height: 1.5; }

/* === Feature List === */
.sb4c-feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}
.sb4c-feature-item {
  background: var(-sb4c-bg-card); border-radius: var(-sb4c-radius);
  padding: 1.2rem; text-align: center;
  border: 1px solid var(-sb4c-border);
}
.sb4c-feature-item .sb4c-icon { font-size: 2.4rem; margin-bottom: 0.6rem; }
.sb4c-feature-item h4 { font-size: 1.2rem; color: var(-sb4c-gold); margin-bottom: 0.3rem; }
.sb4c-feature-item p { font-size: 1.1rem; color: var(-sb4c-text-muted); }

/* === Winner Badge === */
.sb4c-winner {
  background: linear-gradient(135deg, rgba(132,112,255,0.15), rgba(240,230,140,0.1));
  border-radius: var(-sb4c-radius); padding: 0.8rem 1rem;
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.sb4c-winner-name { font-size: 1.2rem; color: var(-sb4c-gold); font-weight: 600; }
.sb4c-winner-amount { font-size: 1.3rem; color: var(-sb4c-accent); font-weight: 700; }
.sb4c-winner-game { font-size: 1.1rem; color: var(-sb4c-text-muted); }

/* === Responsive Mobile Refinements === */
@media (max-width: 390px) {
  .sb4c-header-name { font-size: 1.3rem; }
  .sb4c-btn-register { padding: 0.3rem 0.6rem; font-size: 1rem; }
  .sb4c-btn-login { padding: 0.3rem 0.6rem; font-size: 1rem; }
  .sb4c-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .sb4c-game-card p { font-size: 1rem; }
}
