/**
 * jilijili.cfd - Core Stylesheet
 * All classes use s3b3- prefix for namespace isolation
 * Color Palette: #212F3D | #00B8D4 | #8B4513 | #F5DEB3 | #004D40
 * Mobile-first design, max-width 430px
 */

:root {
  --s3b3-primary: #00B8D4;
  --s3b3-bg: #212F3D;
  --s3b3-bg-dark: #1a252f;
  --s3b3-bg-card: #2a3a4a;
  --s3b3-text: #F5DEB3;
  --s3b3-text-light: #e8d5a8;
  --s3b3-accent: #8B4513;
  --s3b3-green: #004D40;
  --s3b3-green-light: #00796b;
  --s3b3-border: #3a4a5a;
  --s3b3-radius: 8px;
  --s3b3-radius-lg: 12px;
  --s3b3-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --s3b3-header-h: 56px;
  --s3b3-bottom-h: 60px;
}

*, *::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', Tahoma, sans-serif;
  background: var(--s3b3-bg);
  color: var(--s3b3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--s3b3-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === HEADER === */
.s3b3-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s3b3-header-h);
  background: var(--s3b3-bg-dark);
  border-bottom: 2px solid var(--s3b3-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.s3b3-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.s3b3-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.s3b3-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s3b3-primary);
  letter-spacing: 0.5px;
}

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

.s3b3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--s3b3-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.s3b3-btn-register {
  background: var(--s3b3-primary);
  color: var(--s3b3-bg-dark);
}

.s3b3-btn-register:hover {
  background: #33c4dd;
  transform: scale(1.03);
}

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

.s3b3-btn-login:hover {
  background: rgba(0,184,212,0.1);
}

.s3b3-menu-toggle {
  background: none;
  border: none;
  color: var(--s3b3-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === MOBILE MENU === */
.s3b3-mobile-menu {
  display: none;
  position: fixed;
  top: var(--s3b3-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--s3b3-bg-dark);
  border-bottom: 2px solid var(--s3b3-primary);
  z-index: 9999;
  padding: 1rem 0;
}

.s3b3-menu-active {
  display: block !important;
}

.s3b3-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--s3b3-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--s3b3-border);
  transition: background 0.2s;
}

.s3b3-mobile-menu a:hover {
  background: rgba(0,184,212,0.1);
  text-decoration: none;
}

/* === MAIN CONTENT === */
.s3b3-main {
  padding-top: calc(var(--s3b3-header-h) + 0.5rem);
  padding-bottom: 2rem;
}

/* === CAROUSEL === */
.s3b3-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--s3b3-radius-lg) var(--s3b3-radius-lg);
}

.s3b3-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.s3b3-slide:first-child {
  display: block;
}

.s3b3-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.s3b3-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.6rem;
  z-index: 10;
}

.s3b3-carousel-prev { left: 0.5rem; border-radius: 0 var(--s3b3-radius) var(--s3b3-radius) 0; }
.s3b3-carousel-next { right: 0.5rem; border-radius: var(--s3b3-radius) 0 0 var(--s3b3-radius); }

/* === SECTIONS === */
.s3b3-section {
  padding: 1.5rem 1rem;
}

.s3b3-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s3b3-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s3b3-green);
}

/* === GAME GRID === */
.s3b3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.s3b3-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.s3b3-game-item:hover {
  transform: scale(1.05);
}

.s3b3-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--s3b3-radius);
  border: 2px solid var(--s3b3-border);
}

.s3b3-game-item span {
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0.3rem;
  color: var(--s3b3-text-light);
  line-height: 1.3rem;
  max-height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === CATEGORY TITLE === */
.s3b3-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s3b3-primary);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--s3b3-accent);
}

/* === CONTENT CARDS === */
.s3b3-card {
  background: var(--s3b3-bg-card);
  border-radius: var(--s3b3-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--s3b3-border);
}

.s3b3-card h3 {
  color: var(--s3b3-primary);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.s3b3-card p {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: var(--s3b3-text-light);
  margin-bottom: 0.8rem;
}

.s3b3-promo-text {
  color: var(--s3b3-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.s3b3-promo-text:hover {
  color: #33c4dd;
  text-decoration: underline;
}

/* === CTA BUTTON === */
.s3b3-cta-btn {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--s3b3-primary), var(--s3b3-green-light));
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: var(--s3b3-radius-lg);
  cursor: pointer;
  border: none;
  margin: 1.5rem 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.s3b3-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,184,212,0.4);
}

/* === FOOTER === */
.s3b3-footer {
  background: var(--s3b3-bg-dark);
  padding: 2rem 1rem 1rem;
  border-top: 2px solid var(--s3b3-green);
}

.s3b3-footer-brand {
  font-size: 1.3rem;
  color: var(--s3b3-text-light);
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}

.s3b3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.s3b3-footer-links a {
  background: var(--s3b3-bg-card);
  color: var(--s3b3-text);
  padding: 0.5rem 1rem;
  border-radius: var(--s3b3-radius);
  font-size: 1.1rem;
  border: 1px solid var(--s3b3-border);
  transition: background 0.2s;
}

.s3b3-footer-links a:hover {
  background: var(--s3b3-primary);
  color: var(--s3b3-bg-dark);
  text-decoration: none;
}

.s3b3-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  padding-top: 1rem;
  border-top: 1px solid var(--s3b3-border);
}

/* === BOTTOM NAVIGATION === */
.s3b3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s3b3-bottom-h);
  background: var(--s3b3-bg-dark);
  border-top: 2px solid var(--s3b3-green);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.s3b3-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(--s3b3-text);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--s3b3-radius);
  transition: all 0.2s ease;
}

.s3b3-bottom-btn i,
.s3b3-bottom-btn .material-icons,
.s3b3-bottom-btn ion-icon,
.s3b3-bottom-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.s3b3-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.s3b3-bottom-btn:hover,
.s3b3-bottom-btn.s3b3-active {
  color: var(--s3b3-primary);
  transform: scale(1.08);
}

.s3b3-bottom-btn:active {
  transform: scale(0.95);
  background: rgba(0,184,212,0.1);
}

/* === DESKTOP: hide bottom nav === */
@media (min-width: 769px) {
  .s3b3-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* === MOBILE: bottom padding for nav clearance === */
@media (max-width: 768px) {
  .s3b3-main {
    padding-bottom: calc(var(--s3b3-bottom-h) + 1rem);
  }
  .s3b3-footer {
    padding-bottom: calc(var(--s3b3-bottom-h) + 1rem);
  }
}

/* === FAQ SECTION === */
.s3b3-faq-item {
  background: var(--s3b3-bg-card);
  border-radius: var(--s3b3-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--s3b3-primary);
}

.s3b3-faq-item h3 {
  color: var(--s3b3-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.s3b3-faq-item p {
  font-size: 1.2rem;
  color: var(--s3b3-text-light);
  line-height: 1.5rem;
}

/* === WINNER TABLE === */
.s3b3-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--s3b3-border);
  font-size: 1.2rem;
}

.s3b3-winner-name {
  color: var(--s3b3-primary);
  font-weight: 600;
}

.s3b3-winner-amount {
  color: var(--s3b3-accent);
  font-weight: 700;
}

/* === PAYMENT METHODS === */
.s3b3-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.s3b3-payment-item {
  background: var(--s3b3-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: var(--s3b3-radius);
  font-size: 1.2rem;
  color: var(--s3b3-text);
  border: 1px solid var(--s3b3-border);
}

/* === TESTIMONIALS === */
.s3b3-testimonial {
  background: var(--s3b3-bg-card);
  border-radius: var(--s3b3-radius-lg);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--s3b3-border);
}

.s3b3-testimonial-name {
  color: var(--s3b3-primary);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.s3b3-testimonial-text {
  font-size: 1.2rem;
  color: var(--s3b3-text-light);
  line-height: 1.5rem;
  font-style: italic;
}

/* === LIST STYLES === */
.s3b3-list {
  list-style: none;
  padding: 0;
}

.s3b3-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 1.3rem;
  line-height: 1.5rem;
}

.s3b3-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--s3b3-primary);
  font-size: 1rem;
}

/* === RTP TABLE === */
.s3b3-rtp-table {
  width: 100%;
  border-collapse: collapse;
}

.s3b3-rtp-table th,
.s3b3-rtp-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--s3b3-border);
  font-size: 1.2rem;
}

.s3b3-rtp-table th {
  color: var(--s3b3-primary);
  font-weight: 600;
}

.s3b3-rtp-bar {
  height: 6px;
  background: var(--s3b3-border);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.s3b3-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--s3b3-primary), var(--s3b3-green-light));
  border-radius: 3px;
}

/* === UTILITY === */
.s3b3-text-center { text-align: center; }
.s3b3-mb-1 { margin-bottom: 1rem; }
.s3b3-mb-2 { margin-bottom: 2rem; }
.s3b3-mt-1 { margin-top: 1rem; }
.s3b3-hidden { display: none !important; }
