/**
 * Spin Time - Main Theme Stylesheet
 * All classes use wa069- prefix for namespace isolation
 * Color Palette: #FF5722, #FF8000, #E9ECEF, #0F0F23, #4682B4, #48D1CC
 * Mobile-first design, max-width 430px
 */

/* ===== CSS Variables ===== */
:root {
  --wa069-primary: #FF5722;
  --wa069-secondary: #FF8000;
  --wa069-accent: #48D1CC;
  --wa069-info: #4682B4;
  --wa069-bg-dark: #0F0F23;
  --wa069-bg-card: #1a1a35;
  --wa069-bg-section: #14142b;
  --wa069-text-light: #E9ECEF;
  --wa069-text-muted: #a0a0b8;
  --wa069-text-bright: #ffffff;
  --wa069-border: rgba(255, 255, 255, 0.08);
  --wa069-glow: rgba(255, 87, 34, 0.3);
  --wa069-radius: 8px;
  --wa069-radius-lg: 12px;
  --wa069-header-h: 56px;
  --wa069-bottom-nav-h: 60px;
  font-size: 62.5%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--wa069-text-light);
  background: var(--wa069-bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--wa069-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--wa069-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ===== Header ===== */
.wa069-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--wa069-bg-dark) 0%, #1c1c3a 100%);
  border-bottom: 1px solid var(--wa069-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.wa069-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--wa069-header-h);
  padding: 0 1rem;
}

.wa069-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.wa069-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.wa069-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wa069-primary);
  letter-spacing: -0.3px;
}

.wa069-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wa069-btn-register {
  background: linear-gradient(135deg, var(--wa069-primary), var(--wa069-secondary));
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 32px;
}

.wa069-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px var(--wa069-glow);
}

.wa069-btn-login {
  background: transparent;
  color: var(--wa069-accent);
  border: 1px solid var(--wa069-accent);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-height: 32px;
}

.wa069-btn-login:hover {
  background: var(--wa069-accent);
  color: var(--wa069-bg-dark);
}

.wa069-menu-btn {
  background: none;
  border: none;
  color: var(--wa069-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== Mobile Menu ===== */
.wa069-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.wa069-overlay-active {
  opacity: 1;
  visibility: visible;
}

.wa069-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--wa069-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--wa069-border);
}

.wa069-menu-active {
  right: 0;
}

.wa069-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--wa069-border);
}

.wa069-menu-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--wa069-primary);
}

.wa069-menu-close {
  background: none;
  border: none;
  color: var(--wa069-text-light);
  font-size: 2rem;
  cursor: pointer;
}

.wa069-menu-links {
  list-style: none;
  padding: 0.8rem 0;
}

.wa069-menu-links li {
  border-bottom: 1px solid var(--wa069-border);
}

.wa069-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  color: var(--wa069-text-light);
  font-size: 1.4rem;
  transition: background 0.15s, color 0.15s;
}

.wa069-menu-links a:hover {
  background: var(--wa069-bg-card);
  color: var(--wa069-primary);
}

.wa069-menu-links .material-icons,
.wa069-menu-links .fas,
.wa069-menu-links .bi {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* ===== Main Content ===== */
.wa069-main {
  padding-top: calc(var(--wa069-header-h) + 8px);
  min-height: 100vh;
}

@media (max-width: 768px) {
  .wa069-main {
    padding-bottom: calc(var(--wa069-bottom-nav-h) + 16px);
  }
}

/* ===== Carousel ===== */
.wa069-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--wa069-radius-lg);
  margin-bottom: 1.6rem;
}

.wa069-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}

.wa069-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--wa069-carousel-transition, 0.5s) ease;
  cursor: pointer;
}

.wa069-slide-active {
  opacity: 1;
}

.wa069-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa069-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.wa069-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.wa069-dot-active {
  background: var(--wa069-primary);
  transform: scale(1.3);
}

/* ===== Section Title ===== */
.wa069-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wa069-text-bright);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--wa069-primary);
  display: inline-block;
}

.wa069-section-title .fas,
.wa069-section-title .material-icons {
  margin-right: 0.4rem;
  color: var(--wa069-primary);
}

/* ===== Game Grid ===== */
.wa069-game-section {
  margin-bottom: 2.4rem;
}

.wa069-game-category-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--wa069-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa069-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.wa069-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.15s;
}

.wa069-game-item:hover {
  transform: translateY(-2px);
}

.wa069-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--wa069-radius);
  object-fit: cover;
  border: 1px solid var(--wa069-border);
  transition: border-color 0.15s;
}

.wa069-game-item:hover .wa069-game-img {
  border-color: var(--wa069-primary);
}

.wa069-game-name {
  font-size: 1.1rem;
  color: var(--wa069-text-light);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===== Content Modules ===== */
.wa069-module {
  background: var(--wa069-bg-card);
  border-radius: var(--wa069-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--wa069-border);
}

.wa069-module h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--wa069-text-bright);
  margin-bottom: 1rem;
}

.wa069-module h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wa069-secondary);
  margin: 1rem 0 0.6rem;
}

.wa069-module p {
  color: var(--wa069-text-muted);
  line-height: 1.8;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.wa069-module ul {
  list-style: none;
  padding: 0;
}

.wa069-module ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--wa069-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}

.wa069-module ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa069-primary);
}

/* ===== CTA Button ===== */
.wa069-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--wa069-primary), var(--wa069-secondary));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  min-height: 44px;
}

.wa069-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px var(--wa069-glow);
  color: #fff;
}

.wa069-cta-center {
  text-align: center;
  margin: 1.6rem 0;
}

/* ===== Promo Text Link ===== */
.wa069-promo-link {
  color: var(--wa069-primary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.wa069-promo-link:hover {
  color: var(--wa069-secondary);
  text-decoration: underline;
}

/* ===== Footer ===== */
.wa069-footer {
  background: var(--wa069-bg-section);
  padding: 2rem 1.2rem 3rem;
  border-top: 1px solid var(--wa069-border);
}

.wa069-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}

.wa069-footer-brand {
  font-size: 1.4rem;
  color: var(--wa069-text-muted);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.wa069-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.wa069-footer-links a {
  color: var(--wa069-accent);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--wa069-bg-card);
  border-radius: 4px;
  transition: background 0.15s;
}

.wa069-footer-links a:hover {
  background: var(--wa069-primary);
  color: #fff;
}

.wa069-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.wa069-footer-promo button {
  background: linear-gradient(135deg, var(--wa069-primary), var(--wa069-secondary));
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
}

.wa069-footer-promo button:hover {
  transform: scale(1.05);
}

.wa069-footer-copy {
  font-size: 1.2rem;
  color: var(--wa069-text-muted);
  text-align: center;
  opacity: 0.7;
}

/* ===== Bottom Navigation ===== */
.wa069-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a38 0%, var(--wa069-bg-dark) 100%);
  border-top: 1px solid var(--wa069-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}

.wa069-bottom-nav-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--wa069-bottom-nav-h);
}

.wa069-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--wa069-text-muted);
  cursor: pointer;
  min-width: 60px;
  min-height: 52px;
  transition: color 0.2s, transform 0.15s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.wa069-bottom-btn:hover,
.wa069-bottom-btn:active {
  color: var(--wa069-primary);
  transform: scale(1.1);
}

.wa069-bottom-btn .wa069-nav-icon {
  font-size: 2.4rem;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa069-bottom-btn .wa069-nav-label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.wa069-bottom-btn.wa069-active {
  color: var(--wa069-primary);
}

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

/* ===== Feature Grid ===== */
.wa069-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.wa069-feature-card {
  background: var(--wa069-bg-section);
  border-radius: var(--wa069-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--wa069-border);
  transition: border-color 0.15s;
}

.wa069-feature-card:hover {
  border-color: var(--wa069-primary);
}

.wa069-feature-icon {
  font-size: 2.4rem;
  color: var(--wa069-primary);
  margin-bottom: 0.6rem;
}

.wa069-feature-card h3 {
  font-size: 1.4rem;
  color: var(--wa069-text-bright);
  margin-bottom: 0.4rem;
}

.wa069-feature-card p {
  font-size: 1.2rem;
  color: var(--wa069-text-muted);
  line-height: 1.4;
}

/* ===== Winner Marquee ===== */
.wa069-winners {
  overflow: hidden;
  background: var(--wa069-bg-section);
  border-radius: var(--wa069-radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.6rem;
}

.wa069-winners-title {
  font-size: 1.3rem;
  color: var(--wa069-secondary);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.wa069-winners-list {
  display: flex;
  gap: 1.6rem;
  animation: wa069_scroll 20s linear infinite;
}

.wa069-winner-item {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--wa069-text-muted);
  white-space: nowrap;
}

.wa069-winner-item strong {
  color: var(--wa069-primary);
}

@keyframes wa069_scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== FAQ Accordion ===== */
.wa069-faq-item {
  border-bottom: 1px solid var(--wa069-border);
  padding: 1rem 0;
}

.wa069-faq-item:last-child {
  border-bottom: none;
}

.wa069-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wa069-text-bright);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.wa069-faq-q .fas {
  color: var(--wa069-primary);
  margin-top: 0.2rem;
  font-size: 1.2rem;
}

.wa069-faq-a {
  font-size: 1.3rem;
  color: var(--wa069-text-muted);
  line-height: 1.6;
  padding-left: 1.8rem;
}

/* ===== Payment Methods ===== */
.wa069-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.wa069-payment-item {
  background: var(--wa069-bg-section);
  border: 1px solid var(--wa069-border);
  border-radius: var(--wa069-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--wa069-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 320px) {
  .wa069-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .wa069-game-name {
    font-size: 1rem;
  }

  .wa069-header-inner {
    padding: 0 0.6rem;
  }
}

@media (min-width: 769px) {
  .wa069-container {
    max-width: 430px;
  }

  .wa069-main {
    padding-bottom: 2rem;
  }
}
