/**
 * 1111 Bet APK - Core Stylesheet
 * All classes use saa4- prefix for namespace isolation
 * Color palette: #FF9800 | #141414 | #DA70D6 | #006400 | #00FF7F
 * Mobile-first design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --saa4-primary: #FF9800;
  --saa4-bg: #141414;
  --saa4-bg-alt: #1e1e1e;
  --saa4-bg-card: #252525;
  --saa4-accent: #DA70D6;
  --saa4-success: #006400;
  --saa4-neon: #00FF7F;
  --saa4-text: #f0f0f0;
  --saa4-text-muted: #a0a0a0;
  --saa4-border: #333333;
  --saa4-radius: 8px;
  --saa4-radius-lg: 12px;
  --saa4-font-size-base: 62.5%;
}

/* === Reset & Base === */
html {
  font-size: var(--saa4-font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--saa4-bg);
  color: var(--saa4-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

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

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

.saa4-wrapper {
  max-width: 430px;
  margin: 0 auto;
}

/* === Header / Top Navigation === */
.saa4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #141414 0%, #1a1a2e 100%);
  border-bottom: 2px solid var(--saa4-primary);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.saa4-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.saa4-site-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--saa4-primary);
  white-space: nowrap;
}

.saa4-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saa4-btn-register {
  background: var(--saa4-primary);
  color: #000;
  border: none;
  padding: 6px 14px;
  border-radius: var(--saa4-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  min-height: 32px;
}

.saa4-btn-register:hover {
  background: #ffb733;
  transform: scale(1.05);
}

.saa4-btn-login {
  background: transparent;
  color: var(--saa4-neon);
  border: 1.5px solid var(--saa4-neon);
  padding: 5px 12px;
  border-radius: var(--saa4-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  min-height: 32px;
}

.saa4-btn-login:hover {
  background: rgba(0, 255, 127, 0.1);
  transform: scale(1.05);
}

/* === Hamburger Menu Button === */
.saa4-menu-btn {
  background: none;
  border: none;
  color: var(--saa4-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

/* === Mobile Slide Menu === */
.saa4-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #1a1a2e;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.saa4-menu-active {
  right: 0 !important;
}

.saa4-menu-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--saa4-text);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.saa4-menu-title {
  font-size: 1.6rem;
  color: var(--saa4-primary);
  margin-bottom: 2rem;
  font-weight: 700;
}

.saa4-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.saa4-menu-links li {
  border-bottom: 1px solid var(--saa4-border);
}

.saa4-menu-links a {
  display: block;
  padding: 1.2rem 0;
  color: var(--saa4-text);
  font-size: 1.4rem;
  transition: color 0.2s;
}

.saa4-menu-links a:hover {
  color: var(--saa4-primary);
}

/* === Menu Overlay === */
.saa4-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.saa4-overlay-active {
  display: block !important;
}

/* === Carousel / Slider === */
.saa4-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--saa4-radius-lg);
  margin-top: 64px;
  aspect-ratio: 16/8;
}

.saa4-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.saa4-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--saa4-radius-lg);
}

.saa4-slide-active {
  display: block !important;
}

.saa4-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

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

.saa4-dot-active {
  background: var(--saa4-primary) !important;
}

/* === Section Titles === */
.saa4-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--saa4-primary);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--saa4-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.saa4-section-title i {
  font-size: 2rem;
}

/* === Game Grid === */
.saa4-game-section {
  margin: 1.5rem 0;
}

.saa4-game-cat-title {
  font-size: 1.5rem;
  color: var(--saa4-neon);
  font-weight: 600;
  margin: 1.2rem 0 0.8rem 0;
  padding-left: 8px;
  border-left: 3px solid var(--saa4-accent);
}

.saa4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}

.saa4-game-card {
  background: var(--saa4-bg-card);
  border-radius: var(--saa4-radius);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.saa4-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  border-color: var(--saa4-primary);
}

.saa4-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.saa4-game-card span {
  display: block;
  font-size: 1rem;
  color: var(--saa4-text);
  margin-top: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Sections === */
.saa4-content-block {
  background: var(--saa4-bg-card);
  border-radius: var(--saa4-radius-lg);
  padding: 1.5rem;
  margin: 1.2rem 0;
  border: 1px solid var(--saa4-border);
}

.saa4-content-block h2 {
  font-size: 1.7rem;
  color: var(--saa4-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.saa4-content-block h3 {
  font-size: 1.5rem;
  color: var(--saa4-accent);
  margin: 1rem 0 0.6rem 0;
}

.saa4-content-block p {
  font-size: 1.3rem;
  color: var(--saa4-text-muted);
  line-height: 1.6;
  margin: 0.6rem 0;
}

.saa4-content-block ul {
  padding-left: 2rem;
  margin: 0.6rem 0;
}

.saa4-content-block li {
  font-size: 1.3rem;
  color: var(--saa4-text-muted);
  line-height: 1.6;
  margin: 0.4rem 0;
}

/* === Promo Link Styles === */
.saa4-promo-text {
  color: var(--saa4-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.saa4-promo-text:hover {
  color: var(--saa4-neon);
}

.saa4-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--saa4-primary), #ff6600);
  color: #000;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 10px 24px;
  border-radius: var(--saa4-radius);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.saa4-btn-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.5);
}

.saa4-btn-touch {
  transform: scale(0.95) !important;
}

/* === CTA Banner === */
.saa4-cta-banner {
  background: linear-gradient(135deg, var(--saa4-success), #004d00);
  border-radius: var(--saa4-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 2px solid var(--saa4-neon);
}

.saa4-cta-banner h3 {
  color: var(--saa4-neon);
  font-size: 1.6rem;
  margin: 0 0 0.8rem 0;
}

.saa4-cta-banner p {
  color: var(--saa4-text);
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
}

/* === Testimonials === */
.saa4-testimonial {
  background: var(--saa4-bg-card);
  border-radius: var(--saa4-radius);
  padding: 1rem;
  margin: 0.8rem 0;
  border-left: 3px solid var(--saa4-accent);
}

.saa4-testimonial-name {
  color: var(--saa4-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.saa4-testimonial-text {
  color: var(--saa4-text-muted);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* === Winners Showcase === */
.saa4-winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--saa4-bg-card);
  border-radius: var(--saa4-radius);
  margin: 6px 0;
}

.saa4-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--saa4-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #000;
}

.saa4-winner-info {
  flex: 1;
}

.saa4-winner-name {
  color: var(--saa4-text);
  font-size: 1.2rem;
  font-weight: 600;
}

.saa4-winner-amount {
  color: var(--saa4-neon);
  font-weight: 700;
  font-size: 1.3rem;
}

/* === Payment Methods === */
.saa4-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}

.saa4-payment-item {
  background: var(--saa4-bg-card);
  border-radius: var(--saa4-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--saa4-text);
  border: 1px solid var(--saa4-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Footer === */
.saa4-footer {
  background: #0a0a0a;
  padding: 2rem 1.2rem 6rem;
  border-top: 2px solid var(--saa4-primary);
}

.saa4-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.saa4-footer-brand p {
  font-size: 1.2rem;
  color: var(--saa4-text-muted);
  line-height: 1.5;
  max-width: 380px;
  margin: 0.5rem auto;
}

.saa4-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0;
}

.saa4-footer-links a {
  color: var(--saa4-accent);
  font-size: 1.1rem;
  padding: 4px 8px;
  border: 1px solid var(--saa4-border);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.saa4-footer-links a:hover {
  color: var(--saa4-primary);
  border-color: var(--saa4-primary);
}

.saa4-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0;
}

.saa4-footer-promo button {
  background: var(--saa4-primary);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: var(--saa4-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.saa4-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--saa4-text-muted);
  margin-top: 1.5rem;
}

/* === Bottom Navigation (Mobile) === */
.saa4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
  border-top: 2px solid var(--saa4-primary);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  max-width: 430px;
  margin: 0 auto;
}

.saa4-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--saa4-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 4px 0;
  position: relative;
}

.saa4-nav-btn i,
.saa4-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.saa4-nav-btn span {
  font-size: 1rem;
  line-height: 1;
}

.saa4-nav-btn:hover,
.saa4-nav-btn-active {
  color: var(--saa4-primary);
  transform: scale(1.1);
}

.saa4-nav-btn-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--saa4-primary);
  border-radius: 0 0 2px 2px;
}

.saa4-nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.8rem;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* === Main Content Spacing === */
.saa4-main {
  padding-top: 64px;
}

/* === H1 === */
.saa4-h1 {
  font-size: 2rem;
  color: var(--saa4-primary);
  margin: 1rem 0;
  font-weight: 800;
  line-height: 1.3;
}

/* === FAQ Styles === */
.saa4-faq-item {
  background: var(--saa4-bg-card);
  border-radius: var(--saa4-radius);
  padding: 1rem;
  margin: 0.6rem 0;
  border: 1px solid var(--saa4-border);
}

.saa4-faq-q {
  font-size: 1.3rem;
  color: var(--saa4-primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.saa4-faq-a {
  font-size: 1.2rem;
  color: var(--saa4-text-muted);
  line-height: 1.5;
}

/* === Responsive: Desktop === */
@media (min-width: 769px) {
  .saa4-bottom-nav {
    display: none;
  }
  .saa4-menu-btn {
    display: none;
  }
  .saa4-footer {
    padding-bottom: 2rem;
  }
}

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