/**
 * 29jl ph - Theme Stylesheet
 * All classes use sa1e- prefix for namespace isolation
 * Color palette: #1B263B | #BC8F8F | #7B68EE | #8B4513 | #D2B48C
 */

/* CSS Variables */
:root {
  --sa1e-bg: #1B263B;
  --sa1e-bg-light: #243352;
  --sa1e-bg-card: #1e2d47;
  --sa1e-rosy: #BC8F8F;
  --sa1e-slate: #7B68EE;
  --sa1e-saddle: #8B4513;
  --sa1e-tan: #D2B48C;
  --sa1e-text: #E8DCC8;
  --sa1e-text-muted: #A89B8C;
  --sa1e-white: #F5F0EB;
  --sa1e-border: rgba(210, 180, 140, 0.2);
  --sa1e-radius: 8px;
  --sa1e-radius-lg: 12px;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--sa1e-bg);
  color: var(--sa1e-text);
  font-size: 1.6rem;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sa1e-tan); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--sa1e-slate); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Container */
.sa1e-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.sa1e-wrapper { max-width: 430px; margin: 0 auto; }

/* ===== HEADER ===== */
.sa1e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--sa1e-bg) 0%, var(--sa1e-bg-light) 100%);
  border-bottom: 1px solid var(--sa1e-border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}
.sa1e-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.sa1e-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sa1e-logo img { width: 28px; height: 28px; border-radius: 4px; }
.sa1e-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sa1e-tan);
  white-space: nowrap;
}
.sa1e-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sa1e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--sa1e-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  min-height: 34px;
}
.sa1e-btn-register {
  background: linear-gradient(135deg, var(--sa1e-slate), #6354d4);
  color: #fff;
}
.sa1e-btn-register:hover { background: linear-gradient(135deg, #8a7cf7, var(--sa1e-slate)); transform: scale(1.05); }
.sa1e-btn-login {
  background: linear-gradient(135deg, var(--sa1e-saddle), #a65d1a);
  color: #fff;
}
.sa1e-btn-login:hover { background: linear-gradient(135deg, #a65d1a, var(--sa1e-saddle)); transform: scale(1.05); }
.sa1e-menu-toggle {
  background: none;
  border: none;
  color: var(--sa1e-tan);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.sa1e-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 38, 59, 0.97);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.sa1e-menu-active { transform: translateX(0); }
.sa1e-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  color: var(--sa1e-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--sa1e-border);
  transition: color 0.3s;
}
.sa1e-mobile-menu a:hover { color: var(--sa1e-slate); }
.sa1e-mobile-menu .material-icons { font-size: 2rem; color: var(--sa1e-tan); }

/* ===== CAROUSEL ===== */
.sa1e-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--sa1e-radius-lg);
  margin-top: 62px;
}
.sa1e-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.sa1e-carousel-slide img { width: 100%; height: auto; border-radius: var(--sa1e-radius-lg); }
.sa1e-slide-active { display: block; }
.sa1e-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.sa1e-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(210, 180, 140, 0.5);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.sa1e-carousel-dot.sa1e-dot-active { background: var(--sa1e-slate); width: 20px; border-radius: 4px; }

/* ===== SECTION TITLES ===== */
.sa1e-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sa1e-tan);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sa1e-slate);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sa1e-section-title i, .sa1e-section-title .material-icons { font-size: 2.2rem; color: var(--sa1e-slate); }

/* ===== GAME GRID ===== */
.sa1e-game-section { margin: 1.5rem 0; }
.sa1e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.sa1e-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.sa1e-game-card:hover { transform: translateY(-2px); }
.sa1e-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--sa1e-radius);
  border: 1px solid var(--sa1e-border);
  object-fit: cover;
}
.sa1e-game-card span {
  font-size: 1.1rem;
  color: var(--sa1e-text);
  margin-top: 0.3rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CONTENT BLOCKS ===== */
.sa1e-content-block {
  background: var(--sa1e-bg-card);
  border-radius: var(--sa1e-radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--sa1e-border);
}
.sa1e-content-block h2 {
  font-size: 1.8rem;
  color: var(--sa1e-tan);
  margin-bottom: 1rem;
}
.sa1e-content-block h3 {
  font-size: 1.5rem;
  color: var(--sa1e-rosy);
  margin: 1rem 0 0.5rem;
}
.sa1e-content-block p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--sa1e-text);
  margin-bottom: 0.8rem;
}

/* ===== CTA / PROMO ===== */
.sa1e-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--sa1e-slate), #6354d4);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}
.sa1e-cta-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(123, 104, 238, 0.4); color: #fff; }

/* ===== STATS BAR ===== */
.sa1e-stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 1.2rem 0;
  background: var(--sa1e-bg-light);
  border-radius: var(--sa1e-radius-lg);
  margin: 1rem 0;
}
.sa1e-stat-item {
  text-align: center;
}
.sa1e-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sa1e-slate);
}
.sa1e-stat-label {
  font-size: 1.1rem;
  color: var(--sa1e-text-muted);
}

/* ===== TESTIMONIAL ===== */
.sa1e-testimonial {
  background: var(--sa1e-bg-card);
  border-radius: var(--sa1e-radius-lg);
  padding: 1.2rem;
  margin: 0.8rem 0;
  border-left: 3px solid var(--sa1e-slate);
}
.sa1e-testimonial-text { font-size: 1.3rem; color: var(--sa1e-text); font-style: italic; margin-bottom: 0.5rem; }
.sa1e-testimonial-author { font-size: 1.1rem; color: var(--sa1e-tan); font-weight: 600; }

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

/* ===== FOOTER ===== */
.sa1e-footer {
  background: var(--sa1e-bg-light);
  padding: 2rem 1.2rem 6rem;
  margin-top: 2rem;
  border-top: 1px solid var(--sa1e-border);
}
.sa1e-footer-brand { font-size: 1.3rem; color: var(--sa1e-text-muted); margin-bottom: 1.2rem; line-height: 1.6; }
.sa1e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.sa1e-footer-link {
  background: linear-gradient(135deg, var(--sa1e-saddle), #a65d1a);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.sa1e-footer-link:hover { transform: scale(1.05); }
.sa1e-footer-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}
.sa1e-footer-site-links a {
  font-size: 1.2rem;
  color: var(--sa1e-tan);
  text-decoration: underline;
}
.sa1e-footer-site-links a:hover { color: var(--sa1e-slate); }
.sa1e-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sa1e-text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sa1e-border);
}

/* ===== BOTTOM NAVIGATION ===== */
.sa1e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, var(--sa1e-bg-light), var(--sa1e-bg));
  border-top: 1px solid var(--sa1e-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}
.sa1e-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sa1e-text-muted);
  transition: all 0.3s;
  gap: 2px;
}
.sa1e-bottom-btn:hover, .sa1e-bottom-btn:focus { color: var(--sa1e-slate); transform: scale(1.1); }
.sa1e-bottom-btn .sa1e-bnav-icon { font-size: 22px; }
.sa1e-bottom-btn .sa1e-bnav-label { font-size: 10px; white-space: nowrap; }
.sa1e-bottom-btn.sa1e-bnav-active { color: var(--sa1e-slate); }
.sa1e-bottom-btn.sa1e-bnav-active .sa1e-bnav-label { font-weight: 700; }

/* ===== FAQ ===== */
.sa1e-faq-item { margin: 1rem 0; }
.sa1e-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sa1e-tan);
  margin-bottom: 0.4rem;
  cursor: pointer;
}
.sa1e-faq-a {
  font-size: 1.3rem;
  color: var(--sa1e-text);
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 2px solid var(--sa1e-slate);
}

/* ===== WINNER TABLE ===== */
.sa1e-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sa1e-border);
  font-size: 1.2rem;
}
.sa1e-winner-name { color: var(--sa1e-tan); font-weight: 600; }
.sa1e-winner-game { color: var(--sa1e-text-muted); }
.sa1e-winner-amount { color: var(--sa1e-slate); font-weight: 700; }

/* ===== HELPER ===== */
.sa1e-mt1 { margin-top: 1rem; }
.sa1e-mt2 { margin-top: 2rem; }
.sa1e-mb1 { margin-bottom: 1rem; }
.sa1e-text-center { text-align: center; }
.sa1e-text-slate { color: var(--sa1e-slate); }
.sa1e-text-tan { color: var(--sa1e-tan); }
.sa1e-promo-text {
  color: var(--sa1e-slate);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
  .sa1e-bottom-nav { display: none; }
  .sa1e-container { max-width: 600px; }
  .sa1e-wrapper { max-width: 600px; }
  .sa1e-header-inner { max-width: 600px; }
  .sa1e-footer { padding-bottom: 2rem; }
}

/* ===== MOBILE OVERRIDES ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  body { padding-top: 56px; }
}
