/**
 * x baji - Main Stylesheet
 * Prefix: s526-
 * Palette: #708090 | #FF9800 | #2C2C2C | #FFB347 | #FFBF00
 * Mobile-first responsive design
 */

:root {
  --s526-primary: #FF9800;
  --s526-secondary: #FFB347;
  --s526-accent: #FFBF00;
  --s526-bg: #2C2C2C;
  --s526-bg-light: #3a3a3a;
  --s526-bg-card: #333333;
  --s526-text: #ffffff;
  --s526-text-muted: #cccccc;
  --s526-slate: #708090;
  --s526-border: #555555;
  --s526-success: #4CAF50;
  --s526-danger: #f44336;
  --s526-radius: 8px;
  --s526-radius-lg: 16px;
  --s526-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --s526-transition: all 0.3s ease;
}

/* Base reset and root font */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Arial, sans-serif;
  background: var(--s526-bg);
  color: var(--s526-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s526-primary); text-decoration: none; transition: var(--s526-transition); }
a:hover { color: var(--s526-accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* ============ HEADER ============ */
.s526-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 100%);
  border-bottom: 2px solid var(--s526-primary);
  padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.s526-header-brand {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
}
.s526-header-logo { width: 28px; height: 28px; border-radius: 50%; }
.s526-header-name {
  font-size: 1.6rem; font-weight: 700; color: var(--s526-primary);
  white-space: nowrap;
}
.s526-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.s526-header-actions .s526-btn-register {
  background: var(--s526-primary); color: #fff; border: none;
  padding: 0.5rem 1.2rem; border-radius: var(--s526-radius);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: var(--s526-transition);
}
.s526-header-actions .s526-btn-register:hover { background: var(--s526-accent); transform: scale(1.05); }
.s526-header-actions .s526-btn-login {
  background: transparent; color: var(--s526-primary);
  border: 1.5px solid var(--s526-primary);
  padding: 0.5rem 1.2rem; border-radius: var(--s526-radius);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: var(--s526-transition);
}
.s526-header-actions .s526-btn-login:hover { background: var(--s526-primary); color: #fff; }
.s526-menu-btn {
  background: none; border: none; color: var(--s526-primary);
  font-size: 2rem; cursor: pointer; padding: 0.2rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============ MOBILE MENU ============ */
.s526-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s ease;
}
.s526-overlay-active { display: block; opacity: 1; }
#s526-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: linear-gradient(180deg, #1a1a1a, #2C2C2C);
  z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.s526-menu-active { right: 0 !important; }
.s526-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--s526-primary);
  font-size: 2.4rem; cursor: pointer;
}
.s526-menu-title {
  font-size: 1.8rem; font-weight: 700; color: var(--s526-primary);
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--s526-primary);
}
.s526-menu-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; color: var(--s526-text); font-size: 1.4rem;
  border-bottom: 1px solid var(--s526-border);
  transition: var(--s526-transition);
}
.s526-menu-link:hover { color: var(--s526-primary); padding-left: 0.5rem; }
.s526-menu-link i, .s526-menu-link .material-icons { font-size: 2rem; color: var(--s526-primary); }

/* ============ SLIDER / CAROUSEL ============ */
.s526-slider {
  position: relative; width: 100%; overflow: hidden;
  margin-top: 5.2rem; border-radius: 0 0 var(--s526-radius) var(--s526-radius);
}
.s526-slides-wrapper { display: flex; width: 100%; }
.s526-slide {
  min-width: 100%; display: none; cursor: pointer;
  transition: opacity 0.5s ease;
}
.s526-slide img { width: 100%; height: 180px; object-fit: cover; }
.s526-slide-active { display: block; }
.s526-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.s526-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--s526-transition);
}
.s526-dot-active { background: var(--s526-primary); width: 20px; border-radius: 4px; }

/* ============ MAIN CONTENT ============ */
.s526-main { padding: 1rem 0; }
@media (max-width: 768px) {
  .s526-main { padding-bottom: 80px; }
}

/* Section headings */
.s526-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--s526-primary);
  margin: 1.5rem 0 1rem; padding-left: 1rem;
  border-left: 4px solid var(--s526-primary);
}
.s526-section-subtitle {
  font-size: 1.4rem; color: var(--s526-text-muted);
  margin-bottom: 1rem; padding: 0 1rem;
}

/* ============ GAME GRID ============ */
.s526-category-title {
  font-size: 1.5rem; font-weight: 700; color: var(--s526-accent);
  margin: 1.5rem 0 0.8rem; padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(255,152,0,0.15), transparent);
  border-left: 3px solid var(--s526-primary);
}
.s526-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0 0.5rem;
}
.s526-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--s526-transition);
  border-radius: var(--s526-radius); padding: 0.4rem;
}
.s526-game-item:hover { transform: translateY(-3px); background: rgba(255,152,0,0.1); }
.s526-game-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--s526-radius); border: 2px solid var(--s526-border);
  transition: var(--s526-transition);
}
.s526-game-item:hover .s526-game-img { border-color: var(--s526-primary); }
.s526-game-name {
  font-size: 1rem; color: var(--s526-text-muted); text-align: center;
  margin-top: 0.3rem; line-height: 1.2rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

/* ============ CARDS ============ */
.s526-card {
  background: var(--s526-bg-card); border-radius: var(--s526-radius-lg);
  padding: 1.2rem; margin: 1rem 0; border: 1px solid var(--s526-border);
}
.s526-card-title {
  font-size: 1.5rem; font-weight: 700; color: var(--s526-primary);
  margin-bottom: 0.8rem;
}
.s526-card-text { font-size: 1.3rem; color: var(--s526-text-muted); line-height: 1.8rem; }

/* ============ BUTTONS ============ */
.s526-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 2rem; border-radius: var(--s526-radius);
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  transition: var(--s526-transition); border: none;
}
.s526-btn-primary {
  background: linear-gradient(135deg, var(--s526-primary), var(--s526-accent));
  color: #fff;
}
.s526-btn-primary:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,152,0,0.4); }
.s526-btn-outline {
  background: transparent; color: var(--s526-primary);
  border: 2px solid var(--s526-primary);
}
.s526-btn-outline:hover { background: var(--s526-primary); color: #fff; }
.s526-btn-promo {
  background: linear-gradient(135deg, #FF9800, #FFB347, #FFBF00);
  color: #1a1a1a; font-weight: 800; padding: 1rem 2.5rem;
  border-radius: 3rem; box-shadow: 0 4px 20px rgba(255,152,0,0.5);
  animation: s526-glow 2s ease-in-out infinite;
}
@keyframes s526-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255,152,0,0.3); }
  50% { box-shadow: 0 4px 30px rgba(255,152,0,0.7); }
}

/* ============ PROMO LINKS ============ */
.s526-promo-text {
  color: var(--s526-accent); font-weight: 700; cursor: pointer;
  transition: var(--s526-transition); border-bottom: 1px dashed var(--s526-accent);
}
.s526-promo-text:hover { color: var(--s526-primary); }

/* ============ TESTIMONIALS ============ */
.s526-testimonial {
  background: linear-gradient(135deg, var(--s526-bg-card), var(--s526-bg-light));
  border-radius: var(--s526-radius); padding: 1rem 1.2rem;
  margin: 0.8rem 0; border-left: 3px solid var(--s526-primary);
}
.s526-testimonial-name {
  font-size: 1.3rem; font-weight: 700; color: var(--s526-primary);
}
.s526-testimonial-text {
  font-size: 1.2rem; color: var(--s526-text-muted); margin-top: 0.5rem;
  line-height: 1.6rem; font-style: italic;
}

/* ============ PAYMENT ICONS ============ */
.s526-payment-row {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin: 1rem 0;
}
.s526-payment-item {
  background: var(--s526-bg-light); border-radius: var(--s526-radius);
  padding: 0.5rem 1rem; font-size: 1.2rem; color: var(--s526-text-muted);
  border: 1px solid var(--s526-border);
}

/* ============ FOOTER ============ */
.s526-footer {
  background: linear-gradient(180deg, #1a1a1a, #111111);
  padding: 2rem 1rem 8rem; margin-top: 2rem;
  border-top: 2px solid var(--s526-primary);
}
.s526-footer-brand {
  font-size: 1.6rem; font-weight: 700; color: var(--s526-primary);
  margin-bottom: 0.8rem;
}
.s526-footer-desc {
  font-size: 1.2rem; color: var(--s526-text-muted); line-height: 1.6rem;
  margin-bottom: 1.5rem;
}
.s526-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.s526-footer-link {
  color: var(--s526-text-muted); font-size: 1.2rem;
  transition: var(--s526-transition);
}
.s526-footer-link:hover { color: var(--s526-primary); }
.s526-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0;
}
.s526-footer-promo .s526-btn {
  font-size: 1.1rem; padding: 0.5rem 1.2rem;
}
.s526-footer-copy {
  font-size: 1.1rem; color: var(--s526-slate);
  margin-top: 1.5rem; text-align: center;
  border-top: 1px solid var(--s526-border); padding-top: 1rem;
}

/* ============ BOTTOM NAV (Mobile) ============ */
.s526-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a, #111111);
  border-top: 2px solid var(--s526-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.3rem;
}
.s526-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 54px;
  background: none; border: none; color: var(--s526-text-muted);
  cursor: pointer; transition: var(--s526-transition);
  border-radius: var(--s526-radius); padding: 0.2rem;
}
.s526-bottom-btn:hover, .s526-bottom-btn:focus { color: var(--s526-primary); transform: scale(1.1); }
.s526-bottom-btn-active { color: var(--s526-primary) !important; }
.s526-bottom-btn i, .s526-bottom-btn .material-icons,
.s526-bottom-btn ion-icon, .s526-bottom-btn bi {
  font-size: 2.2rem; margin-bottom: 0.1rem;
}
.s526-bottom-btn span { font-size: 1rem; font-weight: 600; }
@media (min-width: 769px) {
  .s526-bottom-nav { display: none; }
  .s526-footer { padding-bottom: 2rem; }
  .s526-main { padding-bottom: 1rem; }
}

/* ============ WINNERS LIST ============ */
.s526-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid var(--s526-border);
}
.s526-winner-name { font-size: 1.2rem; color: var(--s526-text); font-weight: 600; }
.s526-winner-game { font-size: 1.1rem; color: var(--s526-text-muted); }
.s526-winner-amount { font-size: 1.3rem; color: var(--s526-accent); font-weight: 700; }

/* ============ FAQ ============ */
.s526-faq-item {
  background: var(--s526-bg-card); border-radius: var(--s526-radius);
  margin: 0.8rem 0; padding: 1rem 1.2rem;
  border: 1px solid var(--s526-border);
}
.s526-faq-q {
  font-size: 1.4rem; font-weight: 700; color: var(--s526-primary);
  margin-bottom: 0.5rem;
}
.s526-faq-a {
  font-size: 1.3rem; color: var(--s526-text-muted); line-height: 1.7rem;
}

/* ============ HELPERS ============ */
.s526-text-center { text-align: center; }
.s526-text-primary { color: var(--s526-primary); }
.s526-text-accent { color: var(--s526-accent); }
.s526-mt-1 { margin-top: 1rem; }
.s526-mb-1 { margin-bottom: 1rem; }
.s526-p-1 { padding: 1rem; }
.s526-flex-center { display: flex; align-items: center; justify-content: center; }
.s526-gap-1 { gap: 1rem; }

/* ============ ANIMATIONS ============ */
@keyframes s526-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.s526-animate-in {
  animation: s526-fadeIn 0.5s ease forwards;
}

/* Responsive fine-tuning */
@media (max-width: 360px) {
  .s526-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .s526-header-name { font-size: 1.3rem; }
  .s526-header-actions .s526-btn-register,
  .s526-header-actions .s526-btn-login { padding: 0.4rem 0.8rem; font-size: 1.1rem; }
}
