/**
 * BGWin - Core Stylesheet
 * All classes use g2e1- prefix for namespace isolation
 * Color palette: #0D1117 | #FF9500 | #FF6347 | #FAFAFA
 * Mobile-first design for Philippine market
 */

/* CSS Variables */
:root {
  --g2e1-bg: #0D1117;
  --g2e1-surface: #161B22;
  --g2e1-surface2: #1C2333;
  --g2e1-primary: #FF9500;
  --g2e1-secondary: #FF6347;
  --g2e1-text: #FAFAFA;
  --g2e1-text-muted: #8B949E;
  --g2e1-border: #30363D;
  --g2e1-radius: 8px;
  --g2e1-radius-lg: 12px;
  --g2e1-shadow: 0 4px 12px rgba(0,0,0,0.4);
  --g2e1-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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--g2e1-bg);
  color: var(--g2e1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g2e1-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER ============ */
.g2e1-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: var(--g2e1-surface);
  border-bottom: 1px solid var(--g2e1-border);
  padding: 0 1.2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.g2e1-header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.g2e1-header-brand img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.g2e1-header-brand span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g2e1-primary);
  letter-spacing: 0.5px;
}
.g2e1-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g2e1-btn-register {
  background: var(--g2e1-primary);
  color: var(--g2e1-bg);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--g2e1-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--g2e1-transition);
  min-height: 34px;
}
.g2e1-btn-register:hover { background: #E08600; transform: scale(1.05); }
.g2e1-btn-login {
  background: transparent;
  color: var(--g2e1-primary);
  border: 1.5px solid var(--g2e1-primary);
  padding: 0.5rem 1.2rem;
  border-radius: var(--g2e1-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g2e1-transition);
  min-height: 34px;
}
.g2e1-btn-login:hover { background: rgba(255,149,0,0.1); }
.g2e1-menu-toggle {
  background: none;
  border: none;
  color: var(--g2e1-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ============ MOBILE MENU ============ */
.g2e1-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.g2e1-overlay-active { opacity: 1; pointer-events: all; }
.g2e1-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100%;
  background: var(--g2e1-surface);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}
.g2e1-menu-active { right: 0; }
.g2e1-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--g2e1-border);
}
.g2e1-menu-header span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g2e1-primary);
}
.g2e1-menu-close {
  background: none;
  border: none;
  color: var(--g2e1-text);
  font-size: 2.2rem;
  cursor: pointer;
}
.g2e1-menu-nav { list-style: none; }
.g2e1-menu-nav li { margin-bottom: 0.4rem; }
.g2e1-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.8rem;
  color: var(--g2e1-text);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: var(--g2e1-radius);
  transition: var(--g2e1-transition);
}
.g2e1-menu-nav a:hover { background: var(--g2e1-surface2); color: var(--g2e1-primary); }
.g2e1-menu-nav .material-icons { font-size: 2rem; }
.g2e1-menu-promo {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--g2e1-border);
}
.g2e1-menu-promo-btn {
  display: block;
  width: 100%;
  background: var(--g2e1-primary);
  color: var(--g2e1-bg);
  text-align: center;
  padding: 1rem;
  border-radius: var(--g2e1-radius);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  border: none;
  cursor: pointer;
}

/* ============ MAIN CONTENT ============ */
.g2e1-main {
  padding-top: 52px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .g2e1-main { padding-bottom: 80px; }
}

/* ============ CAROUSEL ============ */
.g2e1-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.g2e1-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.g2e1-slide {
  min-width: 100%;
  cursor: pointer;
}
.g2e1-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.g2e1-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.g2e1-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--g2e1-transition);
}
.g2e1-dot-active {
  background: var(--g2e1-primary);
  width: 20px;
  border-radius: 4px;
}

/* ============ SECTION ============ */
.g2e1-section {
  padding: 2rem 1.2rem;
}
.g2e1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--g2e1-text);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g2e1-section-title .material-icons,
.g2e1-section-title ion-icon {
  color: var(--g2e1-primary);
  font-size: 2.2rem;
}

/* ============ GAME GRID ============ */
.g2e1-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--g2e1-primary);
  padding-left: 0.4rem;
  border-left: 3px solid var(--g2e1-secondary);
}
.g2e1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g2e1-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--g2e1-transition);
}
.g2e1-game-item:hover { transform: translateY(-2px); }
.g2e1-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g2e1-radius);
  background: var(--g2e1-surface2);
  margin-bottom: 0.3rem;
}
.g2e1-game-item span {
  font-size: 1.1rem;
  color: var(--g2e1-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ CARDS ============ */
.g2e1-card {
  background: var(--g2e1-surface);
  border-radius: var(--g2e1-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g2e1-border);
}
.g2e1-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--g2e1-text);
}
.g2e1-card p {
  font-size: 1.3rem;
  color: var(--g2e1-text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.g2e1-highlight-card {
  background: linear-gradient(135deg, var(--g2e1-surface2), var(--g2e1-surface));
  border: 1px solid var(--g2e1-primary);
}

/* ============ CTA BUTTONS ============ */
.g2e1-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--g2e1-primary), var(--g2e1-secondary));
  color: var(--g2e1-bg);
  padding: 1rem 2.4rem;
  border-radius: var(--g2e1-radius);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--g2e1-transition);
  text-align: center;
  min-height: 44px;
}
.g2e1-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255,149,0,0.4); }
.g2e1-cta-outline {
  background: transparent;
  color: var(--g2e1-primary);
  border: 2px solid var(--g2e1-primary);
}
.g2e1-cta-outline:hover {
  background: rgba(255,149,0,0.1);
}
.g2e1-cta-center { display: flex; justify-content: center; margin: 1.5rem 0; }

/* ============ FOOTER ============ */
.g2e1-footer {
  background: var(--g2e1-surface);
  padding: 2rem 1.2rem 1.5rem;
  border-top: 1px solid var(--g2e1-border);
}
.g2e1-footer-brand {
  font-size: 1.3rem;
  color: var(--g2e1-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.g2e1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.g2e1-footer-links a {
  color: var(--g2e1-text-muted);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--g2e1-border);
  border-radius: var(--g2e1-radius);
  transition: var(--g2e1-transition);
}
.g2e1-footer-links a:hover { color: var(--g2e1-primary); border-color: var(--g2e1-primary); }
.g2e1-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  justify-content: center;
}
.g2e1-footer-partners img {
  height: 24px;
  opacity: 0.6;
  border-radius: 3px;
}
.g2e1-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g2e1-text-muted);
  border-top: 1px solid var(--g2e1-border);
  padding-top: 1rem;
}

/* ============ BOTTOM NAV ============ */
.g2e1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--g2e1-surface);
  border-top: 1px solid var(--g2e1-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}
.g2e1-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--g2e1-text-muted);
  cursor: pointer;
  min-width: 56px;
  min-height: 48px;
  padding: 0.4rem 0;
  transition: var(--g2e1-transition);
  position: relative;
}
.g2e1-nav-btn:hover,
.g2e1-nav-btn:focus {
  color: var(--g2e1-primary);
  transform: scale(1.08);
}
.g2e1-nav-btn.active { color: var(--g2e1-primary); }
.g2e1-nav-btn.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--g2e1-primary);
  border-radius: 0 0 3px 3px;
}
.g2e1-nav-btn .material-icons,
.g2e1-nav-btn ion-icon,
.g2e1-nav-btn i {
  font-size: 22px;
  margin-bottom: 2px;
}
.g2e1-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}
.g2e1-nav-btn .badge {
  position: absolute;
  top: 2px;
  right: 8px;
  width: 16px;
  height: 16px;
  background: var(--g2e1-secondary);
  border-radius: 50%;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ============ PROMO LINK ============ */
.g2e1-promo-link {
  color: var(--g2e1-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--g2e1-transition);
}
.g2e1-promo-link:hover {
  color: var(--g2e1-secondary);
  text-decoration: underline;
}

/* ============ DESKTOP HIDE BOTTOM NAV ============ */
@media (min-width: 769px) {
  .g2e1-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .g2e1-bottom-nav { max-width: 430px; }
}

/* ============ FAQ ACCORDION ============ */
.g2e1-faq-item {
  border-bottom: 1px solid var(--g2e1-border);
  padding: 1rem 0;
}
.g2e1-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g2e1-text);
  margin-bottom: 0.4rem;
}
.g2e1-faq-a {
  font-size: 1.3rem;
  color: var(--g2e1-text-muted);
  line-height: 1.6;
}

/* ============ TAGS ============ */
.g2e1-tag {
  display: inline-block;
  background: rgba(255,149,0,0.15);
  color: var(--g2e1-primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin: 0.2rem;
}

/* ============ UTILITIES ============ */
.g2e1-text-center { text-align: center; }
.g2e1-text-primary { color: var(--g2e1-primary); }
.g2e1-text-secondary { color: var(--g2e1-secondary); }
.g2e1-mt-1 { margin-top: 1rem; }
.g2e1-mt-2 { margin-top: 2rem; }
.g2e1-mb-1 { margin-bottom: 1rem; }
.g2e1-mb-2 { margin-bottom: 2rem; }
.g2e1-divider {
  height: 1px;
  background: var(--g2e1-border);
  margin: 1.5rem 0;
}
.g2e1-img-responsive { width: 100%; border-radius: var(--g2e1-radius); margin: 1rem 0; }

/* ============ PAYMENT ICONS ============ */
.g2e1-payment-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
}
.g2e1-payment-item {
  background: var(--g2e1-surface2);
  border-radius: var(--g2e1-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--g2e1-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============ WINNER LIST ============ */
.g2e1-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--g2e1-border);
}
.g2e1-winner-name {
  font-weight: 600;
  font-size: 1.3rem;
}
.g2e1-winner-amount {
  color: var(--g2e1-primary);
  font-weight: 700;
  font-size: 1.3rem;
}
.g2e1-winner-game {
  color: var(--g2e1-text-muted);
  font-size: 1.1rem;
}

/* ============ TESTIMONIAL ============ */
.g2e1-testimonial {
  background: var(--g2e1-surface2);
  border-radius: var(--g2e1-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g2e1-primary);
}
.g2e1-testimonial-text {
  font-size: 1.3rem;
  color: var(--g2e1-text);
  font-style: italic;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.g2e1-testimonial-author {
  font-size: 1.1rem;
  color: var(--g2e1-primary);
  font-weight: 600;
}

/* ============ RTP BAR ============ */
.g2e1-rtp-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.g2e1-rtp-label {
  font-size: 1.2rem;
  color: var(--g2e1-text-muted);
  min-width: 90px;
}
.g2e1-rtp-track {
  flex: 1;
  height: 8px;
  background: var(--g2e1-surface2);
  border-radius: 4px;
  overflow: hidden;
}
.g2e1-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g2e1-primary), var(--g2e1-secondary));
  border-radius: 4px;
}
.g2e1-rtp-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--g2e1-primary);
  min-width: 36px;
  text-align: right;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--g2e1-bg); }
::-webkit-scrollbar-thumb { background: var(--g2e1-border); border-radius: 2px; }
