/**
 * bet100apk Main Stylesheet
 * Prefix: s989-
 * Color Palette: #2E4057 (dark bg), #87CEEB (primary), #AFEEEE (accent), #E5E5E5 (text light)
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Variables */
:root {
  --s989-primary: #87CEEB;
  --s989-accent: #AFEEEE;
  --s989-bg-dark: #2E4057;
  --s989-bg-light: #1a2d42;
  --s989-text-light: #E5E5E5;
  --s989-text-muted: #a0b4c8;
  --s989-gold: #FFD700;
  --s989-green: #4CAF50;
  --s989-red: #FF5252;
  --s989-radius: 10px;
  --s989-shadow: 0 2px 12px rgba(0,0,0,0.25);
  --s989-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--s989-bg-dark);
  color: var(--s989-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

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

a:hover {
  color: var(--s989-accent);
}

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

/* ===== HEADER ===== */
.s989-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 54px;
  background: linear-gradient(135deg, #1a2d42 0%, #2E4057 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
  border-bottom: 1px solid rgba(135,206,235,0.2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.s989-logo-area {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s989-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.s989-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s989-btn-register,
.s989-btn-login {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s989-transition);
  min-height: 32px;
}

.s989-btn-register {
  background: linear-gradient(135deg, var(--s989-primary), #5fb8d4);
  color: var(--s989-bg-dark);
}

.s989-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(135,206,235,0.5);
}

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

.s989-btn-login:hover {
  background: rgba(135,206,235,0.1);
}

.s989-menu-toggle {
  background: none;
  border: none;
  color: var(--s989-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

/* ===== MOBILE MENU ===== */
.s989-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.s989-overlay-active {
  display: block;
}

.s989-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #1a2d42 0%, #162236 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px 0;
  overflow-y: auto;
}

.s989-menu-active {
  right: 0;
}

.s989-mobile-menu .s989-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(135,206,235,0.15);
}

.s989-mobile-menu .s989-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s989-primary);
}

.s989-menu-close {
  background: none;
  border: none;
  color: var(--s989-text-light);
  font-size: 2rem;
  cursor: pointer;
}

.s989-mobile-menu ul {
  list-style: none;
  padding: 10px 0;
}

.s989-mobile-menu ul li a {
  display: block;
  padding: 12px 20px;
  color: var(--s989-text-light);
  font-size: 1.4rem;
  transition: var(--s989-transition);
  border-left: 3px solid transparent;
}

.s989-mobile-menu ul li a:hover {
  background: rgba(135,206,235,0.08);
  border-left-color: var(--s989-primary);
  color: var(--s989-primary);
}

/* ===== MAIN CONTENT ===== */
.s989-main {
  margin-top: 54px;
  padding: 0;
  min-height: calc(100vh - 54px);
}

@media (max-width: 768px) {
  .s989-main {
    padding-bottom: 80px;
  }
}

/* ===== CAROUSEL ===== */
.s989-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 430/200;
  background: var(--s989-bg-light);
}

.s989-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}

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

.s989-slide-active {
  display: block;
  animation: s989fadeSlide 0.6s ease;
}

@keyframes s989fadeSlide {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.s989-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.s989-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--s989-transition);
}

.s989-dot-active {
  background: var(--s989-primary);
  transform: scale(1.3);
}

/* ===== SECTION TITLES ===== */
.s989-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s989-primary);
  padding: 16px 12px 8px;
  border-bottom: 2px solid rgba(135,206,235,0.2);
  margin-bottom: 8px;
}

.s989-section-title i {
  margin-right: 6px;
}

/* ===== GAME GRID ===== */
.s989-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 8px 12px;
}

.s989-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 3px;
  border-radius: var(--s989-radius);
  transition: var(--s989-transition);
  cursor: pointer;
  background: rgba(255,255,255,0.03);
}

.s989-game-item:hover {
  background: rgba(135,206,235,0.1);
  transform: translateY(-2px);
}

.s989-game-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.s989-game-item span {
  font-size: 1rem;
  color: var(--s989-text-light);
  text-align: center;
  line-height: 1.2;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT SECTIONS ===== */
.s989-content-section {
  padding: 14px 12px;
  background: var(--s989-bg-light);
  margin: 8px 0;
  border-radius: var(--s989-radius);
}

.s989-content-section h2 {
  font-size: 1.7rem;
  color: var(--s989-primary);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(135,206,235,0.15);
}

.s989-content-section h3 {
  font-size: 1.5rem;
  color: var(--s989-accent);
  margin: 10px 0 6px;
}

.s989-content-section p {
  font-size: 1.3rem;
  line-height: 1.7rem;
  color: var(--s989-text-muted);
  margin-bottom: 8px;
}

.s989-promo-link {
  color: var(--s989-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--s989-transition);
}

.s989-promo-link:hover {
  color: #ffed4a;
}

/* ===== CTA BUTTON ===== */
.s989-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--s989-primary), #5fb8d4);
  color: var(--s989-bg-dark);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--s989-transition);
  min-height: 44px;
}

.s989-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(135,206,235,0.4);
}

/* ===== RTP TABLE ===== */
.s989-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 1.2rem;
}

.s989-rtp-table th {
  background: rgba(135,206,235,0.15);
  color: var(--s989-primary);
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
}

.s989-rtp-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--s989-text-muted);
}

.s989-rtp-table tr:hover td {
  background: rgba(135,206,235,0.05);
}

/* ===== TESTIMONIAL ===== */
.s989-testimonial {
  background: rgba(135,206,235,0.06);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 6px 0;
  border-left: 3px solid var(--s989-primary);
}

.s989-testimonial p {
  font-style: italic;
  margin-bottom: 4px;
}

.s989-testimonial .s989-author {
  font-size: 1.1rem;
  color: var(--s989-accent);
  font-style: normal;
}

/* ===== FOOTER ===== */
.s989-footer {
  background: linear-gradient(180deg, #162236 0%, #0f1a2a 100%);
  padding: 16px 12px 24px;
  margin-top: 12px;
}

.s989-footer-brand {
  text-align: center;
  padding: 10px 0;
}

.s989-footer-brand p {
  font-size: 1.2rem;
  color: var(--s989-text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.s989-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.s989-footer-links a {
  padding: 6px 12px;
  background: rgba(135,206,235,0.08);
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--s989-text-light);
  transition: var(--s989-transition);
}

.s989-footer-links a:hover {
  background: rgba(135,206,235,0.2);
  color: var(--s989-primary);
}

.s989-footer-partners {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.s989-footer-partners img {
  height: 24px;
  opacity: 0.6;
  transition: var(--s989-transition);
}

.s989-footer-partners img:hover {
  opacity: 1;
}

.s989-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--s989-text-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== BOTTOM NAV ===== */
.s989-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #1e3550 0%, #152538 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid rgba(135,206,235,0.15);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}

.s989-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--s989-text-muted);
  cursor: pointer;
  transition: var(--s989-transition);
  padding: 2px 4px;
  border-radius: 8px;
}

.s989-bnav-btn i,
.s989-bnav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  transition: var(--s989-transition);
}

.s989-bnav-btn span {
  font-size: 1rem;
  line-height: 1.1;
}

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

.s989-bnav-btn:hover i,
.s989-bnav-active i,
.s989-bnav-btn:hover .material-icons,
.s989-bnav-active .material-icons {
  text-shadow: 0 0 10px rgba(135,206,235,0.6);
}

/* ===== FEATURES LIST ===== */
.s989-feature-list {
  list-style: none;
  padding: 0;
}

.s989-feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1.3rem;
  color: var(--s989-text-muted);
}

.s989-feature-list li i {
  color: var(--s989-primary);
  margin-top: 2px;
  font-size: 1.4rem;
}

/* ===== WINNER LIST ===== */
.s989-winner-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(135,206,235,0.04);
  border-radius: 6px;
  margin: 4px 0;
  font-size: 1.2rem;
}

.s989-winner-item .s989-winner-game {
  color: var(--s989-accent);
  font-weight: 600;
}

.s989-winner-item .s989-winner-amount {
  color: var(--s989-gold);
  font-weight: 700;
}

/* ===== PAYMENT ICONS ===== */
.s989-payment-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.s989-payment-item {
  background: rgba(255,255,255,0.06);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--s989-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .s989-bottom-nav {
    display: none;
  }
  .s989-menu-toggle {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

/* ===== UTILITY ===== */
.s989-text-center {
  text-align: center;
}

.s989-mt-8 {
  margin-top: 8px;
}

.s989-mb-8 {
  margin-bottom: 8px;
}

.s989-py-12 {
  padding: 12px 0;
}

.s989-px-12 {
  padding: 0 12px;
}

.s989-hidden {
  display: none !important;
}

/* ===== DESKTOP NAV (hidden on mobile) ===== */
.s989-desktop-nav {
  display: none;
}

/* ===== APP DOWNLOAD CTA ===== */
.s989-app-cta {
  background: linear-gradient(135deg, rgba(135,206,235,0.15) 0%, rgba(175,238,238,0.1) 100%);
  border-radius: var(--s989-radius);
  padding: 16px 12px;
  text-align: center;
  border: 1px dashed rgba(135,206,235,0.3);
}

.s989-app-cta h3 {
  color: var(--s989-primary);
  margin-bottom: 8px;
}

.s989-app-cta p {
  color: var(--s989-text-muted);
  margin-bottom: 12px;
}
