/*
 * jljl771 CSS Styles - Mobile-First Gaming Platform
 * Version: 1.0
 * Prefix: s25a-
 * Colors: #FFB347 (primary), #FFCCCB (secondary), #2C2C2C (dark/background), #FFEB3B (accent), #191970 (navy)
 */

/* CSS Variables */
:root {
  --s25a-primary: #FFB347;
  --s25a-secondary: #FFCCCB;
  --s25a-accent: #FFEB3B;
  --s25a-navy: #191970;
  --s25a-bg: #2C2C2C;
  --s25a-surface: #3C3C3C;
  --s25a-text: #FFCCCB;
  --s25a-text-secondary: #FFB347;
  --s25a-border: #505050;
  --s25a-shadow: rgba(255, 179, 71, 0.3);
  --s25a-gradient: linear-gradient(135deg, #FFB347 0%, #FFCCCB 50%, #FFEB3B 100%);
  --s25a-header-height: 60px;
  --s25a-bottom-nav-height: 64px;
}

/* Base Reset */
* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s25a-text);
  background: var(--s25a-bg);
  overflow-x: hidden;
}

/* Layout Containers */
.s25a-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.s25a-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--s25a-header-height);
  padding-bottom: var(--s25a-bottom-nav-height);
}

.s25a-main {
  flex: 1;
  padding: 1.6rem 0;
}

/* Header Styles */
.s25a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--s25a-header-height);
  background: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--s25a-primary);
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease;
}

.s25a-header.s25a-scrolled {
  background: rgba(44, 44, 44, 0.98);
  box-shadow: 0 2px 15px rgba(255, 179, 71, 0.2);
}

.s25a-header.s25a-hidden {
  transform: translateY(-100%);
}

.s25a-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.6rem;
}

.s25a-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--s25a-text);
  font-weight: 700;
  font-size: 1.8rem;
}

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

.s25a-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s25a-auth-btns {
  display: flex;
  gap: 0.8rem;
}

.s25a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  white-space: nowrap;
}

.s25a-btn-primary {
  background: var(--s25a-gradient);
  color: var(--s25a-bg);
}

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

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

.s25a-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--s25a-shadow);
}

.s25a-btn:active {
  transform: translateY(0);
}

/* Menu Toggle Button */
.s25a-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.s25a-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--s25a-text);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.s25a-menu-toggle.s25a-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.s25a-menu-toggle.s25a-active span:nth-child(2) {
  opacity: 0;
}

.s25a-menu-toggle.s25a-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.s25a-nav-menu {
  position: fixed;
  top: var(--s25a-header-height);
  left: -100%;
  width: 300px;
  height: calc(100vh - var(--s25a-header-height));
  background: rgba(60, 60, 60, 0.98);
  backdrop-filter: blur(15px);
  border-right: 2px solid var(--s25a-primary);
  transition: left 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

/* Show menu when active */
.s25a-nav-menu.s25a-active {
  left: 0;
}

.s25a-nav-overlay {
  position: fixed;
  top: var(--s25a-header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--s25a-header-height));
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

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

.s25a-nav-links li {
  border-bottom: 1px solid rgba(80, 80, 80, 0.3);
}

.s25a-nav-links a {
  display: flex;
  align-items: center;
  padding: 1.8rem 2rem;
  color: var(--s25a-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.4rem;
}

.s25a-nav-links a:hover {
  background: rgba(255, 179, 71, 0.1);
  color: var(--s25a-primary);
  border-left: 4px solid var(--s25a-primary);
}

.s25a-nav-links a i {
  margin-right: 1.2rem;
  width: 24px;
  text-align: center;
  font-size: 1.6rem;
}

/* Typography */
.s25a-h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  background: var(--s25a-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s25a-h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--s25a-text);
}

.s25a-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--s25a-text);
}

.s25a-text {
  color: var(--s25a-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

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

.s25a-text-primary {
  color: var(--s25a-primary);
}

/* Sections */
.s25a-section {
  padding: 2.4rem 0;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.s25a-section.s25a-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.s25a-card {
  background: var(--s25a-surface);
  border: 2px solid var(--s25a-border);
  border-radius: 16px;
  padding: 2.4rem;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.s25a-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 179, 71, 0.15);
  border-color: var(--s25a-primary);
}

/* Carousel */
.s25a-carousel {
  position: relative;
  margin-bottom: 2.4rem;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.s25a-carousel-inner {
  position: relative;
  height: 220px;
}

.s25a-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.s25a-slide.s25a-active {
  opacity: 1;
}

.s25a-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s25a-carousel-indicators {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.s25a-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s25a-indicator.s25a-active {
  background: var(--s25a-primary);
  transform: scale(1.3);
}

/* Game Categories */
.s25a-game-category {
  margin-bottom: 2.4rem;
}

.s25a-category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  color: var(--s25a-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.s25a-category-title i {
  margin-right: 1rem;
  font-size: 2.4rem;
}

.s25a-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.s25a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 0.6rem;
  background: var(--s25a-surface);
  border: 2px solid var(--s25a-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
  text-decoration: none;
  color: var(--s25a-text-secondary);
}

.s25a-game-item.s25a-loaded {
  opacity: 1;
  transform: scale(1);
}

.s25a-game-item:hover {
  transform: scale(1.08);
  background: rgba(255, 179, 71, 0.1);
  border-color: var(--s25a-primary);
  box-shadow: 0 6px 20px var(--s25a-shadow);
}

.s25a-game-item img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.s25a-game-name {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Bottom Navigation */
.s25a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s25a-bottom-nav-height);
  background: rgba(60, 60, 60, 0.95);
  backdrop-filter: blur(15px);
  border-top: 2px solid var(--s25a-primary);
  z-index: 1000;
}

.s25a-bottom-nav-content {
  display: flex;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.s25a-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  transition: all 0.3s ease;
}

.s25a-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--s25a-text-secondary);
  transition: all 0.3s ease;
}

.s25a-bottom-nav-item.s25a-active a,
.s25a-bottom-nav-item:hover a {
  color: var(--s25a-primary);
  transform: translateY(-2px);
}

.s25a-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.s25a-nav-text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.s25a-bottom-nav-item:active {
  transform: scale(0.95);
}

/* Footer */
.s25a-footer {
  background: var(--s25a-surface);
  border-top: 2px solid var(--s25a-primary);
  padding: 3.5rem 0 2.5rem;
  margin-top: 4rem;
}

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

.s25a-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  list-style: none;
}

.s25a-footer-links a {
  color: var(--s25a-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.s25a-footer-links a:hover {
  color: var(--s25a-primary);
  background: rgba(255, 179, 71, 0.1);
  transform: translateY(-2px);
}

.s25a-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.s25a-partner-img {
  width: 36px;
  height: 36px;
  opacity: 0.6;
  transition: all 0.3s ease;
  border-radius: 6px;
  filter: grayscale(50%);
}

.s25a-partner-img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

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

/* Utility Classes */
.s25a-mb-1 { margin-bottom: 0.8rem; }
.s25a-mb-2 { margin-bottom: 1.6rem; }
.s25a-mb-3 { margin-bottom: 2.4rem; }
.s25a-mt-1 { margin-top: 0.8rem; }
.s25a-mt-2 { margin-top: 1.6rem; }
.s25a-mt-3 { margin-top: 2.4rem; }

.s25a-flex {
  display: flex;
}

.s25a-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.s25a-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s25a-grid {
  display: grid;
  gap: 1.6rem;
}

.s25a-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.s25a-hidden {
  display: none;
}

/* Media Queries */
@media (min-width: 375px) {
  .s25a-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  }
  
  .s25a-game-item img {
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 430px) {
  .s25a-container {
    padding: 0 2rem;
  }
  
  .s25a-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  }
}

@media (min-width: 768px) {
  .s25a-nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    backdrop-filter: none;
  }
  
  .s25a-nav-links {
    display: flex;
    padding: 0;
  }
  
  .s25a-nav-links li {
    border: none;
  }
  
  .s25a-nav-links a {
    padding: 1rem 1.6rem;
  }
  
  .s25a-menu-toggle,
  .s25a-nav-overlay {
    display: none;
  }
  
  .s25a-bottom-nav {
    display: none;
  }
  
  .s25a-wrapper {
    padding-bottom: 0;
  }
}

/* Loading States */
.s25a-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Animations */
@keyframes s25aFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes s25aPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.s25a-animate-fade-up {
  animation: s25aFadeInUp 0.6s ease-out;
}

.s25a-animate-pulse {
  animation: s25aPulse 2s infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--s25a-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--s25a-primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--s25a-accent);
}

/* Focus States */
.s25a-btn:focus,
.s25a-nav-links a:focus,
.s25a-game-item:focus {
  outline: 3px solid var(--s25a-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --s25a-text: #FFFFFF;
    --s25a-bg: #000000;
    --s25a-border: #FFFFFF;
  }
}