/* ============================================================
 * bd678a.homes - Core Stylesheet (theme-6840.css)
 * All custom classes use the "w6840-" prefix.
 * Mobile-first design, max-width 430px wrapper, rem units.
 * Palette: #E9967A | #FFF8DC | #EEEEEE | #DEB887 | #2E4057 | #FF6347
 * ============================================================ */

:root {
  --w6840-primary: #FF6347;
  --w6840-secondary: #E9967A;
  --w6840-accent: #DEB887;
  --w6840-bg: #2E4057;
  --w6840-bg-dark: #1c2b3c;
  --w6840-card: #243547;
  --w6840-text: #FFF8DC;
  --w6840-muted: #EEEEEE;
  --w6840-light: #FFF8DC;
  --w6840-cream: #FFF8DC;
  --w6840-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", sans-serif;
  background: var(--w6840-bg);
  color: var(--w6840-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--w6840-accent); text-decoration: none; }
a:hover { color: var(--w6840-primary); }

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

/* ============ HEADER ============ */
.w6840-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, #1c2b3c 0%, #2E4057 100%);
  border-bottom: 2px solid var(--w6840-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  box-shadow: var(--w6840-shadow);
}

.w6840-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.w6840-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w6840-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w6840-cream);
  letter-spacing: 0.5px;
}
.w6840-logo-text span { color: var(--w6840-primary); }

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

.w6840-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-height: 3.2rem;
  color: #fff;
}
.w6840-btn:active { transform: scale(0.96); }
.w6840-btn-login { background: var(--w6840-accent); color: #2E4057; }
.w6840-btn-register {
  background: linear-gradient(135deg, var(--w6840-primary) 0%, var(--w6840-secondary) 100%);
}

.w6840-menu-btn {
  background: transparent;
  border: 1px solid var(--w6840-accent);
  color: var(--w6840-cream);
  width: 3.2rem; height: 3.2rem;
  border-radius: 0.6rem;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============ EXPANDABLE NAV ============ */
.w6840-nav-menu {
  position: fixed;
  top: 5.6rem;
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w6840-bg-dark);
  border-bottom: 1px solid var(--w6840-accent);
  padding: 0.5rem 0;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.w6840-nav-menu.w6840-nav-open { max-height: 28rem; }
.w6840-nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--w6840-cream);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.w6840-nav-menu a:hover { background: rgba(255, 99, 71, 0.15); color: var(--w6840-primary); }

/* ============ MAIN ============ */
.w6840-main {
  padding-top: 5.6rem;
  padding-bottom: 8rem;
}

.w6840-container {
  padding: 1rem;
}

/* ============ HERO CAROUSEL ============ */
.w6840-hero {
  position: relative;
  margin: 1rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--w6840-shadow);
  height: 17rem;
}
.w6840-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w6840-slide.w6840-slide-active { opacity: 1; }
.w6840-slide img { width: 100%; height: 100%; object-fit: cover; }
.w6840-hero-dots {
  position: absolute;
  bottom: 0.6rem; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}
.w6840-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none; cursor: pointer; padding: 0;
}
.w6840-hero-dot.w6840-dot-active { background: var(--w6840-primary); }

/* ============ SECTION HEADINGS ============ */
.w6840-section {
  margin: 1.6rem 0;
}
.w6840-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w6840-cream);
  padding: 0.4rem 0;
  margin: 0 0 0.8rem 0;
  border-left: 4px solid var(--w6840-primary);
  padding-left: 0.8rem;
}
.w6840-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--w6840-primary);
  margin: 1rem 0;
  line-height: 2.2rem;
}
.w6840-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w6840-cream);
  margin: 1.2rem 0 0.6rem 0;
}
.w6840-text { line-height: 2.4rem; color: var(--w6840-muted); font-size: 1.45rem; }
.w6840-prose p { line-height: 2.4rem; color: var(--w6840-muted); font-size: 1.45rem; margin: 0.5rem 0; }

/* Inline SEO text link styled bold */
.w6840-link-text {
  color: var(--w6840-primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ============ CATEGORY GRID ============ */
.w6840-cat-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w6840-accent);
  margin: 1.2rem 0 0.6rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.w6840-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.w6840-game-card {
  background: var(--w6840-card);
  border-radius: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.w6840-game-card:active { transform: scale(0.95); }
.w6840-game-card img {
  width: 100%; height: 7rem; object-fit: cover;
  border-radius: 0.6rem;
}
.w6840-game-card .w6840-game-name {
  font-size: 1.1rem;
  color: var(--w6840-cream);
  margin-top: 0.4rem;
  line-height: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ GENERIC CARDS ============ */
.w6840-card {
  background: var(--w6840-card);
  border-radius: 0.8rem;
  padding: 1rem;
  margin: 0.8rem 0;
  box-shadow: var(--w6840-shadow);
}
.w6840-card-title { font-size: 1.5rem; color: var(--w6840-primary); font-weight: 700; margin-bottom: 0.4rem; }
.w6840-card p { color: var(--w6840-muted); font-size: 1.4rem; line-height: 2.2rem; margin: 0.3rem 0; }

/* ============ CTA BLOCKS ============ */
.w6840-cta {
  background: linear-gradient(135deg, var(--w6840-primary) 0%, var(--w6840-secondary) 100%);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
  color: #fff;
  box-shadow: var(--w6840-shadow);
}
.w6840-cta h3 { margin: 0 0 0.4rem; font-size: 1.6rem; color: #fff; }
.w6840-cta p { margin: 0 0 0.8rem; color: #fff8dc; font-size: 1.35rem; }
.w6840-cta .w6840-btn { background: #fff; color: var(--w6840-primary); }

/* RTP / stats list */
.w6840-rtp-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 1.35rem;
}
.w6840-rtp-row span:last-child { color: var(--w6840-primary); font-weight: 700; }

/* Testimonial */
.w6840-testimonial {
  background: var(--w6840-card);
  border-left: 3px solid var(--w6840-accent);
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  margin: 0.6rem 0;
  font-size: 1.35rem;
  color: var(--w6840-muted);
}
.w6840-testimonial strong { color: var(--w6840-primary); display: block; margin-bottom: 0.3rem; }

/* Payment chips */
.w6840-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w6840-chip {
  background: var(--w6840-card);
  border: 1px solid var(--w6840-accent);
  color: var(--w6840-cream);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 1.25rem;
}

/* ============ FOOTER ============ */
.w6840-footer {
  background: var(--w6840-bg-dark);
  padding: 1.4rem 1rem 1rem;
  border-top: 2px solid var(--w6840-primary);
  margin-top: 1.5rem;
}
.w6840-footer h4 { color: var(--w6840-cream); font-size: 1.4rem; margin: 0.6rem 0; }
.w6840-footer p { color: var(--w6840-muted); font-size: 1.3rem; line-height: 2rem; }
.w6840-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin: 0.6rem 0;
}
.w6840-footer-links a {
  color: var(--w6840-accent);
  font-size: 1.3rem;
}
.w6840-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.w6840-footer-promo .w6840-btn { font-size: 1.2rem; padding: 0.5rem 0.9rem; }
.w6840-copy { font-size: 1.2rem; color: rgba(255, 248, 220, 0.6); text-align: center; margin-top: 0.8rem; }

/* ============ MOBILE BOTTOM NAV ============ */
.w6840-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #243547 0%, #1c2b3c 100%);
  border-top: 2px solid var(--w6840-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.w6840-bottomnav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--w6840-muted);
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w6840-bottomnav-item .w6840-bn-icon { font-size: 22px; line-height: 1; }
.w6840-bottomnav-item .material-icons,
.w6840-bottomnav-item .bi { font-size: 22px; line-height: 1; }
.w6840-bottomnav-item:active { transform: scale(0.92); }
.w6840-bottomnav-item:hover { color: var(--w6840-primary); }
.w6840-bottomnav-active { color: var(--w6840-primary); }
.w6840-bottomnav-active .w6840-bn-icon,
.w6840-bottomnav-active .material-icons { color: var(--w6840-primary); }

/* ============ DESKTOP ============ */
@media (min-width: 769px) {
  .w6840-bottomnav { display: none; }
  .w6840-wrapper { box-shadow: 0 0 30px rgba(0,0,0,0.4); }
}
@media (min-width: 431px) {
  .w6840-bottomnav { left: 50%; transform: translateX(-50%); }
  .w6840-header { left: 50%; transform: translateX(-50%); }
  .w6840-nav-menu { left: 50%; transform: translateX(-50%); }
}

/* Mobile bottom padding for content clearance */
@media (max-width: 768px) {
  .w6840-main { padding-bottom: 80px; }
}
