/**
 * BD365 Layout Stylesheet
 * Class prefix: sa42-
 * Theme: Gold & Dark
 */

/* === CSS Variables === */
:root {
  --sa42-primary: #DAA520;
  --sa42-secondary: #FFAA00;
  --sa42-bg: #3A3A3A;
  --sa42-bg-dark: #2A2A2A;
  --sa42-bg-light: #4A4A4A;
  --sa42-text: #C0C0C0;
  --sa42-text-light: #E0E0E0;
  --sa42-text-bright: #FFFFFF;
  --sa42-gold: #DAA520;
  --sa42-gold-light: #FFD700;
  --sa42-orange: #FFAA00;
  --sa42-silver: #C0C0C0;
  --sa42-radius: 8px;
  --sa42-radius-lg: 12px;
  --sa42-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --sa42-header-h: 52px;
  --sa42-bottom-h: 60px;
  --sa42-font: 'Segoe UI', 'Noto Sans Bengali', Arial, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--sa42-font);
  background: var(--sa42-bg);
  color: var(--sa42-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* === Container === */
.sa42-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.sa42-wrapper { padding: 1rem 0; }

/* === Header === */
.sa42-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--sa42-header-h);
  background: var(--sa42-bg-dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000;
  border-bottom: 1px solid var(--sa42-gold);
}
.sa42-header-left { display: flex; align-items: center; gap: 0.6rem; }
.sa42-logo { width: 28px; height: 28px; border-radius: 4px; }
.sa42-site-name { color: var(--sa42-gold); font-size: 1.6rem; font-weight: 700; }
.sa42-header-right { display: flex; align-items: center; gap: 0.6rem; }
.sa42-btn-register, .sa42-btn-login {
  padding: 0.5rem 1rem; border-radius: var(--sa42-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; min-height: 34px;
}
.sa42-btn-register {
  background: linear-gradient(135deg, var(--sa42-gold), var(--sa42-orange));
  color: var(--sa42-bg-dark);
}
.sa42-btn-login {
  background: transparent; color: var(--sa42-gold);
  border: 1px solid var(--sa42-gold);
}
.sa42-menu-btn {
  background: none; border: none; color: var(--sa42-gold);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center;
}

/* === Mobile Menu === */
.sa42-mobile-menu {
  position: fixed; top: 0; right: -280px;
  width: 260px; height: 100vh;
  background: var(--sa42-bg-dark); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.5rem;
  overflow-y: auto;
}
.sa42-menu-active { right: 0 !important; }
.sa42-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none;
}
.sa42-overlay-active { display: block; }
.sa42-menu-close {
  background: none; border: none; color: var(--sa42-gold);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1rem;
}
.sa42-menu-title {
  color: var(--sa42-gold); font-size: 1.8rem; font-weight: 700;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--sa42-gold);
}
.sa42-menu-links { list-style: none; }
.sa42-menu-links li { margin-bottom: 0.8rem; }
.sa42-menu-links a {
  color: var(--sa42-text-light); text-decoration: none;
  font-size: 1.4rem; display: block; padding: 0.6rem 0;
  border-bottom: 1px solid rgba(218,165,32,0.15);
  transition: color 0.2s;
}
.sa42-menu-links a:hover { color: var(--sa42-gold); }

/* === Bottom Navigation === */
.sa42-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--sa42-bottom-h);
  background: linear-gradient(180deg, var(--sa42-bg-dark), #1E1E1E);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--sa42-gold);
}
.sa42-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--sa42-silver); cursor: pointer;
  min-width: 60px; min-height: 54px; padding: 0.3rem;
  transition: all 0.2s ease;
}
.sa42-bottom-nav-btn:active { transform: scale(0.92); }
.sa42-bottom-nav-btn .sa42-nav-icon { font-size: 2.2rem; margin-bottom: 0.1rem; }
.sa42-bottom-nav-btn .sa42-nav-label { font-size: 1rem; line-height: 1.2rem; }
.sa42-nav-current { color: var(--sa42-gold) !important; }
.sa42-bottom-nav-btn:hover { color: var(--sa42-gold); }

/* === Main Content === */
main { padding-top: calc(var(--sa42-header-h) + 0.5rem); }
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--sa42-bottom-h) + 1rem); }
}

/* === Slider === */
.sa42-slider {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--sa42-radius); margin-bottom: 1.2rem;
}
.sa42-slide {
  display: none; width: 100%; cursor: pointer;
}
.sa42-slide-active { display: block; }
.sa42-slide img { width: 100%; height: auto; display: block; border-radius: var(--sa42-radius); }
.sa42-slider-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.sa42-slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  border: none; transition: background 0.3s;
}
.sa42-dot-active { background: var(--sa42-gold); }

/* === Section Headers === */
.sa42-section-title {
  color: var(--sa42-gold); font-size: 1.6rem; font-weight: 700;
  margin: 1.5rem 0 0.8rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sa42-gold);
}
.sa42-section-title .material-icons,
.sa42-section-title .fas,
.sa42-section-title .bi { margin-right: 0.4rem; }

/* === Category Tabs === */
.sa42-cat-tabs {
  display: flex; gap: 0.6rem; overflow-x: auto;
  padding: 0.6rem 0; margin-bottom: 0.8rem;
  -webkit-overflow-scrolling: touch;
}
.sa42-cat-tab {
  padding: 0.5rem 1.2rem; border-radius: 20px;
  background: var(--sa42-bg-light); color: var(--sa42-text);
  font-size: 1.2rem; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s;
}
.sa42-tab-active {
  background: var(--sa42-gold) !important;
  color: var(--sa42-bg-dark) !important;
  font-weight: 600;
}

/* === Game Grid === */
.sa42-cat-section { margin-bottom: 1.5rem; }
.sa42-cat-label {
  color: var(--sa42-orange); font-size: 1.4rem; font-weight: 600;
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem;
}
.sa42-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.sa42-card {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s;
  border-radius: var(--sa42-radius); overflow: hidden;
  background: var(--sa42-bg-light);
}
.sa42-card:active { transform: scale(0.95); }
.sa42-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--sa42-radius) var(--sa42-radius) 0 0;
}
.sa42-card-name {
  font-size: 1rem; color: var(--sa42-text-light);
  text-align: center; padding: 0.3rem 0.2rem;
  line-height: 1.2rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  width: 100%;
}

/* === Buttons & Links === */
.sa42-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: var(--sa42-radius);
  font-size: 1.4rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s;
  min-height: 44px; text-decoration: none;
}
.sa42-btn-gold {
  background: linear-gradient(135deg, var(--sa42-gold), var(--sa42-orange));
  color: var(--sa42-bg-dark);
}
.sa42-btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.sa42-btn-outline {
  background: transparent; color: var(--sa42-gold);
  border: 1px solid var(--sa42-gold);
}
.sa42-promo-link {
  color: var(--sa42-gold); font-weight: 600; text-decoration: none;
  cursor: pointer; transition: color 0.2s;
}
.sa42-promo-link:hover { color: var(--sa42-orange); }

/* === Content Sections === */
.sa42-content-block {
  background: var(--sa42-bg-light); border-radius: var(--sa42-radius-lg);
  padding: 1.2rem; margin-bottom: 1rem;
  border: 1px solid rgba(218,165,32,0.15);
}
.sa42-content-block h2 {
  color: var(--sa42-gold); font-size: 1.5rem; margin-bottom: 0.8rem;
}
.sa42-content-block h3 {
  color: var(--sa42-orange); font-size: 1.3rem; margin: 0.8rem 0 0.4rem;
}
.sa42-content-block p {
  font-size: 1.2rem; line-height: 1.8rem; margin-bottom: 0.6rem;
  color: var(--sa42-text);
}
.sa42-content-block ul {
  padding-left: 1.5rem; margin-bottom: 0.6rem;
}
.sa42-content-block li {
  font-size: 1.2rem; line-height: 1.8rem; color: var(--sa42-text);
  margin-bottom: 0.3rem;
}

/* === Payment Methods === */
.sa42-payment-grid {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; padding: 1rem 0;
}
.sa42-payment-item {
  background: var(--sa42-bg-light); border-radius: var(--sa42-radius);
  padding: 0.8rem 1.2rem; display: flex; align-items: center;
  gap: 0.5rem; border: 1px solid rgba(218,165,32,0.2);
}
.sa42-payment-item span {
  color: var(--sa42-gold); font-size: 1.3rem; font-weight: 600;
}

/* === Winners Showcase === */
.sa42-winners-list {
  display: flex; overflow-x: auto; gap: 0.8rem;
  padding: 0.6rem 0; -webkit-overflow-scrolling: touch;
}
.sa42-winner-card {
  min-width: 140px; background: var(--sa42-bg-light);
  border-radius: var(--sa42-radius); padding: 0.8rem;
  border: 1px solid rgba(218,165,32,0.2); text-align: center;
}
.sa42-winner-name { color: var(--sa42-gold); font-size: 1.2rem; font-weight: 600; }
.sa42-winner-amount { color: var(--sa42-orange); font-size: 1.4rem; font-weight: 700; }
.sa42-winner-game { color: var(--sa42-silver); font-size: 1rem; }

/* === Testimonials === */
.sa42-testimonial {
  background: var(--sa42-bg-light); border-radius: var(--sa42-radius-lg);
  padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--sa42-gold);
}
.sa42-testimonial-text { font-size: 1.2rem; font-style: italic; margin-bottom: 0.5rem; }
.sa42-testimonial-author { color: var(--sa42-gold); font-size: 1.1rem; font-weight: 600; }

/* === Footer === */
.sa42-footer {
  background: var(--sa42-bg-dark); padding: 1.5rem 1rem;
  border-top: 1px solid var(--sa42-gold);
  text-align: center;
}
.sa42-footer-desc {
  font-size: 1.2rem; color: var(--sa42-text); margin-bottom: 1rem;
  line-height: 1.6rem;
}
.sa42-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; margin-bottom: 1rem;
}
.sa42-footer-links a {
  color: var(--sa42-gold); text-decoration: none; font-size: 1.1rem;
  padding: 0.3rem 0.6rem; border: 1px solid rgba(218,165,32,0.3);
  border-radius: 4px; transition: all 0.2s;
}
.sa42-footer-links a:hover { background: rgba(218,165,32,0.1); }
.sa42-copyright {
  font-size: 1rem; color: var(--sa42-silver); opacity: 0.7;
  margin-top: 0.8rem;
}

/* === App Download CTA === */
.sa42-app-cta {
  background: linear-gradient(135deg, var(--sa42-bg-light), var(--sa42-bg-dark));
  border-radius: var(--sa42-radius-lg); padding: 1.2rem;
  text-align: center; border: 1px solid var(--sa42-gold);
  margin-bottom: 1rem;
}
.sa42-app-cta h3 { color: var(--sa42-gold); font-size: 1.5rem; margin-bottom: 0.6rem; }
.sa42-app-cta p { font-size: 1.2rem; margin-bottom: 0.8rem; }

/* === FAQ Accordion === */
.sa42-faq-item {
  background: var(--sa42-bg-light); border-radius: var(--sa42-radius);
  margin-bottom: 0.6rem; overflow: hidden;
  border: 1px solid rgba(218,165,32,0.15);
}
.sa42-faq-q {
  padding: 1rem; color: var(--sa42-gold); font-weight: 600;
  font-size: 1.3rem; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
}
.sa42-faq-a {
  padding: 0 1rem 1rem; font-size: 1.2rem; line-height: 1.6rem;
  color: var(--sa42-text);
}

/* === Feature Cards === */
.sa42-feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.8rem; margin: 1rem 0;
}
.sa42-feature-card {
  background: var(--sa42-bg-light); border-radius: var(--sa42-radius);
  padding: 1rem; text-align: center;
  border: 1px solid rgba(218,165,32,0.15);
}
.sa42-feature-card .sa42-feature-icon { font-size: 2.4rem; margin-bottom: 0.5rem; }
.sa42-feature-card h3 { color: var(--sa42-gold); font-size: 1.2rem; margin-bottom: 0.3rem; }
.sa42-feature-card p { font-size: 1rem; line-height: 1.4rem; }

/* === Utility Classes === */
.sa42-text-gold { color: var(--sa42-gold); }
.sa42-text-center { text-align: center; }
.sa42-mt-1 { margin-top: 1rem; }
.sa42-mb-1 { margin-bottom: 1rem; }
.sa42-hidden { display: none; }

/* === Desktop Hide === */
@media (min-width: 769px) {
  .sa42-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
}
