/**
 * NUSTAR Rewards - Theme Stylesheet
 * All classes use wb02b- prefix for namespace isolation
 * Mobile-first design, max-width 430px
 * @version 1.0.0
 */

/* ============================================
   CSS Variables & Root Setup
   ============================================ */
:root {
  --wb02b-primary: #7B68EE;
  --wb02b-primary-dark: #6A5ACD;
  --wb02b-primary-light: #9B8BFF;
  --wb02b-bg: #273746;
  --wb02b-bg-dark: #1C2A36;
  --wb02b-bg-card: #2C3E50;
  --wb02b-text: #E8E8E8;
  --wb02b-text-muted: #A0AEC0;
  --wb02b-accent: #FFD700;
  --wb02b-accent2: #FF6B6B;
  --wb02b-success: #48BB78;
  --wb02b-border: #3D566E;
  --wb02b-shadow: rgba(0,0,0,0.3);
  --wb02b-radius: 8px;
  --wb02b-radius-lg: 12px;
  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;
  background-color: var(--wb02b-bg);
  color: var(--wb02b-text);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--wb02b-primary-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--wb02b-accent); }

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

/* ============================================
   Header
   ============================================ */
.wb02b-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--wb02b-bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 1px solid var(--wb02b-border);
  box-shadow: 0 2px 8px var(--wb02b-shadow);
}

.wb02b-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.wb02b-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.wb02b-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb02b-primary-light);
  white-space: nowrap;
}

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

.wb02b-btn-register,
.wb02b-btn-login {
  padding: 0.6rem 1.2rem;
  border-radius: var(--wb02b-radius);
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.wb02b-btn-register {
  background: var(--wb02b-primary);
  color: #fff;
}
.wb02b-btn-register:hover {
  background: var(--wb02b-primary-dark);
  transform: scale(1.03);
}

.wb02b-btn-login {
  background: transparent;
  color: var(--wb02b-primary-light);
  border: 1px solid var(--wb02b-primary);
}
.wb02b-btn-login:hover {
  background: var(--wb02b-primary);
  color: #fff;
}

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

/* ============================================
   Mobile Slide Menu
   ============================================ */
.wb02b-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.wb02b-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: var(--wb02b-bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.wb02b-mobile-menu-header {
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid var(--wb02b-border);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wb02b-mobile-menu-header img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.wb02b-mobile-menu-header span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wb02b-primary-light);
}

.wb02b-mobile-menu a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--wb02b-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(61,86,110,0.3);
  transition: background 0.2s, color 0.2s;
}
.wb02b-mobile-menu a:hover,
.wb02b-mobile-menu a:active {
  background: var(--wb02b-bg-card);
  color: var(--wb02b-primary-light);
}

.wb02b-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--wb02b-text-muted);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   Main Content Area
   ============================================ */
.wb02b-main {
  padding-top: 56px;
  min-height: 100vh;
}

/* ============================================
   Carousel
   ============================================ */
.wb02b-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--wb02b-bg-dark);
}

.wb02b-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.wb02b-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

.wb02b-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.wb02b-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.wb02b-carousel-dot-active,
.wb02b-carousel-dot:hover {
  background: var(--wb02b-primary);
}

/* ============================================
   Section & Headings
   ============================================ */
.wb02b-section {
  padding: 2rem 1.2rem;
}

.wb02b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wb02b-primary-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--wb02b-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wb02b-section-title i,
.wb02b-section-title .material-icons {
  font-size: 2rem;
}

/* ============================================
   Game Grid - 4 columns compact
   ============================================ */
.wb02b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.wb02b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.4rem;
  border-radius: var(--wb02b-radius);
}

.wb02b-game-item:hover {
  transform: scale(1.05);
  background: var(--wb02b-bg-card);
}

.wb02b-game-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--wb02b-radius);
  margin-bottom: 0.4rem;
  object-fit: cover;
  border: 1px solid var(--wb02b-border);
}

.wb02b-game-item span {
  font-size: 1.1rem;
  color: var(--wb02b-text);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

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

.wb02b-content-card h2 {
  font-size: 1.7rem;
  color: var(--wb02b-primary-light);
  margin-bottom: 1rem;
}

.wb02b-content-card h3 {
  font-size: 1.5rem;
  color: var(--wb02b-accent);
  margin-bottom: 0.8rem;
}

.wb02b-content-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--wb02b-text);
  margin-bottom: 0.8rem;
}

.wb02b-content-card ul {
  padding-left: 1.8rem;
  margin-bottom: 1rem;
}

.wb02b-content-card li {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
  color: var(--wb02b-text);
}

/* ============================================
   Promo Buttons & Links
   ============================================ */
.wb02b-promo-btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--wb02b-primary), var(--wb02b-primary-dark));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.wb02b-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(123,104,238,0.4);
}

.wb02b-promo-link {
  color: var(--wb02b-primary-light);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.wb02b-promo-link:hover {
  color: var(--wb02b-accent);
}

.wb02b-promo-center {
  text-align: center;
  margin: 1.6rem 0;
}

/* ============================================
   Category Tabs
   ============================================ */
.wb02b-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wb02b-accent);
  margin: 1.4rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

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

.wb02b-footer-links a {
  padding: 0.5rem 1rem;
  background: var(--wb02b-bg-card);
  border-radius: var(--wb02b-radius);
  font-size: 1.2rem;
  color: var(--wb02b-text);
  border: 1px solid var(--wb02b-border);
  transition: all 0.2s;
}
.wb02b-footer-links a:hover {
  border-color: var(--wb02b-primary);
  color: var(--wb02b-primary-light);
}

.wb02b-footer-copy {
  font-size: 1.2rem;
  color: var(--wb02b-text-muted);
  text-align: center;
  margin-top: 1rem;
}

.wb02b-footer-partners {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.wb02b-footer-partners span {
  font-size: 1.1rem;
  color: var(--wb02b-text-muted);
  padding: 0.3rem 0.6rem;
  background: var(--wb02b-bg);
  border-radius: 4px;
}

/* ============================================
   Bottom Navigation (Mobile)
   ============================================ */
.wb02b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--wb02b-bg-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--wb02b-border);
  box-shadow: 0 -2px 10px var(--wb02b-shadow);
}

.wb02b-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--wb02b-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  padding: 0.4rem;
  -webkit-tap-highlight-color: transparent;
}

.wb02b-bottom-nav-item i,
.wb02b-bottom-nav-item .material-icons,
.wb02b-bottom-nav-item ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.wb02b-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1.2;
}

.wb02b-bottom-nav-item:hover,
.wb02b-bottom-nav-active {
  color: var(--wb02b-primary-light);
}

.wb02b-bottom-nav-active {
  position: relative;
}

.wb02b-bottom-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--wb02b-primary);
  border-radius: 0 0 3px 3px;
}

/* ============================================
   RTP Table
   ============================================ */
.wb02b-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.wb02b-rtp-table th,
.wb02b-rtp-table td {
  padding: 0.8rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--wb02b-border);
}

.wb02b-rtp-table th {
  color: var(--wb02b-accent);
  font-weight: 600;
  background: var(--wb02b-bg-dark);
}

.wb02b-rtp-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--wb02b-bg-dark);
  overflow: hidden;
}

.wb02b-rtp-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--wb02b-primary), var(--wb02b-success));
}

/* ============================================
   Winners / Testimonials
   ============================================ */
.wb02b-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--wb02b-bg-dark);
  border-radius: var(--wb02b-radius);
  margin-bottom: 0.6rem;
}

.wb02b-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wb02b-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

.wb02b-winner-info {
  flex: 1;
}

.wb02b-winner-name {
  font-size: 1.3rem;
  color: var(--wb02b-text);
  font-weight: 600;
}

.wb02b-winner-amount {
  font-size: 1.2rem;
  color: var(--wb02b-accent);
  font-weight: 700;
}

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

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

/* ============================================
   FAQ Accordion
   ============================================ */
.wb02b-faq-item {
  margin-bottom: 0.8rem;
  border: 1px solid var(--wb02b-border);
  border-radius: var(--wb02b-radius);
  overflow: hidden;
}

.wb02b-faq-q {
  padding: 1rem 1.2rem;
  background: var(--wb02b-bg-dark);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--wb02b-primary-light);
  cursor: pointer;
}

.wb02b-faq-a {
  padding: 1rem 1.2rem;
  font-size: 1.3rem;
  color: var(--wb02b-text);
  line-height: 1.5;
}

/* ============================================
   Responsive: Mobile bottom padding
   ============================================ */
@media (max-width: 768px) {
  .wb02b-main {
    padding-bottom: 80px;
  }
}

/* ============================================
   Desktop: Hide bottom nav, show desktop nav
   ============================================ */
@media (min-width: 769px) {
  .wb02b-bottom-nav {
    display: none;
  }
  .wb02b-main {
    padding-bottom: 0;
  }
}
