/* ============================================================
 * bd9999.cfd - Theme CSS (Basefiles)
 * All custom classes use the ge3f- prefix for namespace isolation.
 * Palette: #2D2D2D | #2C3E50 | #BA55D3 | #D2691E | #EE82EE
 * Mobile-first, max-width 430px, root font 62.5%.
 * ============================================================ */

:root {
  --ge3f-bg: #2D2D2D;
  --ge3f-bg-deep: #1f1f1f;
  --ge3f-primary: #2C3E50;
  --ge3f-accent: #BA55D3;
  --ge3f-accent-2: #D2691E;
  --ge3f-accent-3: #EE82EE;
  --ge3f-text: #f5f5f5;
  --ge3f-text-muted: #c9c9c9;
  --ge3f-card-bg: #353535;
  --ge3f-card-border: #444;
  --ge3f-success: #2ecc71;
  --ge3f-warning: #f39c12;
  --ge3f-radius: 12px;
  --ge3f-radius-sm: 8px;
  --ge3f-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --ge3f-header-h: 56px;
  --ge3f-bottomnav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--ge3f-bg);
  color: var(--ge3f-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ge3f-accent-3); text-decoration: none; }
a:hover { color: var(--ge3f-accent); }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.ge3f-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--ge3f-bg);
  min-height: 100vh;
  position: relative;
}

.ge3f-container {
  width: 100%;
  padding: 0 14px;
}

/* ---------- Header ---------- */
.ge3f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ge3f-header-h);
  background: linear-gradient(90deg, var(--ge3f-primary), var(--ge3f-bg-deep));
  border-bottom: 2px solid var(--ge3f-accent);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: var(--ge3f-shadow);
}

.ge3f-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ge3f-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ge3f-text);
  font-weight: 700;
  font-size: 1.8rem;
}
.ge3f-logo img { width: 28px; height: 28px; border-radius: 6px; }
.ge3f-logo .ge3f-logo-text {
  background: linear-gradient(90deg, var(--ge3f-accent-3), var(--ge3f-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}

.ge3f-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ge3f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: var(--ge3f-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #fff;
  font-family: inherit;
}
.ge3f-btn:active { transform: scale(0.96); }
.ge3f-btn-login {
  background: var(--ge3f-accent);
}
.ge3f-btn-register {
  background: linear-gradient(90deg, var(--ge3f-accent-2), var(--ge3f-accent-3));
}

.ge3f-menu-btn {
  background: transparent;
  border: 1px solid var(--ge3f-accent);
  color: var(--ge3f-text);
  width: 36px; height: 36px;
  border-radius: var(--ge3f-radius-sm);
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile Menu (slide-down) ---------- */
.ge3f-mobile-menu {
  position: fixed;
  top: var(--ge3f-header-h);
  left: 0; right: 0;
  background: var(--ge3f-bg-deep);
  border-bottom: 2px solid var(--ge3f-accent);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ge3f-mobile-menu.ge3f-menu-open { max-height: 420px; }
.ge3f-mobile-menu-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px 14px;
}
.ge3f-mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid #333;
  color: var(--ge3f-text);
  font-size: 1.4rem;
}
.ge3f-mobile-menu a:last-child { border-bottom: none; }
.ge3f-mobile-menu a:hover { color: var(--ge3f-accent-3); }

/* ---------- Main ---------- */
.ge3f-main {
  padding-top: var(--ge3f-header-h);
}
@media (max-width: 768px) {
  .ge3f-main { padding-bottom: 80px; }
}

/* ---------- Carousel ---------- */
.ge3f-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--ge3f-radius) var(--ge3f-radius);
}
.ge3f-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}
.ge3f-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  cursor: pointer;
}
.ge3f-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.ge3f-carousel-caption {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(0,0,0,0.55);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.3rem;
  color: #fff;
}
.ge3f-carousel-dots {
  position: absolute;
  right: 14px; bottom: 12px;
  display: flex;
  gap: 6px;
}
.ge3f-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.ge3f-carousel-dot.ge3f-dot-active { background: var(--ge3f-accent-3); }

/* ---------- Section ---------- */
.ge3f-section {
  padding: 18px 14px;
}
.ge3f-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ge3f-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ge3f-section-title .ge3f-bar {
  width: 4px; height: 22px;
  background: linear-gradient(var(--ge3f-accent), var(--ge3f-accent-3));
  border-radius: 2px;
}
.ge3f-section-desc {
  color: var(--ge3f-text-muted);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* ---------- Category heading ---------- */
.ge3f-cat-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 16px 0 10px;
  color: var(--ge3f-accent-3);
  padding-left: 10px;
  border-left: 4px solid var(--ge3f-accent-2);
}

/* ---------- Game grid ---------- */
.ge3f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 400px) {
  .ge3f-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.ge3f-game-card {
  background: var(--ge3f-card-bg);
  border: 1px solid var(--ge3f-card-border);
  border-radius: var(--ge3f-radius-sm);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ge3f-game-card:active { transform: scale(0.96); border-color: var(--ge3f-accent); }
.ge3f-game-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 4px;
}
.ge3f-game-name {
  font-size: 1.1rem;
  color: var(--ge3f-text);
  line-height: 1.3;
  height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Info / Feature modules ---------- */
.ge3f-card {
  background: var(--ge3f-card-bg);
  border: 1px solid var(--ge3f-card-border);
  border-radius: var(--ge3f-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.ge3f-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--ge3f-accent-3);
}
.ge3f-card p {
  font-size: 1.35rem;
  color: var(--ge3f-text-muted);
  margin-bottom: 8px;
}
.ge3f-card ul {
  padding-left: 18px;
  color: var(--ge3f-text-muted);
  font-size: 1.3rem;
}
.ge3f-card li { margin-bottom: 4px; }

.ge3f-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ge3f-feature-item {
  background: var(--ge3f-card-bg);
  border: 1px solid var(--ge3f-card-border);
  border-radius: var(--ge3f-radius-sm);
  padding: 12px;
  text-align: center;
}
.ge3f-feature-item i, .ge3f-feature-item .material-icons-outlined {
  font-size: 26px;
  color: var(--ge3f-accent-3);
  margin-bottom: 6px;
}
.ge3f-feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--ge3f-text);
}
.ge3f-feature-item p { font-size: 1.15rem; color: var(--ge3f-text-muted); }

/* ---------- Promo CTA ---------- */
.ge3f-cta {
  background: linear-gradient(135deg, var(--ge3f-primary), var(--ge3f-accent));
  border-radius: var(--ge3f-radius);
  padding: 18px 14px;
  text-align: center;
  margin: 14px 0;
}
.ge3f-cta h3 { font-size: 1.8rem; color: #fff; margin-bottom: 6px; }
.ge3f-cta p { font-size: 1.3rem; color: #f0f0f0; margin-bottom: 12px; }
.ge3f-cta .ge3f-btn { font-size: 1.5rem; padding: 0 22px; min-height: 42px; }

/* ---------- Testimonials ---------- */
.ge3f-testimonial {
  background: var(--ge3f-card-bg);
  border-left: 3px solid var(--ge3f-accent-2);
  border-radius: var(--ge3f-radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.ge3f-testimonial .ge3f-quote { font-size: 1.3rem; color: var(--ge3f-text); margin-bottom: 6px; }
.ge3f-testimonial .ge3f-author { font-size: 1.15rem; color: var(--ge3f-accent-3); }

/* ---------- Payment ---------- */
.ge3f-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ge3f-pay-chip {
  background: var(--ge3f-card-bg);
  border: 1px solid var(--ge3f-card-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--ge3f-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Winners ---------- */
.ge3f-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #444;
  font-size: 1.25rem;
}
.ge3f-winner-row:last-child { border-bottom: none; }
.ge3f-winner-name { color: var(--ge3f-accent-3); }
.ge3f-winner-amount { color: var(--ge3f-accent-2); font-weight: 700; }

/* ---------- FAQ ---------- */
.ge3f-faq-item {
  background: var(--ge3f-card-bg);
  border: 1px solid var(--ge3f-card-border);
  border-radius: var(--ge3f-radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.ge3f-faq-item h4 { font-size: 1.35rem; color: var(--ge3f-accent-3); margin-bottom: 4px; }
.ge3f-faq-item p { font-size: 1.25rem; color: var(--ge3f-text-muted); }

/* ---------- Footer ---------- */
.ge3f-footer {
  background: var(--ge3f-bg-deep);
  border-top: 2px solid var(--ge3f-accent);
  padding: 18px 14px 14px;
  color: var(--ge3f-text-muted);
  font-size: 1.2rem;
}
.ge3f-footer h4 { color: var(--ge3f-text); font-size: 1.4rem; margin-bottom: 8px; }
.ge3f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.ge3f-footer-links a {
  font-size: 1.2rem;
  color: var(--ge3f-accent-3);
}
.ge3f-footer-brand { margin-bottom: 10px; line-height: 1.6; }
.ge3f-footer-copy {
  border-top: 1px solid #333;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 1.1rem;
  color: #888;
  text-align: center;
}

/* ---------- Mobile Bottom Nav ---------- */
.ge3f-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--ge3f-bottomnav-h);
  background: linear-gradient(90deg, var(--ge3f-bg-deep), var(--ge3f-primary));
  border-top: 2px solid var(--ge3f-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
}
.ge3f-bottomnav-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}
.ge3f-bottomnav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--ge3f-text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.ge3f-bottomnav-item i,
.ge3f-bottomnav-item .bi,
.ge3f-bottomnav-item ion-icon,
.ge3f-bottomnav-item .material-icons-outlined {
  font-size: 22px;
}
.ge3f-bottomnav-item:active { transform: scale(0.92); }
.ge3f-bottomnav-item:hover { color: var(--ge3f-accent-3); }
.ge3f-bottomnav-item.ge3f-nav-active { color: var(--ge3f-accent-3); }
.ge3f-bottomnav-item.ge3f-nav-active i { color: var(--ge3f-accent-3); }

/* Hidden on desktop */
@media (min-width: 769px) {
  .ge3f-bottomnav { display: none; }
  .ge3f-main { padding-bottom: 0; }
}

/* Hide desktop nav on mobile (not used here but reserved) */
.ge3f-desktop-nav { display: none; }
@media (min-width: 769px) {
  .ge3f-desktop-nav { display: flex; gap: 14px; }
}

/* ---------- Utility ---------- */
.ge3f-text-link {
  color: var(--ge3f-accent-3);
  font-weight: 700;
  cursor: pointer;
}
.ge3f-divider {
  height: 1px;
  background: #333;
  margin: 12px 0;
  border: none;
}
.ge3f-badge {
  display: inline-block;
  background: var(--ge3f-accent-2);
  color: #fff;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
