/**
 * JL7777 Platform - Design System CSS
 * Version: 1.0.0
 * Mobile-first responsive design for optimal gaming experience
 */

/* CSS Variables - Design Tokens */
:root {
  --vaab-primary: #90EE90;
  --vaab-secondary: #9966CC;
  --vaab-accent: #20B2AA;
  --vaab-success: #98FB98;
  --vaab-dark: #262626;
  --vaab-darker: #1a1a1a;
  --vaab-text: #ffffff;
  --vaab-text-muted: #cccccc;
  --vaab-border: #404040;
  --vaab-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset and 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.4rem;
  line-height: 1.6;
  color: var(--vaab-text);
  background-color: var(--vaab-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.vaab-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.vaab-wrapper {
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .vaab-wrapper {
    padding-bottom: 0;
  }
}

/* Header Styles */
.vaab-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--vaab-darker) 0%, var(--vaab-dark) 100%);
  box-shadow: 0 2px 10px var(--vaab-shadow);
  z-index: 1000;
  border-bottom: 2px solid var(--vaab-primary);
}

.vaab-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.vaab-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--vaab-text);
}

.vaab-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.vaab-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vaab-primary);
}

.vaab-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.vaab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.vaab-btn-primary {
  background: linear-gradient(135deg, var(--vaab-primary) 0%, var(--vaab-accent) 100%);
  color: var(--vaab-darker);
}

.vaab-btn-secondary {
  background: linear-gradient(135deg, var(--vaab-secondary) 0%, #7744aa 100%);
  color: var(--vaab-text);
}

.vaab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--vaab-shadow);
}

.vaab-btn:active {
  transform: translateY(0);
}

/* Mobile Menu */
.vaab-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--vaab-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .vaab-menu-toggle {
    display: none;
  }
}

.vaab-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--vaab-darker);
  padding: 2rem 1rem;
  z-index: 9999;
  display: none;
  border-bottom: 2px solid var(--vaab-primary);
}

.vaab-mobile-menu.web24aactive {
  display: block;
}

.vaab-mobile-menu a {
  display: block;
  padding: 1rem;
  color: var(--vaab-text);
  text-decoration: none;
  border-bottom: 1px solid var(--vaab-border);
  font-size: 1.4rem;
  transition: background 0.3s ease;
}

.vaab-mobile-menu a:hover {
  background: var(--vaab-dark);
  color: var(--vaab-primary);
}

/* Carousel */
.vaab-carousel {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}

.vaab-carousel-slide {
  display: none;
  width: 100%;
}

.vaab-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.vaab-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.vaab-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.vaab-carousel-dot.vaabactive {
  background: var(--vaab-primary);
  transform: scale(1.2);
}

/* Game Grid */
.vaab-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 2rem 0;
}

.vaab-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--vaab-text);
  transition: transform 0.3s ease;
}

.vaab-game-item:hover {
  transform: scale(1.05);
}

.vaab-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.vaab-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  color: var(--vaab-text-muted);
}

/* Section Styles */
.vaab-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--vaab-border);
}

.vaab-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vaab-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vaab-section-title i {
  color: var(--vaab-secondary);
}

.vaab-card {
  background: var(--vaab-darker);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--vaab-border);
}

.vaab-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vaab-primary);
  margin-bottom: 1rem;
}

.vaab-card-content {
  color: var(--vaab-text-muted);
  line-height: 1.6;
}

/* Content Links */
.vaab-content-link {
  color: var(--vaab-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.vaab-content-link:hover {
  color: var(--vaab-accent);
  text-decoration: underline;
}

/* Bottom Navigation */
.vaab-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--vaab-darker) 0%, var(--vaab-dark) 100%);
  border-top: 2px solid var(--vaab-primary);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  height: 60px;
}

@media (min-width: 769px) {
  .vaab-bottom-nav {
    display: none;
  }
}

.vaab-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--vaab-text-muted);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.vaab-nav-item:hover,
.vaab-nav-item.vaabactive {
  color: var(--vaab-primary);
  transform: scale(1.1);
}

.vaab-nav-icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
}

.vaab-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.vaab-footer {
  background: var(--vaab-darker);
  padding: 3rem 1rem 6rem;
  border-top: 2px solid var(--vaab-border);
}

.vaab-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.vaab-footer-link {
  color: var(--vaab-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.vaab-footer-link:hover {
  color: var(--vaab-primary);
}

.vaab-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.vaab-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.vaab-partner-logo:hover {
  opacity: 1;
}

.vaab-copyright {
  text-align: center;
  color: var(--vaab-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Utility Classes */
.vaab-text-center {
  text-align: center;
}

.vaab-mt-1 { margin-top: 1rem; }
.vaab-mt-2 { margin-top: 2rem; }
.vaab-mt-3 { margin-top: 3rem; }

.vaab-mb-1 { margin-bottom: 1rem; }
.vaab-mb-2 { margin-bottom: 2rem; }
.vaab-mb-3 { margin-bottom: 3rem; }

.vaab-p-1 { padding: 1rem; }
.vaab-p-2 { padding: 2rem; }
.vaab-p-3 { padding: 3rem; }

/* Animations */
@keyframes vaabPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.vaab-pulse {
  animation: vaabPulse 2s infinite;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .vaab-container {
    padding: 0 1rem;
  }
}
