/*
 * Jilijili33 Theme Stylesheet
 * All classes use prefix "sa40-"
 * Color palette: #00FF00, #273746, #00BFFF, #00FF7F, #0000CD
 * File: css/theme-a405.css
 */

/* CSS Variables */
:root {
  --sa40-primary: #00BFFF;
  --sa40-secondary: #00FF7F;
  --sa40-accent: #00FF00;
  --sa40-dark: #273746;
  --sa40-deep: #0000CD;
  --sa40-bg: #0a1628;
  --sa40-bg-card: #12233d;
  --sa40-bg-alt: #0d1e36;
  --sa40-text: #e8f4f8;
  --sa40-text-muted: #8fa8b8;
  --sa40-border: #1a3a5c;
  --sa40-gradient: linear-gradient(135deg, #00BFFF 0%, #0000CD 100%);
  --sa40-gradient-alt: linear-gradient(135deg, #00FF7F 0%, #00BFFF 100%);
  --sa40-shadow: 0 4px 20px rgba(0, 191, 255, 0.15);
  --sa40-radius: 10px;
}

/* Base Reset & Typography */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--sa40-bg);
  color: var(--sa40-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}
a { color: var(--sa40-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sa40-accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.sa40-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #0a1628 0%, #0d1e36 100%);
  border-bottom: 1px solid var(--sa40-border);
  padding: 0 1.2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.sa40-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.sa40-logo-area img { width: 32px; height: 32px; border-radius: 6px; }
.sa40-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--sa40-primary); }
.sa40-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.sa40-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: 6px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
}
.sa40-btn-register {
  background: var(--sa40-gradient); color: #fff;
  box-shadow: 0 2px 10px rgba(0, 191, 255, 0.3);
}
.sa40-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0, 191, 255, 0.5); }
.sa40-btn-login {
  background: transparent; color: var(--sa40-primary);
  border: 1px solid var(--sa40-primary);
}
.sa40-btn-login:hover { background: rgba(0, 191, 255, 0.1); }
.sa40-menu-toggle {
  background: none; border: none; color: var(--sa40-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
}

/* Mobile Menu */
.sa40-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.sa40-overlay-active { display: block; }
.sa40-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--sa40-bg-alt); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto; padding: 2rem 1.5rem;
}
.sa40-menu-active { right: 0; }
.sa40-menu-close {
  background: none; border: none; color: var(--sa40-text);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1.2rem;
}
.sa40-menu-links { margin-top: 3rem; list-style: none; }
.sa40-menu-links li { border-bottom: 1px solid var(--sa40-border); }
.sa40-menu-links a {
  display: block; padding: 1.2rem 0; color: var(--sa40-text);
  font-size: 1.4rem; transition: color 0.2s;
}
.sa40-menu-links a:hover { color: var(--sa40-primary); }

/* Carousel */
.sa40-carousel { position: relative; margin-top: 56px; overflow: hidden; border-radius: 0 0 1.2rem 1.2rem; }
.sa40-slides-wrapper { position: relative; width: 100%; }
.sa40-slide {
  display: none; width: 100%; cursor: pointer;
  border-radius: 0 0 1.2rem 1.2rem; overflow: hidden;
}
.sa40-slide-active { display: block; }
.sa40-slide img { width: 100%; height: 200px; object-fit: cover; }
.sa40-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.sa40-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.3s;
}
.sa40-dot-active { background: var(--sa40-primary); width: 20px; border-radius: 4px; }

/* Section Headings */
.sa40-section { padding: 2rem 0; }
.sa40-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  color: var(--sa40-text); position: relative; padding-left: 1.2rem;
}
.sa40-section-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 70%; background: var(--sa40-gradient); border-radius: 2px;
}
.sa40-subtitle { font-size: 1.3rem; color: var(--sa40-text-muted); margin-bottom: 1.5rem; }

/* Game Grid */
.sa40-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; padding: 0 1.2rem;
}
.sa40-game-card {
  background: var(--sa40-bg-card); border-radius: var(--sa40-radius);
  overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--sa40-border);
}
.sa40-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.2);
}
.sa40-game-card img { width: 100%; height: 90px; object-fit: cover; }
.sa40-game-name {
  padding: 0.5rem 0.6rem; font-size: 1.1rem; text-align: center;
  color: var(--sa40-text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-weight: 500;
}

/* Category Tabs (visual only, not interactive tabs) */
.sa40-cat-label {
  display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem;
  background: rgba(0, 191, 255, 0.12); color: var(--sa40-primary);
  border: 1px solid rgba(0, 191, 255, 0.25);
}

/* Content Card */
.sa40-card {
  background: var(--sa40-bg-card); border-radius: var(--sa40-radius);
  padding: 1.5rem; border: 1px solid var(--sa40-border);
  margin-bottom: 1.2rem;
}
.sa40-card h3 { font-size: 1.5rem; color: var(--sa40-primary); margin-bottom: 0.8rem; }
.sa40-card p { font-size: 1.3rem; color: var(--sa40-text-muted); line-height: 2rem; }

/* Promo Banner */
.sa40-promo-banner {
  background: var(--sa40-gradient); border-radius: var(--sa40-radius);
  padding: 1.5rem; text-align: center; margin: 1.5rem 0;
  cursor: pointer; transition: transform 0.2s;
}
.sa40-promo-banner:hover { transform: scale(1.02); }
.sa40-promo-banner h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.5rem; }
.sa40-promo-banner p { font-size: 1.2rem; color: rgba(255,255,255,0.85); }

/* CTA Button Large */
.sa40-cta {
  display: inline-block; background: var(--sa40-gradient); color: #fff;
  padding: 1rem 2.5rem; border-radius: 8px; font-size: 1.4rem;
  font-weight: 700; cursor: pointer; border: none;
  box-shadow: 0 4px 16px rgba(0, 191, 255, 0.35);
  transition: all 0.2s; text-align: center;
}
.sa40-cta:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(0, 191, 255, 0.5); }

/* Feature Grid */
.sa40-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sa40-feature-item {
  background: var(--sa40-bg-card); border-radius: var(--sa40-radius);
  padding: 1.2rem; text-align: center; border: 1px solid var(--sa40-border);
}
.sa40-feature-item i { font-size: 2.4rem; color: var(--sa40-primary); margin-bottom: 0.6rem; }
.sa40-feature-item h4 { font-size: 1.2rem; color: var(--sa40-text); margin-bottom: 0.4rem; }
.sa40-feature-item p { font-size: 1.1rem; color: var(--sa40-text-muted); }

/* Testimonial */
.sa40-testimonial {
  background: var(--sa40-bg-card); border-radius: var(--sa40-radius);
  padding: 1.2rem; border-left: 3px solid var(--sa40-primary);
  margin-bottom: 1rem;
}
.sa40-testimonial p { font-size: 1.3rem; color: var(--sa40-text); font-style: italic; }
.sa40-testimonial span { font-size: 1.1rem; color: var(--sa40-secondary); margin-top: 0.5rem; display: block; }

/* Winner Showcase */
.sa40-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; background: var(--sa40-bg-card);
  border-radius: 8px; margin-bottom: 0.6rem;
}
.sa40-winner-name { font-size: 1.2rem; color: var(--sa40-text); }
.sa40-winner-game { font-size: 1.1rem; color: var(--sa40-text-muted); }
.sa40-winner-amount { font-size: 1.3rem; color: var(--sa40-accent); font-weight: 700; }

/* Footer */
.sa40-footer {
  background: var(--sa40-bg-alt); padding: 2rem 1.2rem 8rem;
  border-top: 1px solid var(--sa40-border);
}
.sa40-footer-brand { font-size: 1.6rem; color: var(--sa40-primary); font-weight: 700; margin-bottom: 0.8rem; }
.sa40-footer-desc { font-size: 1.2rem; color: var(--sa40-text-muted); line-height: 1.8rem; margin-bottom: 1.5rem; }
.sa40-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.sa40-footer-links a {
  font-size: 1.2rem; color: var(--sa40-text-muted); padding: 0.4rem 0.8rem;
  background: var(--sa40-bg-card); border-radius: 4px; border: 1px solid var(--sa40-border);
}
.sa40-footer-links a:hover { color: var(--sa40-primary); border-color: var(--sa40-primary); }
.sa40-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.sa40-footer-copy { font-size: 1.1rem; color: var(--sa40-text-muted); text-align: center; }

/* Bottom Navigation */
.sa40-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #12233d 0%, #0a1628 100%);
  border-top: 1px solid var(--sa40-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.5rem;
}
.sa40-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--sa40-text-muted); cursor: pointer; transition: all 0.2s;
  border-radius: 8px; padding: 0.4rem;
}
.sa40-nav-btn i, .sa40-nav-btn .material-icons-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.sa40-nav-btn span { font-size: 1rem; }
.sa40-nav-btn:hover, .sa40-nav-btn-active {
  color: var(--sa40-primary); background: rgba(0, 191, 255, 0.08);
}
.sa40-nav-btn-pressed { transform: scale(0.92); }

/* Utility */
.sa40-text-center { text-align: center; }
.sa40-mt-1 { margin-top: 0.5rem; }
.sa40-mt-2 { margin-top: 1rem; }
.sa40-mb-2 { margin-bottom: 1rem; }
.sa40-p-2 { padding: 1rem; }
.sa40-text-accent { color: var(--sa40-accent); }
.sa40-text-primary { color: var(--sa40-primary); }
.sa40-text-sm { font-size: 1.2rem; }
.sa40-fw-bold { font-weight: 700; }
.sa40-highlight { color: var(--sa40-accent); font-weight: 600; }

/* Inner page content area */
.sa40-content-area { padding: 66px 1.2rem 80px; min-height: 100vh; }
.sa40-content-area h1 {
  font-size: 2rem; font-weight: 700; color: var(--sa40-text);
  margin-bottom: 1.2rem; line-height: 2.4rem;
}
.sa40-content-area h2 {
  font-size: 1.7rem; font-weight: 700; color: var(--sa40-primary);
  margin: 1.5rem 0 0.8rem;
}
.sa40-content-area h3 {
  font-size: 1.4rem; font-weight: 600; color: var(--sa40-text);
  margin: 1.2rem 0 0.6rem;
}
.sa40-content-area p {
  font-size: 1.3rem; color: var(--sa40-text-muted); line-height: 2rem; margin-bottom: 1rem;
}
.sa40-content-area ul, .sa40-content-area ol {
  padding-left: 2rem; margin-bottom: 1rem;
}
.sa40-content-area li {
  font-size: 1.3rem; color: var(--sa40-text-muted); line-height: 2rem; margin-bottom: 0.4rem;
}

/* Responsive - Desktop hide bottom nav */
@media (min-width: 769px) {
  .sa40-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .sa40-content-area, .sa40-wrapper, main {
    padding-bottom: 80px;
  }
}
