/* JLJL88 PH Gaming Platform Styles */
/* All classes use v9de- prefix for namespace isolation */

/* CSS Variables for consistent theming */
:root {
  /* Color palette */
  --v9de-primary: #FF69B4;
  --v9de-secondary: #48D1CC;
  --v9de-accent: #AFEEEE;
  --v9de-highlight: #FFB6C1;
  --v9de-neutral: #CED4DA;
  --v9de-dark: #1A1A2E;

  /* Text colors */
  --v9de-text-primary: #FFFFFF;
  --v9de-text-secondary: #E0E0E0;
  --v9de-text-muted: #B0B0B0;

  /* Background colors */
  --v9de-bg-primary: #1A1A2E;
  --v9de-bg-secondary: #2A2A3E;
  --v9de-bg-card: #33334E;
  --v9de-bg-hover: #44445E;

  /* Spacing */
  --v9de-spacing-xs: 0.4rem;
  --v9de-spacing-sm: 0.8rem;
  --v9de-spacing-md: 1.6rem;
  --v9de-spacing-lg: 2.4rem;
  --v9de-spacing-xl: 3.2rem;

  /* Typography */
  --v9de-font-size-xs: 1.0rem;
  --v9de-font-size-sm: 1.2rem;
  --v9de-font-size-md: 1.4rem;
  --v9de-font-size-lg: 1.6rem;
  --v9de-font-size-xl: 2.0rem;
  --v9de-font-size-xxl: 2.4rem;

  /* Border radius */
  --v9de-radius-sm: 0.4rem;
  --v9de-radius-md: 0.8rem;
  --v9de-radius-lg: 1.2rem;
  --v9de-radius-xl: 1.6rem;

  /* Shadows */
  --v9de-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --v9de-shadow-md: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  --v9de-shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);

  /* Transitions */
  --v9de-transition-fast: 0.15s ease;
  --v9de-transition-normal: 0.3s ease;
  --v9de-transition-slow: 0.5s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v9de-text-primary);
  background-color: var(--v9de-bg-primary);
  overflow-x: hidden;
}

/* Container and layout */
.v9de-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--v9de-spacing-sm);
}

.v9de-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v9de-main {
  flex: 1;
  padding-top: 6.4rem;
  padding-bottom: 8rem;
}

.v9de-grid {
  display: grid;
  gap: var(--v9de-spacing-sm);
}

.v9de-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.v9de-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.v9de-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header */
.v9de-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v9de-bg-primary) 0%, var(--v9de-bg-secondary) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--v9de-transition-normal);
  box-shadow: var(--v9de-shadow-sm);
}

.v9de-header.v9de-scrolled {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: var(--v9de-shadow-md);
}

.v9de-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--v9de-spacing-sm) var(--v9de-spacing-sm);
  height: 6.4rem;
}

.v9de-logo {
  display: flex;
  align-items: center;
  gap: var(--v9de-spacing-xs);
  text-decoration: none;
  color: var(--v9de-text-primary);
  font-weight: 700;
  font-size: var(--v9de-font-size-lg);
}

.v9de-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--v9de-radius-sm);
}

.v9de-header-actions {
  display: flex;
  align-items: center;
  gap: var(--v9de-spacing-sm);
}

.v9de-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--v9de-spacing-xs) var(--v9de-spacing-md);
  border: none;
  border-radius: var(--v9de-radius-md);
  font-size: var(--v9de-font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v9de-transition-fast);
  min-height: 4.4rem;
  white-space: nowrap;
}

.v9de-btn-primary {
  background: linear-gradient(135deg, var(--v9de-primary) 0%, var(--v9de-highlight) 100%);
  color: var(--v9de-text-primary);
  box-shadow: var(--v9de-shadow-sm);
}

.v9de-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--v9de-shadow-md);
}

.v9de-btn-secondary {
  background: transparent;
  color: var(--v9de-text-primary);
  border: 2px solid var(--v9de-secondary);
}

.v9de-btn-secondary:hover {
  background: var(--v9de-secondary);
  color: var(--v9de-bg-primary);
}

.v9de-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2.4rem;
  height: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.v9de-hamburger span {
  width: 100%;
  height: 0.2rem;
  background: var(--v9de-text-primary);
  border-radius: 0.1rem;
  transition: var(--v9de-transition-fast);
}

.v9de-hamburger.v9de-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.v9de-hamburger.v9de-active span:nth-child(2) {
  opacity: 0;
}

.v9de-hamburger.v9de-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile menu */
.v9de-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--v9de-bg-secondary);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: var(--v9de-transition-normal);
  overflow-y: auto;
}

.v9de-mobile-menu.v9de-active {
  right: 0;
}

.v9de-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--v9de-transition-normal);
}

.v9de-menu-overlay.v9de-active {
  opacity: 1;
  visibility: visible;
}

.v9de-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--v9de-spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v9de-menu-close {
  background: none;
  border: none;
  color: var(--v9de-text-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--v9de-spacing-xs);
}

.v9de-menu-nav {
  padding: var(--v9de-spacing-md) 0;
}

.v9de-menu-item {
  display: block;
  padding: var(--v9de-spacing-sm) var(--v9de-spacing-md);
  color: var(--v9de-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--v9de-transition-fast);
  border-left: 3px solid transparent;
}

.v9de-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--v9de-primary);
}

/* Carousel */
.v9de-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--v9de-radius-lg);
  margin-bottom: var(--v9de-spacing-lg);
  box-shadow: var(--v9de-shadow-md);
}

.v9de-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--v9de-transition-normal);
}

.v9de-slide.v9de-active {
  opacity: 1;
}

.v9de-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.v9de-carousel-indicators {
  position: absolute;
  bottom: var(--v9de-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--v9de-spacing-xs);
}

.v9de-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--v9de-transition-fast);
}

.v9de-indicator.v9de-active {
  background: var(--v9de-primary);
  transform: scale(1.2);
}

/* Typography */
.v9de-h1 {
  font-size: var(--v9de-font-size-xxl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--v9de-spacing-md);
  color: var(--v9de-text-primary);
}

.v9de-h2 {
  font-size: var(--v9de-font-size-xl);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--v9de-spacing-sm);
  color: var(--v9de-text-primary);
}

.v9de-h3 {
  font-size: var(--v9de-font-size-lg);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--v9de-spacing-sm);
  color: var(--v9de-text-primary);
}

.v9de-text {
  font-size: var(--v9de-font-size-md);
  line-height: 1.6;
  color: var(--v9de-text-secondary);
  margin-bottom: var(--v9de-spacing-sm);
}

.v9de-text-sm {
  font-size: var(--v9de-font-size-sm);
  line-height: 1.5;
  color: var(--v9de-text-muted);
}

/* Cards */
.v9de-card {
  background: var(--v9de-bg-card);
  border-radius: var(--v9de-radius-lg);
  padding: var(--v9de-spacing-md);
  box-shadow: var(--v9de-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--v9de-transition-normal);
}

.v9de-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v9de-shadow-md);
}

/* Game cards */
.v9de-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v9de-spacing-xs);
  margin-bottom: var(--v9de-spacing-lg);
}

.v9de-game-card {
  background: var(--v9de-bg-card);
  border-radius: var(--v9de-radius-md);
  padding: var(--v9de-spacing-xs);
  text-align: center;
  cursor: pointer;
  transition: var(--v9de-transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.v9de-game-card:hover {
  transform: scale(1.05);
  box-shadow: var(--v9de-shadow-md);
  border-color: var(--v9de-primary);
}

.v9de-game-card.v9de-clicked {
  transform: scale(0.95);
}

.v9de-game-card.v9de-hovered {
  background: var(--v9de-bg-hover);
}

.v9de-game-icon {
  width: 100%;
  height: 5rem;
  object-fit: contain;
  margin-bottom: var(--v9de-spacing-xs);
  border-radius: var(--v9de-radius-sm);
}

.v9de-game-name {
  font-size: var(--v9de-font-size-xs);
  color: var(--v9de-text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section styling */
.v9de-section {
  margin-bottom: var(--v9de-spacing-xl);
}

.v9de-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--v9de-spacing-md);
}

.v9de-section-title {
  font-size: var(--v9de-font-size-xl);
  font-weight: 700;
  color: var(--v9de-text-primary);
  position: relative;
}

.v9de-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 4rem;
  height: 0.2rem;
  background: linear-gradient(90deg, var(--v9de-primary) 0%, var(--v9de-secondary) 100%);
  border-radius: 0.1rem;
}

/* Bottom navigation */
.v9de-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v9de-bg-primary) 0%, var(--v9de-bg-secondary) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--v9de-spacing-xs) 0;
}

.v9de-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  text-decoration: none;
  color: var(--v9de-text-muted);
  transition: var(--v9de-transition-fast);
  cursor: pointer;
  border-radius: var(--v9de-radius-md);
  position: relative;
}

.v9de-nav-item:hover,
.v9de-nav-item.v9de-active {
  color: var(--v9de-primary);
  transform: translateY(-2px);
}

.v9de-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
  transition: var(--v9de-transition-fast);
}

.v9de-nav-text {
  font-size: 1.0rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Footer */
.v9de-footer {
  background: var(--v9de-bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--v9de-spacing-lg) 0 var(--v9de-spacing-xl);
  margin-top: var(--v9de-spacing-xl);
}

.v9de-footer-content {
  text-align: center;
}

.v9de-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--v9de-spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--v9de-spacing-lg);
}

.v9de-partner-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--v9de-transition-fast);
}

.v9de-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v9de-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--v9de-spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--v9de-spacing-md);
}

.v9de-footer-link {
  color: var(--v9de-text-secondary);
  text-decoration: none;
  font-size: var(--v9de-font-size-sm);
  transition: var(--v9de-transition-fast);
}

.v9de-footer-link:hover {
  color: var(--v9de-primary);
}

.v9de-footer-text {
  color: var(--v9de-text-muted);
  font-size: var(--v9de-font-size-sm);
  margin-bottom: var(--v9de-spacing-sm);
}

/* Utility classes */
.v9de-text-center {
  text-align: center;
}

.v9de-text-left {
  text-align: left;
}

.v9de-text-right {
  text-align: right;
}

.v9de-mb-sm {
  margin-bottom: var(--v9de-spacing-sm);
}

.v9de-mb-md {
  margin-bottom: var(--v9de-spacing-md);
}

.v9de-mb-lg {
  margin-bottom: var(--v9de-spacing-lg);
}

.v9de-mt-sm {
  margin-top: var(--v9de-spacing-sm);
}

.v9de-mt-md {
  margin-top: var(--v9de-spacing-md);
}

.v9de-mt-lg {
  margin-top: var(--v9de-spacing-lg);
}

.v9de-hidden {
  display: none !important;
}

.v9de-visible {
  display: block !important;
}

/* Loading states */
.v9de-loading {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.2rem solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--v9de-primary);
  border-radius: 50%;
  animation: v9de-spin 1s linear infinite;
}

@keyframes v9de-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tooltip */
.v9de-tooltip {
  position: absolute;
  background: var(--v9de-bg-secondary);
  color: var(--v9de-text-primary);
  padding: var(--v9de-spacing-xs) var(--v9de-spacing-sm);
  border-radius: var(--v9de-radius-sm);
  font-size: var(--v9de-font-size-sm);
  white-space: nowrap;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--v9de-transition-fast);
  box-shadow: var(--v9de-shadow-lg);
}

.v9de-tooltip.v9de-visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive design */
@media (min-width: 769px) {
  .v9de-container {
    max-width: 1200px;
  }

  .v9de-main {
    padding-bottom: 0;
  }

  .v9de-bottom-nav {
    display: none;
  }

  .v9de-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--v9de-spacing-sm);
  }

  .v9de-carousel {
    height: 25rem;
  }
}

@media (max-width: 768px) {
  .v9de-main {
    padding-bottom: 8rem;
  }

  .v9de-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--v9de-spacing-xs);
  }

  .v9de-game-icon {
    height: 4rem;
  }

  .v9de-game-name {
    font-size: 1.0rem;
  }
}

@media (max-width: 480px) {
  .v9de-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v9de-carousel {
    height: 18rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.v9de-btn:focus,
.v9de-nav-item:focus,
.v9de-menu-item:focus,
.v9de-game-card:focus {
  outline: 2px solid var(--v9de-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --v9de-bg-primary: #000000;
    --v9de-bg-secondary: #111111;
    --v9de-text-primary: #FFFFFF;
    --v9de-text-secondary: #EEEEEE;
  }
}