/**
 * i8 Club - Core Stylesheet
 * All classes prefixed with gbd3- for namespace isolation
 * Color palette: #00FF00, #FFC0CB, #DAA520, #333333, #CCCCCC
 * Mobile-first design (max-width: 430px)
 */

/* CSS Variables */
:root {
  --gbd3-primary: #00FF00;
  --gbd3-accent: #FFC0CB;
  --gbd3-gold: #DAA520;
  --gbd3-dark: #333333;
  --gbd3-light: #CCCCCC;
  --gbd3-bg: #1a1a2e;
  --gbd3-bg2: #16213e;
  --gbd3-bg3: #0f3460;
  --gbd3-text: #f0f0f0;
  --gbd3-text-dim: #b0b0b0;
  --gbd3-danger: #ff4757;
  --gbd3-success: #2ed573;
  --gbd3-radius: 8px;
  --gbd3-radius-lg: 16px;
  --gbd3-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --gbd3-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::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(--gbd3-bg);
  color: var(--gbd3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gbd3-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.gbd3-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(135deg, var(--gbd3-dark) 0%, var(--gbd3-bg2) 100%);
  border-bottom: 2px solid var(--gbd3-gold);
  padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.gbd3-header-logo {
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer;
}
.gbd3-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.gbd3-header-logo span {
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(90deg, var(--gbd3-primary), var(--gbd3-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gbd3-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.gbd3-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--gbd3-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--gbd3-transition);
  min-height: 36px; min-width: 44px;
}
.gbd3-btn-register {
  background: linear-gradient(135deg, var(--gbd3-primary), #00cc00);
  color: var(--gbd3-dark);
}
.gbd3-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(0,255,0,0.4); }
.gbd3-btn-login {
  background: linear-gradient(135deg, var(--gbd3-gold), #c49b1a);
  color: var(--gbd3-dark);
}
.gbd3-btn-login:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(218,165,32,0.4); }
.gbd3-menu-toggle {
  background: none; border: none; color: var(--gbd3-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.gbd3-mobile-menu {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 100vh;
  background: rgba(0,0,0,0.96); z-index: 9999;
  transition: var(--gbd3-transition); padding-top: 6rem;
}
.gbd3-menu-closed { opacity: 0; pointer-events: none; }
.gbd3-menu-open { opacity: 1; pointer-events: all; }
.gbd3-mobile-menu nav { display: flex; flex-direction: column; padding: 1rem; }
.gbd3-mobile-menu a {
  color: var(--gbd3-text); padding: 1.2rem 1rem;
  font-size: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--gbd3-transition);
}
.gbd3-mobile-menu a:hover {
  background: rgba(0,255,0,0.1); color: var(--gbd3-primary);
  text-decoration: none;
}
.gbd3-menu-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--gbd3-text);
  font-size: 2.4rem; cursor: pointer; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

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

/* Section Titles */
.gbd3-section-title {
  font-size: 1.8rem; font-weight: 700; margin: 1.8rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gbd3-gold);
  color: var(--gbd3-gold);
}
.gbd3-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.gbd3-game-section { margin-bottom: 2rem; }
.gbd3-game-section h2 {
  font-size: 1.6rem; color: var(--gbd3-gold); margin: 1.2rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.gbd3-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gbd3-game-card {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--gbd3-transition);
  text-align: center;
}
.gbd3-game-card:hover { transform: translateY(-3px); }
.gbd3-game-card img {
  width: 100%; aspect-ratio: 1; border-radius: var(--gbd3-radius);
  border: 2px solid rgba(218,165,32,0.3);
  transition: var(--gbd3-transition);
}
.gbd3-game-card:hover img { border-color: var(--gbd3-gold); box-shadow: 0 0 10px rgba(218,165,32,0.3); }
.gbd3-game-card span {
  font-size: 1.1rem; color: var(--gbd3-text-dim); margin-top: 0.3rem;
  line-height: 1.3rem; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Content Cards */
.gbd3-card {
  background: linear-gradient(135deg, var(--gbd3-bg2), var(--gbd3-bg3));
  border-radius: var(--gbd3-radius-lg); padding: 1.4rem;
  margin-bottom: 1.2rem; border: 1px solid rgba(218,165,32,0.15);
  box-shadow: var(--gbd3-shadow);
}
.gbd3-card h3 {
  font-size: 1.5rem; color: var(--gbd3-gold); margin-bottom: 0.8rem;
}
.gbd3-card p {
  color: var(--gbd3-text-dim); line-height: 1.6rem; font-size: 1.3rem;
}
.gbd3-card ul { padding-left: 1.5rem; color: var(--gbd3-text-dim); }
.gbd3-card li { margin-bottom: 0.5rem; font-size: 1.3rem; line-height: 1.5rem; }

/* Promo Link Button */
.gbd3-promo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: var(--gbd3-radius-lg);
  background: linear-gradient(135deg, var(--gbd3-primary), #00cc00);
  color: var(--gbd3-dark); font-size: 1.4rem; font-weight: 700;
  cursor: pointer; border: none; margin: 1rem 0;
  transition: var(--gbd3-transition); min-height: 44px;
}
.gbd3-promo-btn:hover {
  transform: scale(1.05); box-shadow: 0 0 20px rgba(0,255,0,0.5);
  text-decoration: none; color: var(--gbd3-dark);
}
.gbd3-promo-btn-gold {
  background: linear-gradient(135deg, var(--gbd3-gold), #c49b1a);
}
.gbd3-promo-link {
  color: var(--gbd3-primary); font-weight: 600; cursor: pointer;
}
.gbd3-promo-link:hover { text-decoration: underline; }

/* Footer */
.gbd3-footer {
  background: linear-gradient(180deg, var(--gbd3-dark), #111);
  padding: 2rem 1.2rem 1rem; margin-top: 2rem;
  border-top: 2px solid var(--gbd3-gold);
}
.gbd3-footer-desc {
  color: var(--gbd3-text-dim); font-size: 1.2rem;
  line-height: 1.5rem; margin-bottom: 1.2rem;
}
.gbd3-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem;
}
.gbd3-footer-links a {
  background: var(--gbd3-bg2); color: var(--gbd3-primary);
  padding: 0.5rem 1rem; border-radius: var(--gbd3-radius);
  font-size: 1.1rem; border: 1px solid rgba(0,255,0,0.2);
  transition: var(--gbd3-transition);
}
.gbd3-footer-links a:hover {
  background: rgba(0,255,0,0.1); text-decoration: none;
}
.gbd3-footer-sitelinks {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.gbd3-footer-sitelinks a {
  color: var(--gbd3-text-dim); font-size: 1.1rem;
}
.gbd3-footer-sitelinks a:hover { color: var(--gbd3-primary); }
.gbd3-footer-partners {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center; margin: 1rem 0;
}
.gbd3-footer-partners img {
  height: 28px; opacity: 0.7; transition: var(--gbd3-transition);
}
.gbd3-footer-partners img:hover { opacity: 1; }
.gbd3-copyright {
  text-align: center; color: var(--gbd3-text-dim);
  font-size: 1.1rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Bottom Navigation */
.gbd3-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, var(--gbd3-bg2), #0a0a1a);
  border-top: 1px solid rgba(218,165,32,0.3);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.4rem;
}
.gbd3-bnav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--gbd3-text-dim); cursor: pointer; min-width: 60px;
  min-height: 60px; transition: var(--gbd3-transition);
  padding: 0.4rem;
}
.gbd3-bnav-btn i, .gbd3-bnav-btn .material-symbols-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.gbd3-bnav-btn span { font-size: 1rem; }
.gbd3-bnav-btn:hover, .gbd3-bnav-active {
  color: var(--gbd3-primary);
}
.gbd3-bnav-active i, .gbd3-bnav-active .material-symbols-outlined {
  text-shadow: 0 0 8px rgba(0,255,0,0.5);
}

/* Featured / Highlight Banner */
.gbd3-highlight {
  background: linear-gradient(135deg, rgba(0,255,0,0.15), rgba(218,165,32,0.15));
  border-radius: var(--gbd3-radius-lg); padding: 1.4rem;
  margin: 1rem 0; border: 1px solid rgba(0,255,0,0.2);
}
.gbd3-highlight h3 {
  color: var(--gbd3-primary); font-size: 1.5rem; margin-bottom: 0.6rem;
}

/* RTP Table */
.gbd3-rtp-table {
  width: 100%; border-collapse: collapse; margin: 0.8rem 0;
  font-size: 1.2rem;
}
.gbd3-rtp-table th {
  background: var(--gbd3-bg3); color: var(--gbd3-gold);
  padding: 0.6rem; text-align: left; font-size: 1.1rem;
}
.gbd3-rtp-table td {
  padding: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--gbd3-text-dim);
}
.gbd3-rtp-bar {
  height: 6px; border-radius: 3px; background: var(--gbd3-dark);
  overflow: hidden;
}
.gbd3-rtp-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gbd3-primary), var(--gbd3-gold));
}

/* Testimonial */
.gbd3-testimonial {
  background: var(--gbd3-bg2); border-radius: var(--gbd3-radius);
  padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--gbd3-primary);
}
.gbd3-testimonial p { font-size: 1.2rem; font-style: italic; color: var(--gbd3-text-dim); }
.gbd3-testimonial .gbd3-testi-author {
  font-size: 1.1rem; color: var(--gbd3-gold); margin-top: 0.4rem;
  font-style: normal;
}

/* Payment Methods */
.gbd3-payment-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center; margin: 0.8rem 0;
}
.gbd3-payment-item {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--gbd3-bg2); padding: 0.6rem 1rem;
  border-radius: var(--gbd3-radius); font-size: 1.2rem;
  color: var(--gbd3-text-dim); border: 1px solid rgba(255,255,255,0.05);
}

/* Winners Showcase */
.gbd3-winner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gbd3-winner img { width: 40px; height: 40px; border-radius: 50%; }
.gbd3-winner-info { flex: 1; }
.gbd3-winner-name { font-size: 1.2rem; color: var(--gbd3-text); }
.gbd3-winner-amount { font-size: 1.3rem; color: var(--gbd3-primary); font-weight: 700; }

/* Responsive: Hide bottom nav on desktop */
@media (min-width: 769px) {
  .gbd3-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .gbd3-header { padding: 0.6rem 0.8rem; }
}
