/* bd1111 - core stylesheet (basefiles) */
/* All custom classes use vf86- prefix */

:root {
  --vf86-primary: #0000FF;
  --vf86-accent: #87CEFA;
  --vf86-bg: #141414;
  --vf86-bg2: #3C3C3C;
  --vf86-text: #F8F9FA;
  --vf86-soft: #AFEEEE;
  --vf86-gold: #FFD24A;
  --vf86-radius: 1.2rem;
}

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

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

body {
  font-family: "Segoe UI", "Noto Sans Bengali", "SolaimanLipi", system-ui, sans-serif;
  background: var(--vf86-bg);
  color: var(--vf86-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

a { color: var(--vf86-soft); text-decoration: none; }

/* ============ Header ============ */
.vf86-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(90deg, #0a0a3d 0%, var(--vf86-primary) 100%);
  border-bottom: 1px solid var(--vf86-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  height: 5.2rem;
}
.vf86-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--vf86-text);
  font-weight: 700;
  font-size: 1.6rem;
}
.vf86-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.vf86-logo span { color: var(--vf86-soft); }

.vf86-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.vf86-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 3.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vf86-btn:active { transform: scale(0.95); }
.vf86-btn-register {
  background: linear-gradient(135deg, var(--vf86-gold), #ff9d00);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(255,210,74,0.4);
}
.vf86-btn-login {
  background: transparent;
  color: var(--vf86-soft);
  border: 1px solid var(--vf86-accent);
}

.vf86-menu-btn {
  background: transparent;
  border: none;
  color: var(--vf86-text);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 3.6rem;
  min-height: 3.6rem;
  border-radius: 0.6rem;
}

/* ============ Mobile Menu (expandable) ============ */
.vf86-mobile-menu {
  position: fixed;
  top: 5.2rem; left: 0; right: 0;
  z-index: 9999;
  max-width: 430px;
  margin: 0 auto;
  background: #0d0d2b;
  border-bottom: 1px solid var(--vf86-accent);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.vf86-mobile-menu.vf86-menu-open { max-height: 60rem; }
.vf86-mobile-menu ul { list-style: none; padding: 0.5rem 1rem; }
.vf86-mobile-menu li { border-bottom: 1px solid rgba(135,206,250,0.15); }
.vf86-mobile-menu li:last-child { border-bottom: none; }
.vf86-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 0.5rem;
  color: var(--vf86-text);
  font-size: 1.4rem;
}
.vf86-mobile-menu a i { color: var(--vf86-soft); width: 2rem; text-align: center; }

/* ============ Layout ============ */
.vf86-main { padding-top: 5.2rem; }
@media (max-width: 768px) {
  .vf86-main { padding-bottom: 8rem; }
}

.vf86-container { padding: 1.2rem; }
.vf86-section { margin-bottom: 1.8rem; }

.vf86-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vf86-soft);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--vf86-primary);
}

/* ============ Carousel ============ */
.vf86-carousel {
  position: relative;
  border-radius: var(--vf86-radius);
  overflow: hidden;
  margin: 1rem 0;
}
.vf86-carousel-track { position: relative; height: 18rem; }
.vf86-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.vf86-carousel-slide.vf86-slide-active { opacity: 1; }
.vf86-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.vf86-carousel-dots {
  position: absolute;
  bottom: 0.8rem; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.vf86-carousel-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(248,249,250,0.5);
  border: none; cursor: pointer;
}
.vf86-carousel-dot.vf86-dot-active { background: var(--vf86-gold); }

/* ============ Hero / H1 ============ */
.vf86-hero {
  text-align: center;
  padding: 1.5rem 1rem;
  background: radial-gradient(circle at top, #1a1a4d 0%, var(--vf86-bg) 80%);
}
.vf86-hero h1 {
  font-size: 2.2rem;
  line-height: 2.8rem;
  color: var(--vf86-gold);
  margin-bottom: 0.6rem;
}
.vf86-hero p { color: var(--vf86-text); font-size: 1.4rem; }
.vf86-hero-cta {
  margin-top: 1rem;
  display: inline-flex;
  background: linear-gradient(135deg, var(--vf86-primary), var(--vf86-accent));
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.5rem;
}

/* ============ Game Grid ============ */
.vf86-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.vf86-game-card {
  background: linear-gradient(160deg, #1f1f3f 0%, #2a2a2a 100%);
  border: 1px solid rgba(135,206,250,0.2);
  border-radius: 0.8rem;
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.vf86-game-card:active { transform: scale(0.95); border-color: var(--vf86-gold); }
.vf86-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
}
.vf86-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--vf86-text);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ Info / Feature cards ============ */
.vf86-card {
  background: linear-gradient(160deg, #1c1c3a 0%, #2a2a2a 100%);
  border: 1px solid rgba(135,206,250,0.18);
  border-radius: var(--vf86-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.vf86-card h2 {
  color: var(--vf86-soft);
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}
.vf86-card h3 {
  color: var(--vf86-gold);
  font-size: 1.5rem;
  margin: 0.8rem 0 0.4rem;
}
.vf86-card p { color: var(--vf86-text); font-size: 1.35rem; margin-bottom: 0.6rem; }
.vf86-card ul { padding-left: 1.6rem; }
.vf86-card li { color: var(--vf86-text); font-size: 1.3rem; margin-bottom: 0.3rem; }

/* ============ Promo link styles ============ */
.vf86-promo-link {
  color: var(--vf86-gold);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.vf86-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--vf86-primary), #4a6cf7);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  margin: 0.4rem 0.2rem;
}

/* ============ Footer ============ */
.vf86-footer {
  background: #0a0a1f;
  border-top: 1px solid var(--vf86-accent);
  padding: 1.5rem 1.2rem 2rem;
  margin-top: 1.5rem;
}
.vf86-footer-brand { color: var(--vf86-soft); font-size: 1.3rem; margin-bottom: 0.8rem; line-height: 1.6rem; }
.vf86-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.vf86-footer-links a {
  flex: 1 1 45%;
  background: #1a1a3a;
  border: 1px solid rgba(135,206,250,0.25);
  border-radius: 0.6rem;
  padding: 0.7rem 0.6rem;
  text-align: center;
  color: var(--vf86-text);
  font-size: 1.2rem;
}
.vf86-footer-copy { color: #888; font-size: 1.1rem; margin-top: 0.8rem; text-align: center; }

/* ============ Bottom Nav ============ */
.vf86-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, #0d0d2b 0%, #050514 100%);
  border-top: 1px solid var(--vf86-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.vf86-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--vf86-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
}
.vf86-bottomnav-btn i,
.vf86-bottomnav-btn .material-icons-outlined,
.vf86-bottomnav-btn .ion-icon { font-size: 2.4rem; }
.vf86-bottomnav-btn span { font-size: 1rem; color: var(--vf86-text); }
.vf86-bottomnav-btn:active { transform: scale(0.9); }
.vf86-bottomnav-btn.vf86-nav-current { color: var(--vf86-gold); }
.vf86-bottomnav-btn.vf86-nav-current span,
.vf86-bottomnav-btn.vf86-nav-current i { color: var(--vf86-gold); }

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

/* ============ Misc helpers ============ */
.vf86-text-center { text-align: center; }
.vf86-mt1 { margin-top: 1rem; }
.vf86-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.vf86-pill {
  display: inline-block;
  background: rgba(135,206,250,0.15);
  color: var(--vf86-soft);
  border-radius: 1rem;
  padding: 0.3rem 0.8rem;
  font-size: 1.1rem;
  margin: 0.2rem;
}
.vf86-rtp-bar {
  background: #2a2a2a;
  border-radius: 0.6rem;
  height: 1rem;
  overflow: hidden;
  margin: 0.3rem 0;
}
.vf86-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--vf86-primary), var(--vf86-soft)); }
