/**
 * 789bingo - Main Stylesheet
 * All classes use s0a9- prefix for namespace isolation
 * Color Palette: #98FB98 (Pale Green) | #1A1A1A (Dark) | #8B7355 (Brown) | #006400 (Dark Green)
 */

/* CSS Variables */
:root {
  --s0a9-primary: #98FB98;
  --s0a9-primary-dark: #7FE57E;
  --s0a9-secondary: #006400;
  --s0a9-accent: #8B7355;
  --s0a9-bg: #1A1A1A;
  --s0a9-bg-light: #2A2A2A;
  --s0a9-bg-card: #333333;
  --s0a9-text: #FFFFFF;
  --s0a9-text-muted: #B0B0B0;
  --s0a9-border: #444444;
  --s0a9-shadow: rgba(0, 0, 0, 0.5);
  --s0a9-gradient: linear-gradient(135deg, #98FB98 0%, #006400 100%);
  --s0a9-radius-sm: 4px;
  --s0a9-radius-md: 8px;
  --s0a9-radius-lg: 16px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--s0a9-text);
  background-color: var(--s0a9-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, li {
  list-style: none;
}

/* Container */
.s0a9-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.s0a9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--s0a9-bg);
  border-bottom: 2px solid var(--s0a9-primary);
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px var(--s0a9-shadow);
}

.s0a9-header.s0a9-hidden {
  transform: translateY(-100%);
}

.s0a9-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  max-width: 430px;
  margin: 0 auto;
}

.s0a9-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s0a9-primary);
}

.s0a9-logo img {
  width: 28px;
  height: 28px;
}

.s0a9-header-buttons {
  display: flex;
  gap: 12px;
}

.s0a9-btn {
  padding: 8px 16px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: var(--s0a9-radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s0a9-btn-register {
  background: var(--s0a9-primary);
  color: var(--s0a9-bg);
}

.s0a9-btn-register:hover {
  background: var(--s0a9-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(152, 251, 152, 0.4);
}

.s0a9-btn-login {
  background: transparent;
  color: var(--s0a9-primary);
  border: 2px solid var(--s0a9-primary);
}

.s0a9-btn-login:hover {
  background: var(--s0a9-primary);
  color: var(--s0a9-bg);
}

.s0a9-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}

.s0a9-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--s0a9-primary);
  transition: all 0.3s ease;
}

.s0a9-menu-toggle.s0a9-active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.s0a9-menu-toggle.s0a9-active span:nth-child(2) {
  opacity: 0;
}

.s0a9-menu-toggle.s0a9-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.s0a9-mobile-menu {
  position: fixed;
  top: 56px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 56px);
  background: var(--s0a9-bg);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 0;
}

.s0a9-mobile-menu.s0a9-active {
  left: 0;
}

.s0a9-mobile-menu a {
  display: block;
  padding: 16px 24px;
  font-size: 1.5rem;
  color: var(--s0a9-text);
  border-bottom: 1px solid var(--s0a9-border);
}

.s0a9-mobile-menu a:hover {
  background: var(--s0a9-bg-light);
  color: var(--s0a9-primary);
  padding-left: 32px;
}

.s0a9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.s0a9-menu-overlay.s0a9-active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.s0a9-main {
  padding-top: 76px;
  padding-bottom: 80px;
}

/* Hero Carousel */
.s0a9-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 24px;
}

.s0a9-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.s0a9-carousel-slide.s0a9-active {
  opacity: 1;
}

.s0a9-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s0a9-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.s0a9-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s0a9-carousel-dot.s0a9-active {
  background: var(--s0a9-primary);
  transform: scale(1.2);
}

/* Section */
.s0a9-section {
  margin-bottom: 32px;
}

.s0a9-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s0a9-primary);
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Grid */
.s0a9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.s0a9-game-item {
  position: relative;
  border-radius: var(--s0a9-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--s0a9-shadow);
}

.s0a9-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--s0a9-shadow);
}

.s0a9-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--s0a9-bg-card);
}

.s0a9-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px 6px 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--s0a9-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card */
.s0a9-card {
  background: var(--s0a9-bg-card);
  border-radius: var(--s0a9-radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px var(--s0a9-shadow);
}

.s0a9-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--s0a9-primary);
  margin-bottom: 12px;
}

.s0a9-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--s0a9-text-muted);
}

.s0a9-card-content p {
  margin-bottom: 12px;
}

.s0a9-card-content a {
  color: var(--s0a9-primary);
  font-weight: 600;
  text-decoration: underline;
}

.s0a9-card-content a:hover {
  color: var(--s0a9-primary-dark);
}

/* Promo Links */
.s0a9-promo-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--s0a9-gradient);
  color: var(--s0a9-bg);
  font-weight: 700;
  border-radius: var(--s0a9-radius-lg);
  margin: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s0a9-promo-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(152, 251, 152, 0.5);
}

/* Footer */
.s0a9-footer {
  background: var(--s0a9-bg-light);
  padding: 32px 16px 80px;
  margin-top: 48px;
  border-top: 2px solid var(--s0a9-primary);
}

.s0a9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.s0a9-footer-link {
  color: var(--s0a9-text-muted);
  font-size: 1.4rem;
  padding: 6px 12px;
  border: 1px solid var(--s0a9-border);
  border-radius: var(--s0a9-radius-md);
  transition: all 0.3s ease;
}

.s0a9-footer-link:hover {
  background: var(--s0a9-primary);
  color: var(--s0a9-bg);
  border-color: var(--s0a9-primary);
}

.s0a9-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.s0a9-partners img {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.s0a9-partners img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.s0a9-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--s0a9-text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--s0a9-border);
}

/* Bottom Navigation */
.s0a9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--s0a9-bg-light);
  border-top: 2px solid var(--s0a9-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--s0a9-shadow);
}

.s0a9-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  gap: 4px;
  color: var(--s0a9-text-muted);
  transition: all 0.3s ease;
}

.s0a9-bottom-nav a:hover {
  color: var(--s0a9-primary);
  transform: scale(1.1);
}

.s0a9-bottom-nav a.s0a9-active {
  color: var(--s0a9-primary);
}

.s0a9-bottom-nav i,
.s0a9-bottom-nav span.icon {
  font-size: 24px;
  line-height: 1;
}

.s0a9-bottom-nav .label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .s0a9-bottom-nav {
    display: none;
  }

  .s0a9-main {
    padding-bottom: 32px;
  }
}

/* Utility Classes */
.s0a9-text-center {
  text-align: center;
}

.s0a9-mt-1 {
  margin-top: 8px;
}

.s0a9-mt-2 {
  margin-top: 16px;
}

.s0a9-mt-3 {
  margin-top: 24px;
}

.s0a9-mb-1 {
  margin-bottom: 8px;
}

.s0a9-mb-2 {
  margin-bottom: 16px;
}

.s0a9-mb-3 {
  margin-bottom: 24px;
}

.s0a9-py-2 {
  padding-top: 16px;
  padding-bottom: 16px;
}
