/* =========================================================
   bd 111 - style-7c15.css
   Mobile-first styles. All custom classes use the "g15d-" prefix.
   Palette: #FFB74D (primary accent) | #273746 (dark background)
   Light text (#FFB74D / #ffffff) on dark base for contrast.
   ========================================================= */

:root {
  --g15d-primary: #FFB74D;
  --g15d-primary-dark: #d99a2b;
  --g15d-bg: #273746;
  --g15d-bg-deep: #1c2832;
  --g15d-bg-soft: #324654;
  --g15d-text: #f5f7fa;
  --g15d-text-muted: #c7d0d8;
  --g15d-border: #46606f;
  --g15d-success: #4fd1a1;
  --g15d-danger: #ff7a7a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--g15d-bg);
  color: var(--g15d-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--g15d-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 0.5rem; line-height: 1.25; color: #ffffff; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.85rem; color: var(--g15d-text-muted); }

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

/* ---------- Header ---------- */
.g15d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #1c2832 0%, #273746 100%);
  border-bottom: 2px solid var(--g15d-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.g15d-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.g15d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g15d-logo strong {
  color: var(--g15d-primary);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.g15d-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g15d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.g15d-btn:hover { text-decoration: none; transform: translateY(-1px); }
.g15d-btn-login {
  background: transparent;
  color: var(--g15d-text);
  border: 1.5px solid var(--g15d-primary);
}
.g15d-btn-register {
  background: linear-gradient(135deg, var(--g15d-primary), var(--g15d-primary-dark));
  color: #1c2832;
  box-shadow: 0 3px 8px rgba(255,183,77,0.35);
}

.g15d-menu-btn {
  background: transparent;
  border: 1px solid var(--g15d-border);
  color: var(--g15d-primary);
  width: 34px; height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Mobile menu ---------- */
.g15d-mobile-menu {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--g15d-bg-deep);
  border-bottom: 1px solid var(--g15d-border);
  padding: 10px 14px 14px;
  z-index: 9999;
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
.g15d-mobile-menu.g15d-menu-open { display: block; }
.g15d-mobile-menu a {
  display: block;
  padding: 9px 8px;
  color: var(--g15d-text);
  border-bottom: 1px dashed var(--g15d-border);
  font-size: 0.92rem;
}
.g15d-mobile-menu a:last-child { border-bottom: none; }

/* ---------- Main ---------- */
.g15d-main { padding-bottom: 80px; }

.g15d-section {
  padding: 14px 12px;
}
.g15d-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--g15d-border);
}
.g15d-section-title h2 { color: var(--g15d-primary); }
.g15d-section-title a { font-size: 0.8rem; }

/* ---------- Hero carousel ---------- */
.g15d-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.g15d-slides { position: relative; }
.g15d-slide {
  display: none;
  cursor: pointer;
}
.g15d-slide.g15d-slide-active { display: block; }
.g15d-slide img { width: 100%; height: 170px; object-fit: cover; }

.g15d-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.g15d-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
}
.g15d-dot.g15d-dot-active { background: var(--g15d-primary); }

/* ---------- Category grid ---------- */
.g15d-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px 4px;
  scrollbar-width: none;
}
.g15d-cat-tabs::-webkit-scrollbar { display: none; }
.g15d-cat-tab {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--g15d-bg-soft);
  color: var(--g15d-text);
  font-size: 0.82rem;
  font-weight: 600;
}
.g15d-cat-tab.g15d-cat-active {
  background: var(--g15d-primary);
  color: #1c2832;
}

/* ---------- Game grid ---------- */
.g15d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 0;
}
.g15d-game-card {
  background: var(--g15d-bg-soft);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--g15d-border);
}
.g15d-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
  border-color: var(--g15d-primary);
}
.g15d-game-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #0f161c;
}
.g15d-game-card span {
  display: block;
  padding: 5px 4px;
  font-size: 0.72rem;
  color: var(--g15d-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Feature / promo blocks ---------- */
.g15d-card {
  background: var(--g15d-bg-soft);
  border: 1px solid var(--g15d-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.g15d-card h3 { color: var(--g15d-primary); }
.g15d-card .g15d-icon-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.g15d-icon-row .g15d-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--g15d-bg-deep);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--g15d-text);
}

.g15d-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--g15d-primary), var(--g15d-primary-dark));
  color: #1c2832;
  font-weight: 800;
  padding: 12px;
  border-radius: 30px;
  margin: 14px 0;
  font-size: 0.95rem;
  box-shadow: 0 6px 14px rgba(255,183,77,0.35);
}
.g15d-cta:hover { text-decoration: none; opacity: 0.95; }

.g15d-link-text {
  color: var(--g15d-primary);
  font-weight: 700;
}

/* ---------- Testimonial / winner lists ---------- */
.g15d-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.g15d-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--g15d-border);
  font-size: 0.85rem;
}
.g15d-list li span:last-child { color: var(--g15d-primary); font-weight: 700; }

/* ---------- Footer ---------- */
.g15d-footer {
  background: var(--g15d-bg-deep);
  border-top: 2px solid var(--g15d-primary);
  padding: 18px 14px 24px;
  color: var(--g15d-text-muted);
  font-size: 0.82rem;
}
.g15d-footer h4 { color: var(--g15d-primary); margin-bottom: 6px; }
.g15d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 6px 0 12px;
}
.g15d-footer-links a { color: var(--g15d-text); font-size: 0.78rem; }
.g15d-footer-copy {
  border-top: 1px solid var(--g15d-border);
  margin-top: 10px;
  padding-top: 10px;
  font-size: 0.72rem;
  color: #8da0ac;
}

/* ---------- Mobile bottom navigation ---------- */
.g15d-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  z-index: 1000;
  background: linear-gradient(180deg, #273746 0%, #1c2832 100%);
  border-top: 2px solid var(--g15d-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.35);
}
.g15d-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--g15d-text-muted);
  font-size: 0.66rem;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}
.g15d-bottom-nav a:hover { text-decoration: none; color: var(--g15d-primary); }
.g15d-bottom-nav a:active { transform: scale(0.92); }
.g15d-bottom-nav a .material-icons,
.g15d-bottom-nav a ion-icon,
.g15d-bottom-nav a i {
  font-size: 24px;
}
.g15d-bottom-nav .g15d-nav-current {
  color: var(--g15d-primary);
}
.g15d-bottom-nav .g15d-nav-current::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--g15d-primary);
}

/* ---------- Desktop handling ---------- */
@media (min-width: 769px) {
  .g15d-bottom-nav { display: none; }
  .g15d-wrapper { max-width: 430px; box-shadow: 0 0 30px rgba(0,0,0,0.4); }
}

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