/**
 * BigWin Bet - Core Stylesheet
 * All classes prefixed with s045- for namespace isolation
 * Color Palette: #1E1E1E, #2F2F2F, #778899, #C0C0C0, #F5F5F5
 * Mobile-first design, max-width 430px
 */

:root {
  --s045-bg-dark: #1E1E1E;
  --s045-bg-mid: #2F2F2F;
  --s045-accent: #778899;
  --s045-border: #C0C0C0;
  --s045-text-light: #F5F5F5;
  --s045-gold: #D4AF37;
  --s045-gold-dark: #B8960C;
  --s045-green: #3CB371;
  --s045-red: #E74C3C;
  --s045-blue: #4A90D9;
  --s045-radius: 8px;
  --s045-radius-lg: 14px;
  --s045-shadow: 0 2px 12px rgba(0,0,0,0.35);
  --s045-transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--s045-bg-dark);
  color: var(--s045-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Container */
.s045-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s045-wrapper { padding: 1.5rem 0; }

/* Header */
.s045-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--s045-bg-mid);
  border-bottom: 1px solid rgba(199,199,199,0.1);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.s045-header-left { display: flex; align-items: center; gap: 0.6rem; }
.s045-header-logo { width: 28px; height: 28px; border-radius: 4px; }
.s045-header-brand { font-size: 1.5rem; font-weight: 700; color: var(--s045-gold); letter-spacing: 0.3px; }
.s045-header-right { display: flex; align-items: center; gap: 0.6rem; }
.s045-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.2rem; border: none; border-radius: var(--s045-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: var(--s045-transition); text-decoration: none;
  min-height: 34px;
}
.s045-btn-register {
  background: var(--s045-gold); color: var(--s045-bg-dark);
}
.s045-btn-register:hover { background: var(--s045-gold-dark); transform: scale(1.04); }
.s045-btn-login {
  background: transparent; color: var(--s045-text-light);
  border: 1px solid var(--s045-border);
}
.s045-btn-login:hover { background: rgba(245,245,245,0.08); }
.s045-menu-toggle {
  background: none; border: none; color: var(--s045-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.2rem 0.4rem;
  line-height: 1;
}

/* Mobile Menu */
.s045-mobile-menu {
  position: fixed; top: 0; right: -280px;
  width: 270px; height: 100vh;
  background: var(--s045-bg-mid);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.s045-menu-active { right: 0; }
.s045-menu-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.s045-overlay-active { opacity: 1; pointer-events: auto; }
.s045-menu-close {
  background: none; border: none; color: var(--s045-text-light);
  font-size: 2.2rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1.2rem;
}
.s045-menu-list { list-style: none; margin-top: 3rem; }
.s045-menu-list li { border-bottom: 1px solid rgba(199,199,199,0.1); }
.s045-menu-list a {
  display: block; padding: 1.2rem 0.5rem;
  color: var(--s045-text-light); text-decoration: none;
  font-size: 1.4rem; transition: var(--s045-transition);
}
.s045-menu-list a:hover { color: var(--s045-gold); padding-left: 1rem; }

/* Main Content */
.s045-main { padding-top: 5.2rem; }
@media (max-width: 768px) {
  .s045-main { padding-bottom: 80px; }
}

/* Carousel */
.s045-carousel { position: relative; width: 100%; overflow: hidden; border-radius: var(--s045-radius); margin: 1rem 0; }
.s045-carousel-track { position: relative; width: 100%; height: 180px; }
.s045-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.s045-slide-active { opacity: 1; }
.s045-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s045-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.s045-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,245,245,0.4); border: none; cursor: pointer;
  transition: var(--s045-transition);
}
.s045-dot-active { background: var(--s045-gold); transform: scale(1.3); }

/* Section headings */
.s045-section { padding: 1.5rem 0; }
.s045-section-title {
  font-size: 1.7rem; font-weight: 700; color: var(--s045-gold);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s045-gold);
  display: inline-block;
}
.s045-section-subtitle {
  font-size: 1.4rem; font-weight: 600; color: var(--s045-text-light);
  margin: 1rem 0 0.6rem;
}

/* Game Grid */
.s045-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.s045-game-item {
  text-align: center; cursor: pointer;
  transition: var(--s045-transition);
  border-radius: var(--s045-radius);
  padding: 0.5rem 0.2rem;
}
.s045-game-item:hover { background: rgba(212,175,55,0.08); transform: translateY(-2px); }
.s045-game-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--s045-radius);
  object-fit: cover; border: 2px solid rgba(199,199,199,0.15);
}
.s045-game-name {
  font-size: 1.1rem; color: var(--s045-text-light);
  margin-top: 0.3rem; line-height: 1.3rem;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category title */
.s045-cat-title {
  font-size: 1.3rem; font-weight: 600; color: var(--s045-gold);
  margin: 1.5rem 0 0.8rem; padding-left: 0.5rem;
  border-left: 3px solid var(--s045-gold);
}

/* Cards */
.s045-card {
  background: var(--s045-bg-mid);
  border-radius: var(--s045-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(199,199,199,0.08);
  box-shadow: var(--s045-shadow);
}
.s045-card-title {
  font-size: 1.4rem; font-weight: 700; color: var(--s045-gold);
  margin-bottom: 0.6rem;
}
.s045-card-text {
  font-size: 1.3rem; color: #ccc; line-height: 1.6rem;
}

/* Promo link styles */
.s045-promo-link {
  color: var(--s045-gold); font-weight: 700;
  text-decoration: underline; cursor: pointer;
  transition: var(--s045-transition);
}
.s045-promo-link:hover { color: var(--s045-gold-dark); }
.s045-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s045-gold), var(--s045-gold-dark));
  color: var(--s045-bg-dark); font-weight: 700; font-size: 1.4rem;
  padding: 0.8rem 2rem; border-radius: 30px; border: none;
  cursor: pointer; text-decoration: none;
  transition: var(--s045-transition);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
.s045-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(212,175,55,0.45); }

/* Bottom Navigation */
.s045-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, #282828 0%, var(--s045-bg-dark) 100%);
  border-top: 1px solid rgba(212,175,55,0.25);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; z-index: 1000;
  padding: 0 0.3rem;
}
.s045-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  min-width: 60px; min-height: 56px;
  background: none; border: none; cursor: pointer;
  color: var(--s045-border); font-size: 1rem;
  transition: var(--s045-transition); position: relative;
}
.s045-bottom-nav-btn .s045-nav-icon { font-size: 22px; margin-bottom: 2px; }
.s045-bottom-nav-btn .s045-nav-label { font-size: 1rem; line-height: 1.1rem; }
.s045-bottom-nav-btn:hover, .s045-nav-active {
  color: var(--s045-gold) !important;
}
.s045-nav-active::after {
  content: ''; position: absolute; top: -1px;
  left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--s045-gold); border-radius: 2px;
}

/* Footer */
.s045-footer {
  background: var(--s045-bg-mid);
  border-top: 1px solid rgba(199,199,199,0.1);
  padding: 2rem 1.2rem 3rem;
  text-align: center;
}
.s045-footer-desc {
  font-size: 1.2rem; color: var(--s045-accent);
  line-height: 1.6rem; margin-bottom: 1rem;
}
.s045-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem; margin: 1rem 0;
}
.s045-footer-link {
  color: var(--s045-gold); font-size: 1.1rem;
  text-decoration: none; transition: var(--s045-transition);
}
.s045-footer-link:hover { text-decoration: underline; }
.s045-footer-copy {
  font-size: 1.1rem; color: #666; margin-top: 1rem;
}

/* Help page content */
.s045-content-text { font-size: 1.3rem; color: #bbb; line-height: 1.7rem; margin-bottom: 1rem; }
.s045-content-text strong { color: var(--s045-gold); }
.s045-list { padding-left: 1.8rem; margin-bottom: 1rem; }
.s045-list li { font-size: 1.3rem; color: #bbb; line-height: 1.7rem; margin-bottom: 0.4rem; }

/* FAQ Accordion */
.s045-faq-item { border-bottom: 1px solid rgba(199,199,199,0.1); }
.s045-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--s045-gold);
  padding: 1rem 0; cursor: pointer;
}
.s045-faq-a { font-size: 1.2rem; color: #bbb; line-height: 1.6rem; padding-bottom: 1rem; }

/* Testimonials */
.s045-testimonial {
  background: rgba(47,47,47,0.6);
  border-radius: var(--s045-radius);
  padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--s045-gold);
}
.s045-testimonial-text { font-size: 1.2rem; color: #ccc; font-style: italic; }
.s045-testimonial-author { font-size: 1.1rem; color: var(--s045-gold); margin-top: 0.4rem; }

/* Winners Table */
.s045-winners-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.s045-winners-table th {
  background: rgba(212,175,55,0.15); color: var(--s045-gold);
  padding: 0.6rem; text-align: left; font-size: 1.1rem;
}
.s045-winners-table td {
  padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(199,199,199,0.08);
  color: #ccc;
}

/* Payment Icons */
.s045-payment-row {
  display: flex; justify-content: center; gap: 1.2rem;
  flex-wrap: wrap; margin: 1rem 0;
}
.s045-payment-item {
  background: var(--s045-bg-mid); border: 1px solid rgba(199,199,199,0.12);
  border-radius: var(--s045-radius); padding: 0.6rem 1rem;
  font-size: 1.2rem; color: var(--s045-text-light);
}

/* CTA Banner */
.s045-cta-banner {
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(184,150,12,0.1));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--s045-radius-lg);
  padding: 1.5rem; text-align: center; margin: 1.5rem 0;
}

/* Responsive - hide bottom nav on desktop */
@media (min-width: 769px) {
  .s045-bottom-nav { display: none; }
}

/* Utility */
.s045-text-center { text-align: center; }
.s045-mt-1 { margin-top: 0.8rem; }
.s045-mt-2 { margin-top: 1.5rem; }
.s045-mb-1 { margin-bottom: 0.8rem; }
.s045-mb-2 { margin-bottom: 1.5rem; }
.s045-clearfix::after { content: ''; display: table; clear: both; }
