/**
 * Sakla VIP Gaming Platform Styles
 * Mobile-first responsive design for Philippine market
 * CSS class prefix: w6204-
 */

/* CSS Variables - Color Palette */
:root {
  --w6204-primary: #191970;
  --w6204-secondary: #87CEEB;
  --w6204-accent: #00CED1;
  --w6204-dark: #004D40;
  --w6204-deep-blue: #1B263B;
  --w6204-light-gray: #E5E5E5;
  --w6204-white: #FFFFFF;
  --w6204-black: #000000;
  --w6204-gold: #FFD700;
  --w6204-success: #28a745;
  --w6204-warning: #ffc107;
  --w6204-danger: #dc3545;
  --w6204-info: #17a2b8;

  /* Typography */
  --w6204-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --w6204-font-secondary: 'Poppins', sans-serif;

  /* Spacing */
  --w6204-spacing-xs: 0.25rem;
  --w6204-spacing-sm: 0.5rem;
  --w6204-spacing-md: 1rem;
  --w6204-spacing-lg: 1.5rem;
  --w6204-spacing-xl: 2rem;
  --w6204-spacing-xxl: 3rem;

  /* Border radius */
  --w6204-radius-sm: 0.25rem;
  --w6204-radius-md: 0.5rem;
  --w6204-radius-lg: 1rem;
  --w6204-radius-xl: 1.5rem;

  /* Shadows */
  --w6204-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --w6204-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --w6204-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --w6204-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--w6204-font-primary);
  line-height: 1.6;
  color: var(--w6204-white);
  background: linear-gradient(135deg, var(--w6204-primary) 0%, var(--w6204-deep-blue) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
.w6204-heading-primary {
  font-family: var(--w6204-font-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--w6204-gold), var(--w6204-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: var(--w6204-spacing-lg);
}

.w6204-heading-secondary {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w6204-secondary);
  margin-bottom: var(--w6204-spacing-md);
}

.w6204-text-large {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--w6204-light-gray);
}

.w6204-text-medium {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--w6204-light-gray);
}

.w6204-text-small {
  font-size: 0.85rem;
  color: var(--w6204-light-gray);
}

/* Layout Components */
.w6204-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--w6204-spacing-md);
}

.w6204-section {
  padding: var(--w6204-spacing-xxl) 0;
}

.w6204-grid {
  display: grid;
  gap: var(--w6204-spacing-md);
}

.w6204-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.w6204-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.w6204-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Header */
.w6204-header {
  background: rgba(25, 25, 112, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--w6204-spacing-sm) 0;
  border-bottom: 1px solid rgba(135, 206, 235, 0.3);
}

.w6204-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--w6204-spacing-md);
}

.w6204-logo {
  font-family: var(--w6204-font-secondary);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w6204-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--w6204-spacing-sm);
}

.w6204-logo::before {
  content: "👑";
  font-size: 1.5rem;
}

.w6204-header-actions {
  display: flex;
  gap: var(--w6204-spacing-sm);
  align-items: center;
}

.w6204-btn {
  padding: var(--w6204-spacing-sm) var(--w6204-spacing-lg);
  border: none;
  border-radius: var(--w6204-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--w6204-spacing-xs);
  font-size: 0.9rem;
}

.w6204-btn-primary {
  background: linear-gradient(45deg, var(--w6204-accent), var(--w6204-secondary));
  color: var(--w6204-white);
  box-shadow: var(--w6204-shadow-md);
}

.w6204-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--w6204-shadow-lg);
}

.w6204-btn-secondary {
  background: transparent;
  color: var(--w6204-secondary);
  border: 2px solid var(--w6204-secondary);
}

.w6204-btn-secondary:hover {
  background: var(--w6204-secondary);
  color: var(--w6204-primary);
}

.w6204-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--w6204-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--w6204-spacing-sm);
}

/* Hero Carousel */
.w6204-carousel-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--w6204-radius-lg);
  margin: var(--w6204-spacing-xl) 0;
  box-shadow: var(--w6204-shadow-xl);
}

.w6204-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w6204-carousel-slide.w6204-active {
  opacity: 1;
}

.w6204-carousel-content {
  text-align: center;
  padding: var(--w6204-spacing-xl);
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--w6204-radius-lg);
  max-width: 600px;
}

.w6204-carousel-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--w6204-gold);
  margin-bottom: var(--w6204-spacing-md);
}

.w6204-carousel-description {
  font-size: 1.1rem;
  color: var(--w6204-white);
  margin-bottom: var(--w6204-spacing-lg);
}

.w6204-carousel-indicators {
  position: absolute;
  bottom: var(--w6204-spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--w6204-spacing-xs);
}

.w6204-carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w6204-carousel-indicator.w6204-active {
  background: var(--w6204-gold);
  transform: scale(1.2);
}

/* Game Categories */
.w6204-categories {
  margin: var(--w6204-spacing-xxl) 0;
}

.w6204-category-tabs {
  display: flex;
  gap: var(--w6204-spacing-sm);
  margin-bottom: var(--w6204-spacing-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.w6204-category-tab {
  padding: var(--w6204-spacing-sm) var(--w6204-spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--w6204-radius-md);
  color: var(--w6204-white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--w6204-spacing-xs);
}

.w6204-category-tab.w6204-active {
  background: linear-gradient(45deg, var(--w6204-accent), var(--w6204-secondary));
  color: var(--w6204-white);
  box-shadow: var(--w6204-shadow-md);
}

.w6204-category-tab:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Game Cards */
.w6204-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--w6204-spacing-md);
  margin-top: var(--w6204-spacing-lg);
}

.w6204-game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--w6204-radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.w6204-game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--w6204-shadow-xl);
  border-color: var(--w6204-gold);
}

.w6204-game-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.w6204-game-card:hover .w6204-game-image {
  transform: scale(1.1);
}

.w6204-game-info {
  padding: var(--w6204-spacing-sm);
  text-align: center;
}

.w6204-game-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--w6204-white);
  margin-bottom: var(--w6204-spacing-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w6204-game-category {
  font-size: 0.75rem;
  color: var(--w6204-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.w6204-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.w6204-game-card:hover .w6204-play-overlay {
  opacity: 1;
}

.w6204-play-btn {
  background: linear-gradient(45deg, var(--w6204-accent), var(--w6204-secondary));
  color: var(--w6204-white);
  border: none;
  padding: var(--w6204-spacing-sm) var(--w6204-spacing-lg);
  border-radius: var(--w6204-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w6204-play-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--w6204-shadow-lg);
}

/* Features Section */
.w6204-features {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--w6204-radius-xl);
  padding: var(--w6204-spacing-xxl);
  margin: var(--w6204-spacing-xxl) 0;
}

.w6204-feature-card {
  text-align: center;
  padding: var(--w6204-spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--w6204-radius-lg);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.w6204-feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: var(--w6204-accent);
}

.w6204-feature-icon {
  font-size: 3rem;
  margin-bottom: var(--w6204-spacing-md);
  color: var(--w6204-gold);
}

.w6204-feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--w6204-white);
  margin-bottom: var(--w6204-spacing-sm);
}

.w6204-feature-description {
  color: var(--w6204-light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Bottom Navigation */
.w6204-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--w6204-primary) 0%, var(--w6204-deep-blue) 100%);
  border-top: 1px solid rgba(135, 206, 235, 0.3);
  z-index: 1000;
  padding: var(--w6204-spacing-xs) 0;
  box-shadow: var(--w6204-shadow-lg);
}

.w6204-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.w6204-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: var(--w6204-spacing-xs);
  text-decoration: none;
  color: var(--w6204-light-gray);
  transition: all 0.3s ease;
  border-radius: var(--w6204-radius-md);
  cursor: pointer;
  border: none;
  background: none;
}

.w6204-bottom-nav-item:hover {
  color: var(--w6204-secondary);
  background: rgba(135, 206, 235, 0.1);
}

.w6204-bottom-nav-item.w6204-active {
  color: var(--w6204-gold);
  background: rgba(255, 215, 0, 0.1);
}

.w6204-bottom-nav-icon {
  font-size: 1.5rem;
  margin-bottom: var(--w6204-spacing-xs);
}

.w6204-bottom-nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
}

/* Mobile Menu */
.w6204-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, var(--w6204-primary) 0%, var(--w6204-deep-blue) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: var(--w6204-spacing-xl) var(--w6204-spacing-md);
  overflow-y: auto;
}

.w6204-mobile-menu.w6204-active {
  right: 0;
}

.w6204-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w6204-menu-overlay.w6204-active {
  opacity: 1;
  visibility: visible;
}

.w6204-menu-close {
  position: absolute;
  top: var(--w6204-spacing-md);
  right: var(--w6204-spacing-md);
  background: none;
  border: none;
  color: var(--w6204-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.w6204-menu-list {
  list-style: none;
  margin-top: var(--w6204-spacing-xl);
}

.w6204-menu-item {
  margin-bottom: var(--w6204-spacing-md);
}

.w6204-menu-link {
  color: var(--w6204-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: var(--w6204-spacing-sm) 0;
  transition: color 0.3s ease;
}

.w6204-menu-link:hover {
  color: var(--w6204-gold);
}

/* Footer */
.w6204-footer {
  background: var(--w6204-deep-blue);
  padding: var(--w6204-spacing-xxl) 0 var(--w6204-spacing-md);
  margin-top: var(--w6204-spacing-xxl);
  border-top: 1px solid rgba(135, 206, 235, 0.3);
}

.w6204-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--w6204-spacing-xl);
  margin-bottom: var(--w6204-spacing-xl);
}

.w6204-footer-section h3 {
  color: var(--w6204-gold);
  font-size: 1.2rem;
  margin-bottom: var(--w6204-spacing-md);
}

.w6204-footer-links {
  list-style: none;
}

.w6204-footer-links li {
  margin-bottom: var(--w6204-spacing-xs);
}

.w6204-footer-links a {
  color: var(--w6204-light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.w6204-footer-links a:hover {
  color: var(--w6204-secondary);
}

.w6204-footer-bottom {
  text-align: center;
  padding-top: var(--w6204-spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--w6204-light-gray);
  font-size: 0.9rem;
}

/* Utility Classes */
.w6204-text-center { text-align: center; }
.w6204-text-left { text-align: left; }
.w6204-text-right { text-align: right; }

.w6204-mb-sm { margin-bottom: var(--w6204-spacing-sm); }
.w6204-mb-md { margin-bottom: var(--w6204-spacing-md); }
.w6204-mb-lg { margin-bottom: var(--w6204-spacing-lg); }
.w6204-mb-xl { margin-bottom: var(--w6204-spacing-xl); }

.w6204-mt-sm { margin-top: var(--w6204-spacing-sm); }
.w6204-mt-md { margin-top: var(--w6204-spacing-md); }
.w6204-mt-lg { margin-top: var(--w6204-spacing-lg); }

.w6204-p-sm { padding: var(--w6204-spacing-sm); }
.w6204-p-md { padding: var(--w6204-spacing-md); }
.w6204-p-lg { padding: var(--w6204-spacing-lg); }

.w6204-fade-in {
  animation: w6204FadeIn 0.5s ease-in-out;
}

@keyframes w6204FadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.w6204-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--w6204-gold);
  border-radius: 50%;
  animation: w6204Spin 1s linear infinite;
  margin: var(--w6204-spacing-lg) auto;
}

@keyframes w6204Spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile-first adjustments */
  body {
    padding-bottom: 80px; /* Space for bottom nav */
  }

  .w6204-heading-primary {
    font-size: 2rem;
  }

  .w6204-heading-secondary {
    font-size: 1.5rem;
  }

  .w6204-header-actions {
    display: none; /* Hide desktop buttons on mobile */
  }

  .w6204-mobile-menu-toggle {
    display: block; /* Show mobile menu toggle */
  }

  .w6204-carousel-container {
    height: 250px;
    margin: var(--w6204-spacing-lg) 0;
  }

  .w6204-carousel-title {
    font-size: 1.5rem;
  }

  .w6204-carousel-description {
    font-size: 0.9rem;
  }

  .w6204-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--w6204-spacing-sm);
  }

  .w6204-game-image {
    height: 80px;
  }

  .w6204-game-title {
    font-size: 0.8rem;
  }

  .w6204-category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--w6204-spacing-sm);
  }

  .w6204-category-tab {
    white-space: nowrap;
    min-width: 120px;
  }

  .w6204-features {
    padding: var(--w6204-spacing-xl) var(--w6204-spacing-md);
  }

  .w6204-footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Hide bottom nav on desktop */
  .w6204-bottom-nav {
    display: block;
  }
}

@media (min-width: 769px) {
  /* Desktop adjustments */
  .w6204-bottom-nav {
    display: none; /* Hide bottom nav on desktop */
  }

  body {
    padding-bottom: 0;
  }

  .w6204-mobile-menu-toggle {
    display: none;
  }

  .w6204-header-actions {
    display: flex;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile adjustments */
  .w6204-container {
    padding: 0 var(--w6204-spacing-sm);
  }

  .w6204-heading-primary {
    font-size: 1.8rem;
  }

  .w6204-carousel-container {
    height: 200px;
  }

  .w6204-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .w6204-bottom-nav-item {
    min-width: 50px;
    min-height: 50px;
  }

  .w6204-bottom-nav-icon {
    font-size: 1.2rem;
  }

  .w6204-bottom-nav-label {
    font-size: 0.6rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .w6204-game-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .w6204-header,
  .w6204-bottom-nav,
  .w6204-mobile-menu-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
.w6204-btn:focus,
.w6204-category-tab:focus,
.w6204-bottom-nav-item:focus,
.w6204-menu-link:focus {
  outline: 2px solid var(--w6204-gold);
  outline-offset: 2px;
}

/* Error states */
.w6204-error {
  border-color: var(--w6204-danger) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Success states */
.w6204-success {
  border-color: var(--w6204-success) !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}