/* ============================================================
 * tkpk app - common stylesheet
 * All custom classes use the vc5d- prefix for namespace isolation
 * Palette: #8A2BE2 | #800080 | #F8F8FF | #CD853F | #1B263B
 * Mobile-first, max-width 430px viewport
 * ============================================================ */

:root {
  --vc5d-primary: #8A2BE2;
  --vc5d-primary-dark: #800080;
  --vc5d-text-light: #F8F8FF;
  --vc5d-accent: #CD853F;
  --vc5d-bg: #1B263B;
  --vc5d-bg-deep: #121a29;
  --vc5d-bg-card: #223049;
  --vc5d-border: rgba(138, 43, 226, 0.35);
  --vc5d-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --vc5d-radius: 12px;
  --vc5d-radius-sm: 8px;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

/* ---------- Layout helpers ---------- */
.vc5d-container {
  width: 100%;
  padding: 0 1.2rem;
  margin: 0 auto;
}
.vc5d-wrapper { padding: 1.6rem 0; }
.vc5d-grid {
  display: grid;
  gap: 1rem;
}

/* ---------- Header ---------- */
.vc5d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--vc5d-primary-dark), var(--vc5d-primary));
  border-bottom: 2px solid var(--vc5d-accent);
  box-shadow: var(--vc5d-shadow);
  max-width: 430px;
  margin: 0 auto;
}
.vc5d-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.vc5d-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--vc5d-text-light);
  font-weight: 700;
  font-size: 1.5rem;
}
.vc5d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.vc5d-logo span { white-space: nowrap; }

.vc5d-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vc5d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: none;
  border-radius: var(--vc5d-radius-sm);
  padding: 0.55rem 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.vc5d-btn:active { transform: scale(0.96); }
.vc5d-btn-register {
  background: var(--vc5d-accent);
  color: #1B263B;
}
.vc5d-btn-login {
  background: transparent;
  color: var(--vc5d-text-light);
  border: 1px solid var(--vc5d-text-light);
}
.vc5d-menu-btn {
  background: transparent;
  border: none;
  color: var(--vc5d-text-light);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 40px;
  min-height: 40px;
}

/* ---------- Mobile menu (expandable) ---------- */
.vc5d-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--vc5d-bg-deep);
  border-bottom: 2px solid var(--vc5d-accent);
  padding: 5rem 1.2rem 1.5rem;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
}
.vc5d-mobile-menu.vc5d-active { transform: translateY(0); }
.vc5d-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--vc5d-text-light);
  border-bottom: 1px solid rgba(248, 248, 255, 0.08);
  font-size: 1.35rem;
}
.vc5d-mobile-menu a:active { background: rgba(138, 43, 226, 0.2); }
.vc5d-mobile-menu .vc5d-menu-promo {
  color: var(--vc5d-accent);
  font-weight: 700;
}

/* ---------- Hero carousel ---------- */
.vc5d-hero {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.vc5d-slides { position: relative; }
.vc5d-slide {
  display: none;
  width: 100%;
  position: relative;
}
.vc5d-slide.vc5d-active { display: block; }
.vc5d-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.vc5d-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(18, 26, 41, 0.85));
  padding: 1rem;
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
}
.vc5d-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  background: var(--vc5d-bg-deep);
}
.vc5d-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(248, 248, 255, 0.35);
  border: none;
  cursor: pointer;
}
.vc5d-dot.vc5d-active { background: var(--vc5d-accent); }

/* ---------- Section title ---------- */
.vc5d-section { padding: 1.8rem 1.2rem; }
.vc5d-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--vc5d-text-light);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--vc5d-accent);
  padding-left: 0.8rem;
}
.vc5d-section-title small {
  display: block;
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(248, 248, 255, 0.7);
  margin-top: 0.2rem;
}

/* H1 */
.vc5d-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vc5d-accent);
  padding: 1rem 1.2rem 0.4rem;
  line-height: 1.35;
}

/* ---------- Filter buttons ---------- */
.vc5d-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.vc5d-filter-btn {
  background: var(--vc5d-bg-card);
  color: var(--vc5d-text-light);
  border: 1px solid var(--vc5d-border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  min-height: 36px;
}
.vc5d-filter-btn.vc5d-active {
  background: var(--vc5d-primary);
  border-color: var(--vc5d-accent);
}

/* ---------- Game grid ---------- */
.vc5d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.vc5d-game-card {
  background: var(--vc5d-bg-card);
  border-radius: var(--vc5d-radius-sm);
  overflow: hidden;
  border: 1px solid var(--vc5d-border);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.vc5d-game-card:active { transform: scale(0.96); }
.vc5d-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.vc5d-game-card .vc5d-game-name {
  padding: 0.4rem 0.3rem;
  font-size: 1.05rem;
  text-align: center;
  color: var(--vc5d-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Generic cards ---------- */
.vc5d-card {
  background: var(--vc5d-bg-card);
  border-radius: var(--vc5d-radius);
  padding: 1.2rem;
  border: 1px solid var(--vc5d-border);
  box-shadow: var(--vc5d-shadow);
}
.vc5d-card h3 {
  font-size: 1.4rem;
  color: var(--vc5d-accent);
  margin-bottom: 0.5rem;
}
.vc5d-card p { font-size: 1.25rem; color: rgba(248, 248, 255, 0.9); }

/* ---------- Promo CTA block ---------- */
.vc5d-cta {
  background: linear-gradient(135deg, var(--vc5d-primary), var(--vc5d-primary-dark));
  border-radius: var(--vc5d-radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
  border: 1px solid var(--vc5d-accent);
}
.vc5d-cta h2 {
  font-size: 1.6rem;
  color: var(--vc5d-text-light);
  margin-bottom: 0.6rem;
}
.vc5d-cta .vc5d-btn {
  background: var(--vc5d-accent);
  color: #1B263B;
  padding: 0.7rem 2rem;
  font-size: 1.35rem;
  margin-top: 0.6rem;
}

/* ---------- Info list / features ---------- */
.vc5d-list { list-style: none; padding: 0; }
.vc5d-list li {
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(248, 248, 255, 0.12);
  font-size: 1.25rem;
}
.vc5d-list li i { color: var(--vc5d-accent); margin-right: 0.5rem; }

/* ---------- Testimonials ---------- */
.vc5d-testimonial {
  background: var(--vc5d-bg-card);
  border-radius: var(--vc5d-radius-sm);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--vc5d-primary);
}
.vc5d-testimonial .vc5d-author {
  font-size: 1.2rem;
  color: var(--vc5d-accent);
  font-weight: 700;
  margin-top: 0.4rem;
}

/* ---------- Winners ---------- */
.vc5d-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--vc5d-bg-card);
  border-radius: var(--vc5d-radius-sm);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.vc5d-winner span:last-child { color: var(--vc5d-accent); font-weight: 700; }

/* ---------- Payment methods ---------- */
.vc5d-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.vc5d-pay-item {
  background: var(--vc5d-bg-card);
  border-radius: var(--vc5d-radius-sm);
  padding: 0.8rem 0.4rem;
  text-align: center;
  font-size: 1rem;
  border: 1px solid var(--vc5d-border);
}
.vc5d-pay-item i { font-size: 2rem; color: var(--vc5d-accent); display: block; margin-bottom: 0.3rem; }

/* ---------- App download CTA ---------- */
.vc5d-app-cta {
  background: var(--vc5d-bg-deep);
  border-radius: var(--vc5d-radius);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--vc5d-border);
}
.vc5d-app-cta .vc5d-app-btns { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.8rem; flex-wrap: wrap; }
.vc5d-app-cta .vc5d-btn { background: var(--vc5d-primary); color: var(--vc5d-text-light); min-width: 130px; }

/* ---------- Footer ---------- */
.vc5d-footer {
  background: var(--vc5d-bg-deep);
  padding: 1.8rem 1.2rem 2.5rem;
  border-top: 2px solid var(--vc5d-accent);
}
.vc5d-footer-brand { font-size: 1.2rem; color: rgba(248, 248, 255, 0.8); margin-bottom: 1rem; }
.vc5d-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.vc5d-footer-promos .vc5d-btn { background: var(--vc5d-primary); color: var(--vc5d-text-light); padding: 0.45rem 0.9rem; font-size: 1.15rem; }
.vc5d-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin-bottom: 1rem;
}
.vc5d-footer-links a {
  color: rgba(248, 248, 255, 0.8);
  font-size: 1.15rem;
}
.vc5d-footer-copy {
  font-size: 1.1rem;
  color: rgba(248, 248, 255, 0.55);
  text-align: center;
  border-top: 1px solid rgba(248, 248, 255, 0.1);
  padding-top: 0.8rem;
}

/* ---------- Mobile bottom navigation ---------- */
.vc5d-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--vc5d-bg-deep);
  border-top: 2px solid var(--vc5d-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}
.vc5d-bottomnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: rgba(248, 248, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  gap: 0.2rem;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  flex: 1;
}
.vc5d-bottomnav-btn .vc5d-nav-icon { font-size: 24px; line-height: 1; }
.vc5d-bottomnav-btn .vc5d-nav-label { font-size: 1rem; line-height: 1; }
.vc5d-bottomnav-btn:active { transform: scale(0.9); }
.vc5d-bottomnav-btn.vc5d-current {
  color: var(--vc5d-accent);
}
.vc5d-bottomnav-btn.vc5d-current .vc5d-nav-icon {
  filter: drop-shadow(0 0 4px var(--vc5d-accent));
}

/* Mobile content clearance for fixed bottom nav + header */
main { padding-bottom: 80px; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .vc5d-bottomnav { display: none; }
  body { max-width: 430px; }
}

/* Utility */
.vc5d-text-center { text-align: center; }
.vc5d-mt-1 { margin-top: 1rem; }
.vc5d-hidden { display: none; }
