/* 399bad-homes design stylesheet - prefix: g0d5- */
/* English comments only */

:root {
  --g0d5-primary: #FF4500;
  --g0d5-primary-dark: #cc3700;
  --g0d5-bg: #333333;
  --g0d5-bg-dark: #1f1f1f;
  --g0d5-bg-light: #3d3d3d;
  --g0d5-text: #f5f5f5;
  --g0d5-text-muted: #b8b8b8;
  --g0d5-gold: #ffd54a;
  --g0d5-border: #4a4a4a;
  --g0d5-radius: 0.8rem;
}

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

html { font-size: 62.5%; }

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

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

/* ---------- Layout ---------- */
.g0d5-container { width: 100%; padding: 0 1.2rem; }
.g0d5-wrapper { max-width: 430px; margin: 0 auto; }
.g0d5-section { padding: 2rem 1.2rem; }
.g0d5-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  color: var(--g0d5-gold); display: flex; align-items: center; gap: 0.6rem;
}
.g0d5-section-title i, .g0d5-section-title .material-icons-outlined { font-size: 2rem; color: var(--g0d5-primary); }
.g0d5-section-text { margin-bottom: 1rem; color: var(--g0d5-text-muted); }

/* ---------- Header ---------- */
.g0d5-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g0d5-bg-dark);
  border-bottom: 2px solid var(--g0d5-primary);
  max-width: 430px; margin: 0 auto;
}
.g0d5-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; min-height: 5.2rem;
}
.g0d5-logo {
  display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0;
}
.g0d5-logo img { width: 2.6rem; height: 2.6rem; border-radius: 0.4rem; }
.g0d5-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--g0d5-primary); white-space: nowrap; }
.g0d5-header-btns { display: flex; align-items: center; gap: 0.5rem; }
.g0d5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.7rem 1.2rem; border: none; border-radius: var(--g0d5-radius);
  font-size: 1.3rem; font-weight: 700; cursor: pointer; min-height: 44px;
  transition: transform 0.15s, background 0.15s;
}
.g0d5-btn:active { transform: scale(0.94); }
.g0d5-btn-primary { background: var(--g0d5-primary); color: #fff; }
.g0d5-btn-primary:hover { background: var(--g0d5-primary-dark); text-decoration: none; }
.g0d5-btn-outline { background: transparent; color: var(--g0d5-text); border: 1px solid var(--g0d5-border); }
.g0d5-btn-outline:hover { background: var(--g0d5-bg-light); text-decoration: none; }

.g0d5-menu-btn {
  background: transparent; border: none; color: var(--g0d5-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem 0.6rem; min-width: 44px; min-height: 44px;
}

/* ---------- Mobile menu ---------- */
.g0d5-mobile-menu {
  position: fixed; top: 5.2rem; left: 0; right: 0; z-index: 9999;
  background: var(--g0d5-bg-dark); border-bottom: 2px solid var(--g0d5-primary);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  max-width: 430px; margin: 0 auto;
}
.g0d5-mobile-menu.g0d5-menu-open { max-height: 60rem; }
.g0d5-mobile-menu ul { list-style: none; padding: 0.6rem 0; }
.g0d5-mobile-menu li a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.6rem; color: var(--g0d5-text); font-size: 1.4rem;
  border-bottom: 1px solid var(--g0d5-border);
}
.g0d5-mobile-menu li a:hover { background: var(--g0d5-bg-light); color: var(--g0d5-primary); text-decoration: none; }
.g0d5-mobile-menu li a i { color: var(--g0d5-primary); width: 2rem; text-align: center; }

/* ---------- Hero / Carousel ---------- */
.g0d5-hero { position: relative; margin-top: 5.2rem; overflow: hidden; }
.g0d5-slides { position: relative; height: 18rem; }
.g0d5-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.g0d5-slide.g0d5-slide-active { opacity: 1; }
.g0d5-slide img { width: 100%; height: 100%; object-fit: cover; }
.g0d5-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31,31,31,0.7) 0%, rgba(31,31,31,0.1) 100%);
  display: flex; flex-direction: column; justify-content: center; padding: 1.5rem;
}
.g0d5-slide-overlay h2 { font-size: 2rem; color: var(--g0d5-gold); margin-bottom: 0.4rem; }
.g0d5-slide-overlay p { font-size: 1.3rem; color: var(--g0d5-text); }
.g0d5-dots {
  position: absolute; bottom: 0.8rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem; z-index: 5;
}
.g0d5-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.g0d5-dot.g0d5-dot-active { background: var(--g0d5-primary); }

/* ---------- H1 / intro ---------- */
.g0d5-h1 {
  font-size: 2rem; font-weight: 800; color: var(--g0d5-gold);
  padding: 1.5rem 1.2rem 0.5rem; line-height: 1.3;
}
.g0d5-intro { padding: 0 1.2rem 1rem; color: var(--g0d5-text-muted); }

/* ---------- Game grid ---------- */
.g0d5-cat-title {
  font-size: 1.6rem; font-weight: 700; color: var(--g0d5-primary);
  margin: 1.6rem 0 1rem; padding-left: 1.2rem;
  border-left: 4px solid var(--g0d5-gold);
}
.g0d5-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; padding: 0 1.2rem;
}
.g0d5-card {
  background: var(--g0d5-bg-light); border-radius: var(--g0d5-radius);
  overflow: hidden; cursor: pointer; transition: transform 0.15s;
  border: 1px solid var(--g0d5-border);
}
.g0d5-card:active { transform: scale(0.95); }
.g0d5-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.g0d5-card-name {
  padding: 0.5rem 0.4rem; font-size: 1.1rem; text-align: center;
  color: var(--g0d5-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Promo / info cards ---------- */
.g0d5-info-card {
  background: var(--g0d5-bg-light); border-radius: var(--g0d5-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--g0d5-border);
}
.g0d5-info-card h3 { font-size: 1.5rem; color: var(--g0d5-gold); margin-bottom: 0.6rem; }
.g0d5-info-card ul { list-style: none; padding-left: 0; }
.g0d5-info-card li { padding: 0.4rem 0; color: var(--g0d5-text-muted); display: flex; gap: 0.5rem; }
.g0d5-info-card li::before { content: "▸"; color: var(--g0d5-primary); }

.g0d5-promo-link {
  color: var(--g0d5-primary); font-weight: 700; text-decoration: underline; cursor: pointer;
}
.g0d5-promo-btn {
  display: inline-block; background: var(--g0d5-primary); color: #fff;
  padding: 0.8rem 1.6rem; border-radius: var(--g0d5-radius);
  font-weight: 700; margin: 0.8rem 0; cursor: pointer; text-align: center;
}
.g0d5-promo-btn:hover { background: var(--g0d5-primary-dark); text-decoration: none; }

/* ---------- Testimonials ---------- */
.g0d5-testimonial {
  background: var(--g0d5-bg-light); border-left: 4px solid var(--g0d5-gold);
  padding: 1rem 1.2rem; margin-bottom: 0.8rem; border-radius: 0.4rem;
}
.g0d5-testimonial p { font-style: italic; color: var(--g0d5-text); margin-bottom: 0.4rem; }
.g0d5-testimonial span { color: var(--g0d5-text-muted); font-size: 1.2rem; }

/* ---------- Payment row ---------- */
.g0d5-pay-row { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 0 1.2rem; }
.g0d5-pay-item {
  background: var(--g0d5-bg-light); border: 1px solid var(--g0d5-border);
  border-radius: 0.5rem; padding: 0.6rem 1rem; font-size: 1.2rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.g0d5-pay-item i { color: var(--g0d5-gold); }

/* ---------- Winners ---------- */
.g0d5-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem; background: var(--g0d5-bg-light);
  border-radius: 0.5rem; margin-bottom: 0.5rem; border: 1px solid var(--g0d5-border);
}
.g0d5-winner .g0d5-w-name { font-size: 1.3rem; }
.g0d5-winner .g0d5-w-amount { color: var(--g0d5-gold); font-weight: 700; }

/* ---------- Footer ---------- */
.g0d5-footer {
  background: var(--g0d5-bg-dark); border-top: 2px solid var(--g0d5-primary);
  padding: 2rem 1.2rem 1rem; margin-top: 2rem;
}
.g0d5-footer-brand { color: var(--g0d5-text-muted); font-size: 1.2rem; margin-bottom: 1rem; line-height: 1.6; }
.g0d5-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.g0d5-footer-links a { color: var(--g0d5-text); font-size: 1.2rem; }
.g0d5-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.g0d5-footer-promos button, .g0d5-footer-promos a {
  flex: 1 1 calc(50% - 0.6rem); min-height: 44px;
  background: var(--g0d5-primary); color: #fff; border: none;
  border-radius: var(--g0d5-radius); font-weight: 700; font-size: 1.2rem;
  padding: 0.6rem; cursor: pointer; text-align: center;
}
.g0d5-footer-promos a.g0d5-fp-outline { background: transparent; border: 1px solid var(--g0d5-border); }
.g0d5-footer-copy { text-align: center; color: var(--g0d5-text-muted); font-size: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--g0d5-border); }

/* ---------- Bottom navigation ---------- */
.g0d5-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g0d5-bg-dark); border-top: 2px solid var(--g0d5-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
}
.g0d5-bnav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; background: transparent; border: none; color: var(--g0d5-text-muted);
  font-size: 1.1rem; cursor: pointer; min-width: 60px; min-height: 60px;
  transition: color 0.15s, transform 0.15s; text-decoration: none;
}
.g0d5-bnav-btn i, .g0d5-bnav-btn .material-icons-outlined, .g0d5-bnav-btn .material-icons {
  font-size: 2.2rem; transition: color 0.15s;
}
.g0d5-bnav-btn:active { transform: scale(0.9); }
.g0d5-bnav-btn:hover { color: var(--g0d5-primary); text-decoration: none; }
.g0d5-bnav-active { color: var(--g0d5-primary); }
.g0d5-bnav-active i, .g0d5-bnav-active .material-icons-outlined, .g0d5-bnav-active .material-icons { color: var(--g0d5-gold); }
.g0d5-bnav-badge {
  position: relative;
}
.g0d5-bnav-badge::after {
  content: "1"; position: absolute; top: 0.2rem; right: 1.2rem;
  background: var(--g0d5-primary); color: #fff; font-size: 0.9rem;
  border-radius: 50%; width: 1.4rem; height: 1.4rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Utility ---------- */
.g0d5-hide-desktop { display: block; }
.g0d5-text-center { text-align: center; }
.g0d5-mt1 { margin-top: 1rem; }
.g0d5-mb1 { margin-bottom: 1rem; }

/* Add bottom padding for mobile nav clearance */
@media (max-width: 768px) {
  body { padding-bottom: 80px; }
  main { padding-bottom: 80px; }
}

/* Desktop: hide bottom nav, show wider layout */
@media (min-width: 769px) {
  .g0d5-bnav { display: none; }
  body { padding-bottom: 0; }
  .g0d5-hide-desktop { display: block; }
}
