/* bajee.homes - core layout stylesheet
   All custom class names use the "v59b-" prefix.
   Color palette: #26A69A teal | #00E5FF cyan | #2C3E50 deep navy | #0097A7 dark teal
   Deep colors for backgrounds, light colors for text.
   Mobile-first, max-width 430px, rem units (root font 62.5%). */

:root {
  --v59b-primary: #26A69A;
  --v59b-accent: #00E5FF;
  --v59b-deep: #2C3E50;
  --v59b-dark-teal: #0097A7;
  --v59b-bg: #0f2a30;
  --v59b-bg-alt: #143541;
  --v59b-card: #173e4a;
  --v59b-text: #eaf7f8;
  --v59b-text-muted: #9fc4ca;
  --v59b-border: rgba(38, 166, 154, 0.28);
  --v59b-gold: #ffcf5c;
  --v59b-radius: 14px;
  --v59b-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v59b-header-h: 5.6rem;
  --v59b-bnav-h: 6.2rem;
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, var(--v59b-bg) 0%, var(--v59b-deep) 100%);
  color: var(--v59b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

body.v59b-no-scroll {
  overflow: hidden;
}

a {
  color: var(--v59b-accent);
  text-decoration: none;
}

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

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

/* ============ Header ============ */
.v59b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 42, 48, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--v59b-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.v59b-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--v59b-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  gap: 1rem;
}

.v59b-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v59b-text);
  font-weight: 700;
  font-size: 1.8rem;
}

.v59b-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
}

.v59b-logo .v59b-logo-text {
  background: linear-gradient(90deg, var(--v59b-accent), var(--v59b-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v59b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v59b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 3.6rem;
  font-family: inherit;
}

.v59b-btn:active {
  transform: scale(0.96);
}

.v59b-btn-login {
  background: transparent;
  color: var(--v59b-accent);
  border: 1px solid var(--v59b-accent);
}

.v59b-btn-register {
  background: linear-gradient(90deg, var(--v59b-primary), var(--v59b-dark-teal));
  color: #fff;
  box-shadow: 0 3px 10px rgba(38, 166, 154, 0.4);
}

.v59b-menu-btn {
  background: transparent;
  border: 1px solid var(--v59b-border);
  color: var(--v59b-text);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ============ Mobile Menu ============ */
.v59b-mobile-menu {
  position: fixed;
  top: var(--v59b-header-h);
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--v59b-bg-alt);
  border-bottom: 1px solid var(--v59b-border);
  z-index: 9999;
  transition: max-height 0.3s ease;
}

.v59b-mobile-menu.v59b-menu-open {
  max-height: 70vh;
  overflow-y: auto;
}

.v59b-mobile-menu ul {
  list-style: none;
  padding: 1rem 1.2rem 1.6rem;
}

.v59b-mobile-menu li {
  border-bottom: 1px solid rgba(38, 166, 154, 0.14);
}

.v59b-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.4rem;
  color: var(--v59b-text);
  font-size: 1.4rem;
}

.v59b-mobile-menu a i,
.v59b-mobile-menu a .material-icons-outlined {
  color: var(--v59b-primary);
  font-size: 1.8rem;
}

.v59b-mobile-menu-section {
  padding-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--v59b-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ Main ============ */
main {
  padding-top: calc(var(--v59b-header-h) + 1rem);
  padding-bottom: 1rem;
}

.v59b-section {
  margin: 2rem 0;
}

.v59b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v59b-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v59b-section-title i,
.v59b-section-title .material-icons {
  color: var(--v59b-accent);
}

.v59b-lead {
  color: var(--v59b-text-muted);
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

/* ============ Hero Carousel ============ */
.v59b-carousel {
  position: relative;
  border-radius: var(--v59b-radius);
  overflow: hidden;
  box-shadow: var(--v59b-shadow);
  margin-bottom: 1.5rem;
}

.v59b-slides {
  position: relative;
  height: 18rem;
}

.v59b-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--v59b-carousel-transition, 600ms) ease;
  cursor: pointer;
}

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

.v59b-slide.v59b-slide-active {
  opacity: 1;
}

.v59b-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(transparent, rgba(15, 42, 48, 0.85));
  color: #fff;
}

.v59b-slide-overlay h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.v59b-slide-overlay p {
  font-size: 1.2rem;
  color: var(--v59b-accent);
}

.v59b-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}

.v59b-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

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

/* ============ Category Pills ============ */
.v59b-pills {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.v59b-pill {
  flex: 0 0 auto;
  padding: 0.7rem 1.2rem;
  border-radius: 20px;
  background: var(--v59b-card);
  color: var(--v59b-text);
  font-size: 1.25rem;
  border: 1px solid var(--v59b-border);
  white-space: nowrap;
}

/* ============ Game Grid ============ */
.v59b-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v59b-game-card {
  background: var(--v59b-card);
  border: 1px solid var(--v59b-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v59b-game-card:active {
  transform: scale(0.97);
  box-shadow: 0 0 0 2px var(--v59b-accent);
}

.v59b-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.v59b-game-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--v59b-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Promo CTA banner ============ */
.v59b-cta {
  background: linear-gradient(110deg, var(--v59b-dark-teal), var(--v59b-primary));
  border-radius: var(--v59b-radius);
  padding: 1.6rem 1.4rem;
  color: #fff;
  text-align: center;
  box-shadow: var(--v59b-shadow);
  margin: 1.8rem 0;
}

.v59b-cta h3 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.v59b-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.v59b-cta .v59b-btn {
  background: var(--v59b-gold);
  color: #2C3E50;
  font-weight: 700;
  padding: 1rem 2rem;
}

/* ============ Info / Feature blocks ============ */
.v59b-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.v59b-feature {
  background: var(--v59b-card);
  border: 1px solid var(--v59b-border);
  border-radius: 12px;
  padding: 1.2rem;
}

.v59b-feature i,
.v59b-feature .material-icons-outlined {
  font-size: 2rem;
  color: var(--v59b-accent);
  margin-bottom: 0.5rem;
}

.v59b-feature h4 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.v59b-feature p {
  font-size: 1.15rem;
  color: var(--v59b-text-muted);
}

.v59b-faq details {
  background: var(--v59b-card);
  border: 1px solid var(--v59b-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  padding: 1rem 1.2rem;
}

.v59b-faq summary {
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.v59b-faq summary::after {
  content: "+";
  float: right;
  color: var(--v59b-accent);
  font-size: 1.6rem;
}

.v59b-faq details[open] summary::after {
  content: "-";
}

.v59b-faq p {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: var(--v59b-text-muted);
}

/* inline SEO link style */
.v59b-seo-link {
  color: var(--v59b-accent);
  font-weight: 600;
  border-bottom: 1px dotted var(--v59b-primary);
}

/* ============ Footer ============ */
.v59b-footer {
  background: var(--v59b-bg-alt);
  border-top: 1px solid var(--v59b-border);
  padding: 2rem 0 9rem;
  margin-top: 2rem;
}

.v59b-footer p {
  font-size: 1.2rem;
  color: var(--v59b-text-muted);
  margin-bottom: 0.8rem;
}

.v59b-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
  margin: 1rem 0 1.4rem;
}

.v59b-footer-links a {
  color: var(--v59b-text);
  font-size: 1.2rem;
  padding: 0.4rem 0;
}

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

.v59b-footer-promo .v59b-btn {
  flex: 1 1 auto;
  min-width: 45%;
}

.v59b-footer-copy {
  font-size: 1.1rem;
  color: var(--v59b-text-muted);
  text-align: center;
  margin-top: 1.2rem;
}

/* ============ Bottom Nav ============ */
.v59b-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v59b-bnav-h);
  background: linear-gradient(180deg, var(--v59b-bg-alt), #0a2228);
  border-top: 1px solid var(--v59b-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.v59b-bnav-btn {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v59b-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}

.v59b-bnav-btn i,
.v59b-bnav-btn .material-icons-outlined,
.v59b-bnav-btn .material-icons {
  font-size: 2.2rem;
}

.v59b-bnav-btn span {
  font-size: 1.05rem;
}

.v59b-bnav-btn:active {
  transform: scale(0.92);
}

.v59b-bnav-btn.v59b-bnav-active {
  color: var(--v59b-accent);
}

.v59b-bnav-btn.v59b-bnav-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.2rem;
  height: 0.3rem;
  border-radius: 0 0 4px 4px;
  background: var(--v59b-accent);
}

.v59b-bnav-promo {
  color: var(--v59b-gold);
}

/* mobile content clearance */
@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--v59b-bnav-h) + 1.2rem);
  }
}

/* hide bottom nav on desktop */
@media (min-width: 769px) {
  .v59b-bnav {
    display: none;
  }
  .v59b-container,
  .v59b-header-inner {
    max-width: 760px;
  }
}
