/**
 * BigWin Bet - Core CSS Module
 * All classes use g48f- prefix for namespace isolation
 * Color palette: #3C3C3C | #9932CC | #0A0A0A | #FF9500 | #9966CC
 * Mobile-first responsive design (max-width: 430px)
 */

/* Root variables and base reset */
:root {
  --g48f-bg-dark: #0A0A0A;
  --g48f-bg-card: #1A1A2E;
  --g48f-bg-section: #141422;
  --g48f-primary: #9932CC;
  --g48f-primary-light: #9966CC;
  --g48f-accent: #FF9500;
  --g48f-text-light: #E8E8F0;
  --g48f-text-muted: #8888AA;
  --g48f-gray: #3C3C3C;
  --g48f-border: #2A2A44;
  --g48f-gradient: linear-gradient(135deg, #9932CC 0%, #FF9500 100%);
  --g48f-shadow: 0 4px 20px rgba(153, 50, 204, 0.25);
  --g48f-radius: 10px;
  --g48f-radius-lg: 16px;
}

*, *::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, Oxygen, sans-serif;
  background: var(--g48f-bg-dark);
  color: var(--g48f-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Header styles */
.g48f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0D0D1A 0%, #141428 100%);
  border-bottom: 1px solid var(--g48f-primary);
  max-width: 430px; margin: 0 auto;
  padding: 0 1.2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.g48f-header-left { display: flex; align-items: center; gap: 0.8rem; }
.g48f-header-logo { width: 32px; height: 32px; border-radius: 6px; }
.g48f-header-brand {
  font-size: 1.8rem; font-weight: 800; color: var(--g48f-accent);
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--g48f-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g48f-header-right { display: flex; align-items: center; gap: 0.6rem; }
.g48f-btn-register {
  background: var(--g48f-gradient); color: #fff; border: none; padding: 0.6rem 1.4rem;
  border-radius: 20px; font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; text-transform: uppercase;
}
.g48f-btn-login {
  background: transparent; color: var(--g48f-accent); border: 1.5px solid var(--g48f-accent);
  padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.g48f-btn-register:hover, .g48f-btn-login:hover { transform: scale(1.05); }

/* Menu toggle button */
.g48f-menu-toggle {
  background: none; border: none; color: var(--g48f-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; margin-right: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile menu overlay */
.g48f-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 9998;
}
.g48f-overlay-active { display: block; }

/* Mobile side menu */
.g48f-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: #111122; z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.6rem; overflow-y: auto;
}
.g48f-menu-active { right: 0; }
.g48f-menu-close {
  background: none; border: none; color: var(--g48f-text-light);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1.2rem;
}
.g48f-menu-nav { margin-top: 3rem; }
.g48f-menu-nav a {
  display: block; padding: 1rem 0; color: var(--g48f-text-light);
  text-decoration: none; font-size: 1.5rem; border-bottom: 1px solid var(--g48f-border);
  transition: color 0.2s;
}
.g48f-menu-nav a:hover { color: var(--g48f-accent); }

/* Main content area */
.g48f-main { padding-top: 56px; }
@media (max-width: 768px) {
  .g48f-main { padding-bottom: 80px; }
}

/* Carousel / Slider */
.g48f-carousel { position: relative; width: 100%; overflow: hidden; }
.g48f-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.g48f-slide img { width: 100%; height: auto; display: block; }
.g48f-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.g48f-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; border: none; transition: background 0.3s;
}
.g48f-dot-active { background: var(--g48f-accent); width: 20px; border-radius: 4px; }

/* Section container */
.g48f-section {
  padding: 2rem 1.2rem;
  border-bottom: 1px solid var(--g48f-border);
}
.g48f-section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 1.2rem;
  color: var(--g48f-text-light);
  position: relative; padding-left: 1rem;
}
.g48f-section-title::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--g48f-gradient); border-radius: 2px;
}

/* Category header */
.g48f-cat-header {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--g48f-border);
}
.g48f-cat-title {
  font-size: 1.6rem; font-weight: 700; color: var(--g48f-accent);
  text-transform: uppercase;
}
.g48f-cat-icon { font-size: 2rem; color: var(--g48f-primary); }

/* Game grid */
.g48f-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.4rem 0;
}
.g48f-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  border-radius: var(--g48f-radius); overflow: hidden;
  background: var(--g48f-bg-card);
}
.g48f-game-item:hover { transform: translateY(-2px); }
.g48f-game-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  border-radius: var(--g48f-radius) var(--g48f-radius) 0 0;
}
.g48f-game-name {
  font-size: 1.1rem; padding: 0.4rem 0.2rem; color: var(--g48f-text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 500;
}

/* Content cards */
.g48f-card {
  background: var(--g48f-bg-card); border-radius: var(--g48f-radius-lg);
  padding: 1.6rem; margin-bottom: 1.2rem;
  border: 1px solid var(--g48f-border);
}
.g48f-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--g48f-accent);
  margin-bottom: 0.8rem;
}
.g48f-card p { color: var(--g48f-text-muted); line-height: 2rem; font-size: 1.3rem; }

/* Promo buttons and links */
.g48f-promo-btn {
  display: inline-block; background: var(--g48f-gradient); color: #fff;
  padding: 0.8rem 2rem; border-radius: 25px; font-size: 1.4rem;
  font-weight: 700; text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s; text-transform: uppercase;
}
.g48f-promo-btn:hover { transform: scale(1.05); box-shadow: var(--g48f-shadow); }
.g48f-promo-link {
  color: var(--g48f-accent); font-weight: 700; text-decoration: none;
  cursor: pointer; transition: color 0.2s;
}
.g48f-promo-link:hover { color: var(--g48f-primary-light); text-decoration: underline; }

/* Feature list */
.g48f-feature-list { list-style: none; padding: 0; }
.g48f-feature-list li {
  padding: 0.6rem 0; padding-left: 1.6rem; position: relative;
  color: var(--g48f-text-muted); font-size: 1.3rem; line-height: 1.8rem;
}
.g48f-feature-list li::before {
  content: ''; position: absolute; left: 0; top: 1rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--g48f-accent);
}

/* Stats bar */
.g48f-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem; margin: 1rem 0;
}
.g48f-stat-item {
  background: var(--g48f-bg-section); border-radius: var(--g48f-radius);
  padding: 1rem; text-align: center; border: 1px solid var(--g48f-border);
}
.g48f-stat-value { font-size: 2rem; font-weight: 800; color: var(--g48f-accent); }
.g48f-stat-label { font-size: 1.1rem; color: var(--g48f-text-muted); margin-top: 0.2rem; }

/* Testimonials */
.g48f-testimonial {
  background: var(--g48f-bg-section); border-radius: var(--g48f-radius);
  padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--g48f-primary);
}
.g48f-testimonial-text { font-size: 1.3rem; color: var(--g48f-text-muted); font-style: italic; line-height: 1.8rem; }
.g48f-testimonial-author { font-size: 1.1rem; color: var(--g48f-accent); margin-top: 0.4rem; font-weight: 600; }

/* Footer */
.g48f-footer {
  background: #08081A; padding: 2rem 1.2rem 1.2rem;
  border-top: 1px solid var(--g48f-border);
}
.g48f-footer-desc {
  font-size: 1.2rem; color: var(--g48f-text-muted); line-height: 1.8rem;
  margin-bottom: 1.2rem;
}
.g48f-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem;
}
.g48f-footer-link {
  background: var(--g48f-bg-card); color: var(--g48f-text-light);
  padding: 0.5rem 1rem; border-radius: 6px; font-size: 1.2rem;
  text-decoration: none; transition: all 0.2s; border: 1px solid var(--g48f-border);
}
.g48f-footer-link:hover { border-color: var(--g48f-accent); color: var(--g48f-accent); }
.g48f-footer-partners {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin: 1rem 0; opacity: 0.6;
}
.g48f-footer-partners img { height: 24px; }
.g48f-copyright {
  text-align: center; font-size: 1.1rem; color: var(--g48f-text-muted);
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--g48f-border);
}

/* Bottom mobile navigation */
.g48f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #12122A 0%, #0A0A1A 100%);
  border-top: 1px solid var(--g48f-primary);
  max-width: 430px; margin: 0 auto;
  height: 60px; display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.4rem;
}
.g48f-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--g48f-text-muted); cursor: pointer; transition: all 0.2s;
  border-radius: 8px; padding: 0.4rem 0;
}
.g48f-bottom-btn:hover, .g48f-bottom-btn:focus { color: var(--g48f-accent); background: rgba(153, 50, 204, 0.1); }
.g48f-bottom-btn-active { color: var(--g48f-accent); }
.g48f-bottom-btn i, .g48f-bottom-btn .material-icons {
  font-size: 22px; margin-bottom: 2px;
}
.g48f-bottom-btn span { font-size: 1rem; font-weight: 500; }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .g48f-bottom-nav { display: none; }
}

/* Help page styles */
.g48f-help-section { margin-bottom: 1.6rem; }
.g48f-help-title {
  font-size: 1.6rem; font-weight: 700; color: var(--g48f-accent);
  margin-bottom: 0.6rem;
}
.g48f-help-text { font-size: 1.3rem; color: var(--g48f-text-muted); line-height: 2rem; }
.g48f-help-text a { color: var(--g48f-accent); text-decoration: none; font-weight: 600; }
.g48f-help-text a:hover { text-decoration: underline; }

/* FAQ styles */
.g48f-faq-item { margin-bottom: 1rem; }
.g48f-faq-q {
  font-size: 1.4rem; font-weight: 700; color: var(--g48f-text-light);
  margin-bottom: 0.3rem;
}
.g48f-faq-a { font-size: 1.3rem; color: var(--g48f-text-muted); line-height: 1.8rem; }

/* Winner list */
.g48f-winner-list { list-style: none; padding: 0; }
.g48f-winner-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--g48f-border);
}
.g48f-winner-name { font-size: 1.3rem; color: var(--g48f-text-light); font-weight: 600; }
.g48f-winner-game { font-size: 1.1rem; color: var(--g48f-text-muted); }
.g48f-winner-amount { font-size: 1.3rem; color: var(--g48f-accent); font-weight: 800; }

/* Payment icons row */
.g48f-payment-row {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin: 1rem 0;
}
.g48f-payment-item {
  background: var(--g48f-bg-section); border-radius: 8px; padding: 0.6rem 1rem;
  font-size: 1.2rem; color: var(--g48f-text-muted); border: 1px solid var(--g48f-border);
}

/* CTA banner */
.g48f-cta-banner {
  background: var(--g48f-gradient); border-radius: var(--g48f-radius-lg);
  padding: 2rem 1.6rem; text-align: center; margin: 1.2rem 0;
}
.g48f-cta-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.6rem; }
.g48f-cta-text { font-size: 1.3rem; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

/* Anchor link styles for internal SEO */
.g48f-internal-link {
  color: var(--g48f-primary-light); text-decoration: none;
  font-weight: 500; border-bottom: 1px dashed var(--g48f-primary-light);
  transition: all 0.2s;
}
.g48f-internal-link:hover { color: var(--g48f-accent); border-bottom-color: var(--g48f-accent); }
