/* ============================================================
   abc77.homes - Theme stylesheet (class prefix: we387-)
   Mobile-first. Palette: #1B263B (dark bg) | #B2DFDB | #E0F2F1
   ============================================================ */

:root {
  --we387-primary: #B2DFDB;
  --we387-primary-deep: #4DB6AC;
  --we387-bg: #1B263B;
  --we387-bg-soft: #243352;
  --we387-bg-card: #2C3E60;
  --we387-text: #E0F2F1;
  --we387-text-dim: #A8C0C0;
  --we387-accent: #FFC857;
  --we387-accent-hot: #FF6B6B;
  --we387-border: rgba(178, 223, 219, 0.18);
  --we387-radius: 14px;
  --we387-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--we387-primary); text-decoration: none; }

/* ---------- Layout ---------- */
.we387-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.we387-container {
  padding: 0 1.4rem;
}

main.we387-main {
  padding-bottom: 90px;
  padding-top: 0;
}

/* ---------- Header ---------- */
.we387-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1B263B 0%, #243352 100%);
  border-bottom: 1px solid var(--we387-border);
  box-shadow: var(--we387-shadow);
}

.we387-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.we387-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.we387-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.we387-logo-name {
  font-weight: 700;
  color: var(--we387-text);
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.we387-logo-name span { color: var(--we387-accent); }

.we387-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.we387-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 36px;
  line-height: 1;
  font-family: inherit;
}

.we387-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

.we387-btn-register {
  background: linear-gradient(135deg, #FFC857, #FF6B6B);
  color: #1B263B;
}

.we387-btn-login {
  background: transparent;
  color: var(--we387-primary);
  border: 1.5px solid var(--we387-primary);
}

.we387-menu-toggle {
  background: transparent;
  border: none;
  color: var(--we387-text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* ---------- Mobile dropdown menu ---------- */
.we387-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--we387-bg-soft);
  border-bottom: 1px solid var(--we387-border);
  padding: 0.6rem 1.2rem 1rem;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: var(--we387-shadow);
}

.we387-mobile-menu.we387-menu-open { display: block; }

.we387-mobile-menu a {
  display: block;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px dashed var(--we387-border);
  color: var(--we387-text);
  font-size: 1.45rem;
}

.we387-mobile-menu a:last-child { border-bottom: none; }

.we387-mobile-menu a:hover { color: var(--we387-accent); }

/* ---------- Spacer under fixed header ---------- */
.we387-header-spacer { height: 56px; }

/* ---------- Hero / Banner ---------- */
.we387-hero {
  position: relative;
  margin: 0.8rem 0 1.2rem;
}

.we387-banner {
  position: relative;
  border-radius: var(--we387-radius);
  overflow: hidden;
  box-shadow: var(--we387-shadow);
  aspect-ratio: 16 / 7;
  background: #0d1526;
}

.we387-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.we387-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.we387-banner-slide.we387-active { opacity: 1; }

.we387-banner-caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  background: rgba(27, 38, 59, 0.78);
  color: var(--we387-text);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
}

.we387-banner-dots {
  position: absolute;
  bottom: 0.5rem;
  right: 0.8rem;
  display: flex;
  gap: 0.35rem;
}

.we387-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.we387-banner-dot.we387-active { background: var(--we387-accent); }

/* ---------- Section ---------- */
.we387-section {
  margin: 1.6rem 0;
}

.we387-section-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--we387-text);
}

.we387-section-title i { color: var(--we387-accent); }

.we387-section-title small {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--we387-text-dim);
}

/* ---------- Category grid ---------- */
.we387-cat-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--we387-primary);
  margin: 1.2rem 0 0.7rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--we387-accent);
}

.we387-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.we387-card {
  background: var(--we387-bg-card);
  border: 1px solid var(--we387-border);
  border-radius: 12px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.we387-card:hover {
  transform: translateY(-2px);
  border-color: var(--we387-primary);
  box-shadow: var(--we387-shadow);
}

.we387-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  background: #0d1526;
}

.we387-card-name {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.18rem;
  color: var(--we387-text);
  line-height: 1.6rem;
  height: 3.2rem;
  overflow: hidden;
  font-weight: 600;
}

/* ---------- Info / Promo blocks ---------- */
.we387-card-block {
  background: var(--we387-bg-soft);
  border: 1px solid var(--we387-border);
  border-radius: var(--we387-radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.we387-card-block h2 {
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
  color: var(--we387-text);
}

.we387-card-block h3 {
  font-size: 1.45rem;
  margin: 0.8rem 0 0.4rem;
  color: var(--we387-primary);
}

.we387-card-block p {
  margin: 0 0 0.6rem;
  color: var(--we387-text-dim);
  font-size: 1.35rem;
  line-height: 2.2rem;
}

.we387-text-link {
  color: var(--we387-accent);
  font-weight: 600;
  border-bottom: 1px dotted var(--we387-accent);
}

/* ---------- Play CTA ---------- */
.we387-play-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.we387-play-cta .we387-btn-register {
  padding: 0.8rem 1.6rem;
  font-size: 1.5rem;
}

/* ---------- Testimonial / Winners ---------- */
.we387-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.we387-mini {
  background: var(--we387-bg-card);
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 1.25rem;
  border: 1px solid var(--we387-border);
}

.we387-mini b { color: var(--we387-accent); display: block; font-size: 1.4rem; }

/* ---------- Payment row ---------- */
.we387-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.we387-pay-chip {
  background: var(--we387-bg-card);
  border: 1px solid var(--we387-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
  color: var(--we387-text);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Footer ---------- */
.we387-footer {
  margin-top: 2rem;
  padding: 1.6rem 1.4rem 2rem;
  background: var(--we387-bg-soft);
  border-top: 1px solid var(--we387-border);
  font-size: 1.3rem;
  color: var(--we387-text-dim);
}

.we387-footer h4 {
  color: var(--we387-text);
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
}

.we387-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0.6rem 0 1rem;
}

.we387-footer-links a {
  color: var(--we387-primary);
  font-size: 1.25rem;
}

.we387-footer-links a:hover { color: var(--we387-accent); }

.we387-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.we387-footer-copy {
  border-top: 1px dashed var(--we387-border);
  padding-top: 0.8rem;
  font-size: 1.2rem;
  color: var(--we387-text-dim);
}

/* ---------- Mobile Bottom Nav ---------- */
.we387-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(180deg, #243352 0%, #1B263B 100%);
  border-top: 1px solid var(--we387-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}

.we387-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--we387-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.we387-bottomnav-btn .material-icons,
.we387-bottomnav-btn ion-icon,
.we387-bottomnav-btn i {
  font-size: 24px;
}

.we387-bottomnav-btn:hover { color: var(--we387-primary); transform: translateY(-1px); }

.we387-bottomnav-active,
.we387-bottomnav-btn.we387-bottomnav-active {
  color: var(--we387-accent);
}

.we387-bottomnav-btn.we387-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--we387-accent);
}

.we387-bottomnav-btn { position: relative; }

/* ---------- Responsive: hide bottom nav on desktop ---------- */
@media (min-width: 769px) {
  .we387-bottomnav { display: none; }
  main.we387-main { padding-bottom: 2rem; }
}

/* Desktop centering within a 430px column */
@media (min-width: 431px) {
  .we387-bottomnav-inner,
  .we387-header-inner { max-width: 430px; }
  .we387-bottomnav { justify-content: center; }
  .we387-bottomnav-btn { max-width: 86px; }
}

/* RTL/Large Bengali text safety */
@media (max-width: 360px) {
  .we387-grid { grid-template-columns: repeat(2, 1fr); }
  .we387-logo-name { font-size: 1.5rem; }
}
