/* ============================================================
   8999bet apk - layout.css
   Mobile-first HTML5 gaming website (bn-BD)
   All custom classes use the g6fc- prefix
   ============================================================ */

:root {
  --g6fc-primary: #2E8B57;
  --g6fc-accent: #ADFF2F;
  --g6fc-accent2: #00FA9A;
  --g6fc-text: #D3D3D3;
  --g6fc-bg: #1B263B;
  --g6fc-bg-deep: #16202f;
  --g6fc-card: #20304a;
  --g6fc-border: rgba(173, 255, 47, 0.18);
  --g6fc-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Tahoma, sans-serif;
  background: var(--g6fc-bg);
  color: var(--g6fc-text);
  font-size: 1.6rem;
  line-height: 1.5;
  min-height: 100vh;
}

html { font-size: 62.5%; }

a { color: var(--g6fc-accent); text-decoration: none; }
a:hover, a:focus { color: var(--g6fc-accent2); }
img { max-width: 100%; display: block; }

.g6fc-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g6fc-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------- Header ---------------- */
.g6fc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--g6fc-bg-deep);
  border-bottom: 1px solid var(--g6fc-border);
  box-shadow: var(--g6fc-shadow);
}
.g6fc-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1.0rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g6fc-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.g6fc-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
}
.g6fc-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g6fc-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g6fc-header-actions { display: flex; gap: 0.5rem; align-items: center; }

.g6fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.0rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px;
}
.g6fc-btn:active { transform: scale(0.96); }
.g6fc-btn-primary {
  background: linear-gradient(135deg, var(--g6fc-primary), var(--g6fc-accent2));
  color: #0c1420;
  box-shadow: 0 2px 8px rgba(0, 250, 154, 0.35);
}
.g6fc-btn-ghost {
  background: transparent;
  border: 1px solid var(--g6fc-accent);
  color: var(--g6fc-accent);
}
.g6fc-btn-ghost:hover { background: rgba(173, 255, 47, 0.08); }

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

/* ---------------- Mobile menu ---------------- */
.g6fc-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 80%; max-width: 300px;
  height: 100%;
  background: var(--g6fc-bg-deep);
  border-right: 1px solid var(--g6fc-border);
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform .25s ease;
  padding: 6rem 1.2rem 2rem;
  overflow-y: auto;
}
.g6fc-mobile-menu.g6fc-open { transform: translateX(0); }
.g6fc-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  display: none;
}
.g6fc-overlay.g6fc-open { display: block; }
.g6fc-mobile-menu nav { display: flex; flex-direction: column; gap: 0.5rem; }
.g6fc-mobile-menu a {
  display: block;
  padding: 1.0rem 1.2rem;
  border-radius: 8px;
  color: var(--g6fc-text);
  font-size: 1.4rem;
  border: 1px solid transparent;
}
.g6fc-mobile-menu a:hover, .g6fc-mobile-menu a:focus {
  background: rgba(173, 255, 47, 0.08);
  border-color: var(--g6fc-border);
  color: var(--g6fc-accent);
}
.g6fc-menu-close {
  position: absolute;
  top: 1.0rem; right: 1.0rem;
  background: transparent;
  border: none;
  color: var(--g6fc-text);
  font-size: 2.0rem;
  cursor: pointer;
}

/* ---------------- Main ---------------- */
.g6fc-main { flex: 1; padding-top: 60px; }

.g6fc-carousel {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 1rem 1.2rem 0;
  scroll-snap-type: x mandatory;
  background: linear-gradient(180deg, var(--g6fc-bg-deep), var(--g6fc-bg));
}
.g6fc-carousel a {
  flex: 0 0 86%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--g6fc-border);
  box-shadow: var(--g6fc-shadow);
  scroll-snap-align: center;
}
.g6fc-carousel img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.g6fc-hero {
  background: linear-gradient(150deg, #0f2436, #1B263B 55%, #1f3a2a);
  border-bottom: 1px solid var(--g6fc-border);
  padding: 2.2rem 1.2rem 2.6rem;
}
.g6fc-hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--g6fc-accent);
  margin-bottom: 0.8rem;
  font-weight: 800;
}
.g6fc-hero p {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--g6fc-text);
}
.g6fc-hero-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g6fc-hero-btns .g6fc-btn { font-size: 1.4rem; padding: 0.7rem 1.4rem; }

.g6fc-section { padding: 2.0rem 0; }
.g6fc-section-title {
  font-size: 1.9rem;
  color: var(--g6fc-accent);
  margin-bottom: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g6fc-section-title .material-icons,
.g6fc-section-title .fas { color: var(--g6fc-accent2); font-size: 22px; }

.g6fc-intro p {
  font-size: 1.4rem;
  margin-bottom: 1.0rem;
  color: var(--g6fc-text);
}
.g6fc-intro strong { color: var(--g6fc-accent); }

/* Category tabs */
.g6fc-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
  scrollbar-width: thin;
}
.g6fc-tab {
  flex: 0 0 auto;
  padding: 0.55rem 1.2rem;
  border-radius: 20px;
  background: var(--g6fc-card);
  border: 1px solid var(--g6fc-border);
  color: var(--g6fc-text);
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.g6fc-tab.g6fc-active,
.g6fc-tab:hover {
  background: linear-gradient(135deg, var(--g6fc-primary), var(--g6fc-accent2));
  color: #0c1420;
  font-weight: 700;
}

/* Game grid */
.g6fc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g6fc-card {
  background: var(--g6fc-card);
  border: 1px solid var(--g6fc-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.g6fc-card:active { transform: scale(0.97); }
.g6fc-card:hover { box-shadow: 0 4px 14px rgba(0, 250, 154, 0.18); }
.g6fc-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e1726;
}
.g6fc-card-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.15rem;
  color: var(--g6fc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.g6fc-game-section { display: none; }
.g6fc-game-section.g6fc-active { display: block; }

/* Promo banner */
.g6fc-promo {
  background: linear-gradient(135deg, #2E8B57, #00FA9A);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  margin: 1.6rem 0;
  color: #0c1420;
}
.g6fc-promo h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.g6fc-promo p { font-size: 1.3rem; margin-bottom: 1.0rem; }
.g6fc-promo .g6fc-btn {
  background: #1B263B;
  color: var(--g6fc-accent);
  padding: 0.7rem 1.6rem;
}

/* FAQ */
.g6fc-faq { padding: 1.2rem 0; }
.g6fc-faq-item {
  background: var(--g6fc-card);
  border: 1px solid var(--g6fc-border);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.g6fc-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--g6fc-accent);
  font-weight: 700;
  font-size: 1.35rem;
  padding: 1.0rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.g6fc-faq-q .g6fc-icon { transition: transform .2s ease; color: var(--g6fc-accent2); }
.g6fc-faq-item.g6fc-open .g6fc-faq-q .g6fc-icon { transform: rotate(180deg); }
.g6fc-faq-a {
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  color: var(--g6fc-text);
  font-size: 1.3rem;
}
.g6fc-faq-item.g6fc-open .g6fc-faq-a {
  max-height: 400px;
  padding: 0 1.2rem 1.0rem;
}

/* Inline promo links */
.g6fc-cta {
  display: inline-block;
  margin: 0.8rem 0;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--g6fc-primary), var(--g6fc-accent2));
  color: #0c1420;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
.g6fc-link-text { font-weight: 700; color: var(--g6fc-accent); }

/* ---------------- Footer ---------------- */
.g6fc-footer {
  background: var(--g6fc-bg-deep);
  border-top: 1px solid var(--g6fc-border);
  padding: 2.2rem 1.2rem 2.0rem;
  margin-top: 1.6rem;
}
.g6fc-footer-brand {
  font-size: 1.5rem;
  color: var(--g6fc-accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.g6fc-footer-intro {
  font-size: 1.3rem;
  color: var(--g6fc-text);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}
.g6fc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.g6fc-footer-links .g6fc-btn {
  font-size: 1.2rem;
  padding: 0.5rem 0.9rem;
}
.g6fc-footer-sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 1.0rem 0;
  font-size: 1.2rem;
}
.g6fc-footer-sitelinks a { color: var(--g6fc-text); }
.g6fc-footer-sitelinks a:hover { color: var(--g6fc-accent); }
.g6fc-copyright {
  border-top: 1px solid var(--g6fc-border);
  padding-top: 1.0rem;
  font-size: 1.2rem;
  color: var(--g6fc-text);
  text-align: center;
}

/* ---------------- Mobile bottom nav ---------------- */
.g6fc-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--g6fc-bg-deep);
  border-top: 1px solid var(--g6fc-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 60px;
}
.g6fc-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--g6fc-text);
  font-size: 1.1rem;
  min-width: 60px;
  min-height: 60px;
  padding: 4px 2px;
  transition: color .15s ease;
}
.g6fc-bottomnav a .g6fc-bicon {
  font-size: 22px;
  line-height: 1;
}
.g6fc-bottomnav a:hover,
.g6fc-bottomnav a.g6fc-active {
  color: var(--g6fc-accent2);
}
.g6fc-bottomnav a.g6fc-active .g6fc-bicon { transform: translateY(-1px); }

/* Desktop nav (top menu visible on wide screens) */
.g6fc-desktop-nav { display: none; }

@media (max-width: 768px) {
  .g6fc-main { padding-bottom: 80px; }
}

@media (min-width: 769px) {
  .g6fc-bottomnav { display: none; }
  .g6fc-header-inner { max-width: 900px; }
  .g6fc-container { max-width: 900px; }
  .g6fc-grid { grid-template-columns: repeat(6, 1fr); }
  .g6fc-desktop-nav {
    display: flex;
    gap: 1.0rem;
    margin: 0 1.0rem;
  }
  .g6fc-desktop-nav a {
    color: var(--g6fc-text);
    font-size: 1.3rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
  }
  .g6fc-desktop-nav a:hover { color: var(--g6fc-accent); background: rgba(173,255,47,0.06); }
  .g6fc-menu-toggle { display: none; }
}

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--g6fc-accent2);
  outline-offset: 2px;
}