/* Pinasjili Gaming Platform CSS - Mobile-First Responsive Design */
/* All classes use s092- prefix to avoid conflicts */

/* CSS Variables */
:root {
  --s092-primary: #7FFF00;
  --s092-secondary: #9AFF9A;
  --s092-success: #2E8B57;
  --s092-neutral: #6C757D;
  --s092-dark: #3A3A3A;
  --s092-bg: #1a1a1a;
  --s092-surface: #2d2d2d;
  --s092-text: #ffffff;
  --s092-text-muted: #b0b0b0;
  --s092-border: #404040;
  --s092-shadow: rgba(0, 0, 0, 0.3);
  --s092-glow: rgba(127, 255, 0, 0.3);
  --s092-gradient: linear-gradient(135deg, var(--s092-primary), var(--s092-secondary));
  --s092-border-radius: 8px;
  --s092-transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s092-text);
  background: var(--s092-bg);
  overflow-x: hidden;
}

/* Layout Components */
.s092-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.s092-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.s092-grid {
  display: grid;
  gap: 1.5rem;
}

/* Header Styles */
.s092-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s092-border);
  height: 56px;
}

.s092-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.s092-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--s092-text);
  font-weight: 600;
  font-size: 1.6rem;
}

.s092-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
  border-radius: 6px;
}

.s092-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s092-menu-toggle {
  background: none;
  border: none;
  color: var(--s092-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--s092-border-radius);
  transition: var(--s092-transition);
}

.s092-menu-toggle:hover {
  background: var(--s092-surface);
  color: var(--s092-primary);
}

/* Mobile Navigation */
.s092-mobile-nav {
  position: fixed;
  top: 56px;
  left: -100%;
  width: 280px;
  height: calc(100vh - 56px);
  background: var(--s092-surface);
  z-index: 999;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.s092-mobile-nav-open {
  left: 0;
}

.s092-nav-list {
  list-style: none;
  padding: 2rem 0;
}

.s092-nav-item {
  margin: 0;
}

.s092-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: var(--s092-text);
  font-weight: 500;
  transition: var(--s092-transition);
  border-bottom: 1px solid var(--s092-border);
}

.s092-nav-link:hover {
  background: var(--s092-bg);
  color: var(--s092-primary);
  padding-left: 2.5rem;
}

.s092-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--s092-transition);
}

.s092-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Button Styles */
.s092-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  background: var(--s092-gradient);
  color: var(--s092-dark);
  text-decoration: none;
  border: none;
  border-radius: var(--s092-border-radius);
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--s092-transition);
  min-height: 44px;
  box-shadow: 0 2px 8px var(--s092-shadow);
}

.s092-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--s092-glow);
}

.s092-btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  min-height: 36px;
}

.s092-btn-large {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  min-height: 52px;
}

.s092-btn-outline {
  background: transparent;
  border: 2px solid var(--s092-primary);
  color: var(--s092-primary);
}

.s092-btn-outline:hover {
  background: var(--s092-primary);
  color: var(--s092-dark);
}

/* Main Content */
.s092-main {
  flex: 1;
  margin-top: 56px;
  margin-bottom: 60px;
  padding: 2rem 0;
}

.s092-section {
  margin-bottom: 3rem;
}

.s092-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--s092-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.s092-text-center {
  text-align: center;
}

/* Carousel Styles */
.s092-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--s092-border-radius);
  margin-bottom: 2rem;
}

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

.s092-slide:first-child {
  display: block;
}

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

/* Game Grid */
.s092-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.s092-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--s092-surface);
  border-radius: var(--s092-border-radius);
  text-decoration: none;
  color: var(--s092-text);
  transition: var(--s092-transition);
  cursor: pointer;
  min-height: 100px;
}

.s092-game-card:hover {
  background: var(--s092-border);
  transform: scale(1.05);
}

.s092-game-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.s092-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Category Sections */
.s092-category {
  margin-bottom: 3rem;
}

.s092-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--s092-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--s092-primary);
}

/* Content Sections */
.s092-content-section {
  background: var(--s092-surface);
  padding: 2rem;
  border-radius: var(--s092-border-radius);
  margin-bottom: 2rem;
  border: 1px solid var(--s092-border);
}

.s092-content-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--s092-primary);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.s092-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--s092-text-muted);
  margin-bottom: 1.5rem;
}

.s092-highlight {
  color: var(--s092-primary);
  font-weight: 600;
}

/* Statistics Grid */
.s092-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.s092-stat-card {
  background: var(--s092-gradient);
  color: var(--s092-dark);
  padding: 2rem 1rem;
  border-radius: var(--s092-border-radius);
  text-align: center;
}

.s092-stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.s092-stat-label {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Bottom Navigation */
.s092-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--s092-surface);
  border-top: 1px solid var(--s092-border);
  z-index: 1000;
  height: 60px;
}

.s092-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--s092-transition);
  min-height: 44px;
}

.s092-bottom-nav-item:hover {
  background: var(--s092-bg);
}

.s092-nav-active {
  background: var(--s092-bg);
  color: var(--s092-primary);
}

.s092-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.s092-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.s092-footer {
  background: var(--s092-surface);
  padding: 3rem 0 8rem;
  border-top: 1px solid var(--s092-border);
}

.s092-footer-content {
  text-align: center;
}

.s092-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s092-footer-link {
  color: var(--s092-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--s092-transition);
}

.s092-footer-link:hover {
  color: var(--s092-primary);
}

.s092-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.s092-partner-icon {
  width: 40px;
  height: 40px;
  opacity: 0.6;
  transition: var(--s092-transition);
}

.s092-partner-icon:hover {
  opacity: 1;
}

.s092-copyright {
  font-size: 1.2rem;
  color: var(--s092-text-muted);
  margin-top: 2rem;
}

/* Utility Classes */
.s092-mt-1 { margin-top: 1rem; }
.s092-mt-2 { margin-top: 2rem; }
.s092-mb-1 { margin-bottom: 1rem; }
.s092-mb-2 { margin-bottom: 2rem; }
.s092-p-1 { padding: 1rem; }
.s092-p-2 { padding: 2rem; }

/* Loading States */
.s092-loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.s092-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--s092-border);
  border-top-color: var(--s092-primary);
  border-radius: 50%;
  animation: s092-spin 1s linear infinite;
}

@keyframes s092-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Styles */
.s092-form-group {
  margin-bottom: 1.5rem;
}

.s092-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--s092-text);
}

.s092-input {
  width: 100%;
  padding: 1.2rem;
  background: var(--s092-bg);
  border: 1px solid var(--s092-border);
  border-radius: var(--s092-border-radius);
  color: var(--s092-text);
  font-size: 1.4rem;
  transition: var(--s092-transition);
}

.s092-input:focus {
  outline: none;
  border-color: var(--s092-primary);
  box-shadow: 0 0 0 2px var(--s092-glow);
}

.s092-error {
  border-color: #ff4444 !important;
}

/* Responsive Design */
@media (min-width: 480px) {
  .s092-container {
    max-width: 480px;
    padding: 0 2rem;
  }
  
  .s092-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
  
  .s092-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .s092-header-content {
    max-width: 768px;
  }
  
  .s092-container {
    max-width: 768px;
  }
  
  .s092-bottom-nav {
    display: none;
  }
  
  .s092-main {
    margin-bottom: 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --s092-bg: #0a0a0a;
    --s092-surface: #1a1a1a;
    --s092-text: #ffffff;
    --s092-text-muted: #a0a0a0;
    --s092-border: #333333;
    --s092-shadow: rgba(0, 0, 0, 0.5);
  }
}

/* Print styles */
@media print {
  .s092-header,
  .s092-bottom-nav,
  .s092-btn {
    display: none !important;
  }
  
  .s092-main {
    margin: 0 !important;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}