/* PHParadise Gaming Platform - Complete CSS Framework */
/* Mobile-first responsive design with modern UI components */
/* Version: 1.0.0 | Build: wf5e9_2025 */

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* PHParadise Color System */
  --wf5e9-primary: #0097A7;
  --wf5e9-secondary: #004D40;
  --wf5e9-dark: #0A0A0A;
  --wf5e9-light: #F0F0F0;
  
  /* Extended Color Palette */
  --wf5e9-success: #00796B;
  --wf5e9-warning: #FF9800;
  --wf5e9-error: #F44336;
  --wf5e9-info: #2196F3;
  
  /* Neutral Colors */
  --wf5e9-white: #FFFFFF;
  --wf5e9-black: #000000;
  --wf5e9-gray-100: #F5F5F5;
  --wf5e9-gray-200: #EEEEEE;
  --wf5e9-gray-300: #E0E0E0;
  --wf5e9-gray-400: #BDBDBD;
  --wf5e9-gray-500: #9E9E9E;
  --wf5e9-gray-600: #757575;
  --wf5e9-gray-700: #616161;
  --wf5e9-gray-800: #424242;
  --wf5e9-gray-900: #212121;
  
  /* Spacing System */
  --wf5e9-space-xs: 0.25rem;
  --wf5e9-space-sm: 0.5rem;
  --wf5e9-space-md: 1rem;
  --wf5e9-space-lg: 1.5rem;
  --wf5e9-space-xl: 2rem;
  --wf5e9-space-2xl: 3rem;
  
  /* Typography */
  --wf5e9-font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  --wf5e9-font-size-xs: 0.75rem;
  --wf5e9-font-size-sm: 0.875rem;
  --wf5e9-font-size-base: 1rem;
  --wf5e9-font-size-lg: 1.125rem;
  --wf5e9-font-size-xl: 1.25rem;
  --wf5e9-font-size-2xl: 1.5rem;
  --wf5e9-font-size-3xl: 2rem;
  --wf5e9-font-size-4xl: 2.5rem;
  
  /* Line Heights */
  --wf5e9-line-height-tight: 1.25;
  --wf5e9-line-height-normal: 1.5;
  --wf5e9-line-height-loose: 1.75;
  
  /* Border Radius */
  --wf5e9-border-radius-sm: 0.25rem;
  --wf5e9-border-radius-md: 0.5rem;
  --wf5e9-border-radius-lg: 0.75rem;
  --wf5e9-border-radius-xl: 1rem;
  --wf5e9-border-radius-full: 9999px;
  
  /* Shadows */
  --wf5e9-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --wf5e9-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --wf5e9-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --wf5e9-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --wf5e9-transition-fast: 0.15s ease;
  --wf5e9-transition-normal: 0.3s ease;
  --wf5e9-transition-slow: 0.5s ease;
  
  /* Z-index Scale */
  --wf5e9-z-dropdown: 1000;
  --wf5e9-z-sticky: 1020;
  --wf5e9-z-fixed: 1030;
  --wf5e9-z-modal: 1050;
  --wf5e9-z-popover: 1060;
  --wf5e9-z-tooltip: 1070;
}

/* Base HTML Elements */
html {
  font-size: 16px;
  line-height: var(--wf5e9-line-height-normal);
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--wf5e9-font-family);
  font-size: var(--wf5e9-font-size-base);
  line-height: var(--wf5e9-line-height-normal);
  color: var(--wf5e9-dark);
  background-color: var(--wf5e9-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip Link for Accessibility */
.wf5e9-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--wf5e9-primary);
  color: var(--wf5e9-white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--wf5e9-border-radius-sm);
  z-index: var(--wf5e9-z-tooltip);
}

.wf5e9-skip-link:focus {
  top: 6px;
}

/* Main Layout Components */
.wf5e9-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--wf5e9-light) 0%, #E8F5E8 100%);
  position: relative;
}

.wf5e9-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--wf5e9-space-md);
}

/* Header Component */
.wf5e9-header {
  background: linear-gradient(135deg, var(--wf5e9-primary) 0%, var(--wf5e9-secondary) 100%);
  color: var(--wf5e9-white);
  padding: var(--wf5e9-space-md) 0;
  position: sticky;
  top: 0;
  z-index: var(--wf5e9-z-sticky);
  box-shadow: var(--wf5e9-shadow-md);
}

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

.wf5e9-logo {
  display: flex;
  align-items: center;
  gap: var(--wf5e9-space-sm);
  font-weight: 700;
  font-size: var(--wf5e9-font-size-xl);
  color: var(--wf5e9-white);
  text-decoration: none;
}

.wf5e9-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--wf5e9-border-radius-md);
}

.wf5e9-header-actions {
  display: flex;
  align-items: center;
  gap: var(--wf5e9-space-sm);
}

/* Navigation Components */
.wf5e9-mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--wf5e9-white);
  z-index: var(--wf5e9-z-modal);
  transition: left var(--wf5e9-transition-normal);
  overflow-y: auto;
  box-shadow: var(--wf5e9-shadow-xl);
}

.wf5e9-nav-open {
  left: 0;
}

.wf5e9-nav-menu {
  list-style: none;
  padding: var(--wf5e9-space-xl) 0;
}

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

.wf5e9-nav-link {
  display: flex;
  align-items: center;
  gap: var(--wf5e9-space-md);
  padding: var(--wf5e9-space-md) var(--wf5e9-space-lg);
  color: var(--wf5e9-gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--wf5e9-transition-fast);
  border-left: 3px solid transparent;
}

.wf5e9-nav-link:hover,
.wf5e9-nav-link:focus {
  background: var(--wf5e9-gray-100);
  color: var(--wf5e9-primary);
  border-left-color: var(--wf5e9-primary);
}

.wf5e9-nav-link.wf5e9-active {
  background: var(--wf5e9-primary);
  color: var(--wf5e9-white);
  border-left-color: var(--wf5e9-secondary);
}

.wf5e9-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--wf5e9-z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--wf5e9-transition-normal);
}

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

.wf5e9-nav-lock {
  overflow: hidden;
}

/* Hamburger Menu */
.wf5e9-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.wf5e9-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--wf5e9-white);
  border-radius: var(--wf5e9-border-radius-full);
  transition: all var(--wf5e9-transition-fast);
}

.wf5e9-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.wf5e9-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.wf5e9-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
.wf5e9-main {
  flex: 1;
  padding-bottom: 80px;
}

/* Hero Section */
.wf5e9-hero {
  background: linear-gradient(135deg, var(--wf5e9-primary) 0%, var(--wf5e9-secondary) 100%);
  color: var(--wf5e9-white);
  padding: var(--wf5e9-space-2xl) 0;
  text-align: center;
}

.wf5e9-hero-content h1 {
  font-size: var(--wf5e9-font-size-3xl);
  font-weight: 800;
  line-height: var(--wf5e9-line-height-tight);
  margin-bottom: var(--wf5e9-space-lg);
}

.wf5e9-hero-content p {
  font-size: var(--wf5e9-font-size-lg);
  line-height: var(--wf5e9-line-height-normal);
  margin-bottom: var(--wf5e9-space-xl);
  opacity: 0.95;
}

/* Section Components */
.wf5e9-section {
  padding: var(--wf5e9-space-2xl) 0;
}

.wf5e9-section-title {
  font-size: var(--wf5e9-font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--wf5e9-space-xl);
  color: var(--wf5e9-secondary);
}

.wf5e9-bg-surface {
  background: var(--wf5e9-white);
  position: relative;
}

.wf5e9-bg-surface::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wf5e9-gray-300), transparent);
}

/* Button Components */
.wf5e9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wf5e9-space-sm);
  padding: var(--wf5e9-space-sm) var(--wf5e9-space-lg);
  font-size: var(--wf5e9-font-size-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--wf5e9-border-radius-lg);
  cursor: pointer;
  transition: all var(--wf5e9-transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.wf5e9-btn-small {
  padding: var(--wf5e9-space-xs) var(--wf5e9-space-md);
  font-size: var(--wf5e9-font-size-sm);
}

.wf5e9-btn-large {
  padding: var(--wf5e9-space-md) var(--wf5e9-space-xl);
  font-size: var(--wf5e9-font-size-lg);
}

.wf5e9-btn-primary {
  background: linear-gradient(135deg, var(--wf5e9-primary) 0%, var(--wf5e9-secondary) 100%);
  color: var(--wf5e9-white);
  box-shadow: var(--wf5e9-shadow-md);
}

.wf5e9-btn-primary:hover,
.wf5e9-btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: var(--wf5e9-shadow-lg);
}

.wf5e9-btn-secondary {
  background: var(--wf5e9-gray-600);
  color: var(--wf5e9-white);
}

.wf5e9-btn-secondary:hover,
.wf5e9-btn-secondary:focus {
  background: var(--wf5e9-gray-700);
}

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

.wf5e9-btn-outline:hover,
.wf5e9-btn-outline:focus {
  background: var(--wf5e9-primary);
  color: var(--wf5e9-white);
}

.wf5e9-btn-accent {
  background: linear-gradient(135deg, var(--wf5e9-warning) 0%, #FF7043 100%);
  color: var(--wf5e9-white);
  box-shadow: var(--wf5e9-shadow-md);
}

/* Feature Components */
.wf5e9-features {
  display: grid;
  gap: var(--wf5e9-space-xl);
  margin: var(--wf5e9-space-xl) 0;
}

.wf5e9-feature {
  display: flex;
  gap: var(--wf5e9-space-lg);
  padding: var(--wf5e9-space-lg);
  background: var(--wf5e9-white);
  border-radius: var(--wf5e9-border-radius-xl);
  box-shadow: var(--wf5e9-shadow-sm);
  transition: all var(--wf5e9-transition-normal);
}

.wf5e9-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--wf5e9-shadow-lg);
}

.wf5e9-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--wf5e9-primary) 0%, var(--wf5e9-secondary) 100%);
  color: var(--wf5e9-white);
  border-radius: var(--wf5e9-border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--wf5e9-font-size-xl);
}

.wf5e9-feature-content h4 {
  font-size: var(--wf5e9-font-size-lg);
  font-weight: 600;
  color: var(--wf5e9-secondary);
  margin-bottom: var(--wf5e9-space-sm);
}

.wf5e9-feature-content p {
  color: var(--wf5e9-gray-700);
  line-height: var(--wf5e9-line-height-normal);
  margin-bottom: var(--wf5e9-space-md);
}

/* Statistics Components */
.wf5e9-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wf5e9-space-lg);
  margin: var(--wf5e9-space-xl) 0;
}

.wf5e9-stat {
  text-align: center;
  padding: var(--wf5e9-space-lg);
  background: var(--wf5e9-white);
  border-radius: var(--wf5e9-border-radius-xl);
  box-shadow: var(--wf5e9-shadow-sm);
  transition: all var(--wf5e9-transition-normal);
}

.wf5e9-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--wf5e9-shadow-md);
}

.wf5e9-stat-value {
  display: block;
  font-size: var(--wf5e9-font-size-3xl);
  font-weight: 800;
  color: var(--wf5e9-primary);
  line-height: var(--wf5e9-line-height-tight);
}

.wf5e9-stat-label {
  display: block;
  font-size: var(--wf5e9-font-size-sm);
  color: var(--wf5e9-gray-600);
  margin-top: var(--wf5e9-space-xs);
}

/* Game Grid Components */
.wf5e9-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wf5e9-space-lg);
  margin: var(--wf5e9-space-xl) 0;
}

.wf5e9-game-item {
  background: var(--wf5e9-white);
  border-radius: var(--wf5e9-border-radius-xl);
  overflow: hidden;
  box-shadow: var(--wf5e9-shadow-sm);
  transition: all var(--wf5e9-transition-normal);
  cursor: pointer;
}

.wf5e9-game-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--wf5e9-shadow-lg);
}

.wf5e9-game-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.wf5e9-game-info {
  padding: var(--wf5e9-space-md);
}

.wf5e9-game-name {
  font-size: var(--wf5e9-font-size-base);
  font-weight: 600;
  color: var(--wf5e9-secondary);
  margin-bottom: var(--wf5e9-space-xs);
  line-height: var(--wf5e9-line-height-tight);
}

.wf5e9-game-type {
  font-size: var(--wf5e9-font-size-xs);
  color: var(--wf5e9-white);
  background: var(--wf5e9-primary);
  padding: 2px var(--wf5e9-space-sm);
  border-radius: var(--wf5e9-border-radius-full);
  font-weight: 500;
}

/* Promotional Components */
.wf5e9-promo-section {
  background: linear-gradient(135deg, var(--wf5e9-primary) 0%, var(--wf5e9-secondary) 100%);
  color: var(--wf5e9-white);
  padding: var(--wf5e9-space-xl);
  border-radius: var(--wf5e9-border-radius-xl);
  text-align: center;
  margin: var(--wf5e9-space-xl) 0;
  position: relative;
  overflow: hidden;
}

.wf5e9-promo-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: wf5e9-promo-glow 3s ease-in-out infinite alternate;
}

@keyframes wf5e9-promo-glow {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(180deg); }
}

.wf5e9-promo-section h3 {
  font-size: var(--wf5e9-font-size-xl);
  font-weight: 700;
  margin-bottom: var(--wf5e9-space-md);
  position: relative;
  z-index: 1;
}

.wf5e9-promo-section p {
  font-size: var(--wf5e9-font-size-base);
  margin-bottom: var(--wf5e9-space-lg);
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.wf5e9-promo-highlight {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: var(--wf5e9-space-sm) var(--wf5e9-space-lg);
  border-radius: var(--wf5e9-border-radius-full);
  font-weight: 600;
  margin-bottom: var(--wf5e9-space-lg);
  position: relative;
  z-index: 1;
}

/* Footer Component */
.wf5e9-footer {
  background: var(--wf5e9-secondary);
  color: var(--wf5e9-white);
  padding: var(--wf5e9-space-xl) 0;
  margin-top: auto;
}

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

.wf5e9-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wf5e9-space-lg);
  margin-bottom: var(--wf5e9-space-lg);
}

.wf5e9-footer-link {
  color: var(--wf5e9-white);
  text-decoration: none;
  font-size: var(--wf5e9-font-size-sm);
  transition: color var(--wf5e9-transition-fast);
}

.wf5e9-footer-link:hover,
.wf5e9-footer-link:focus {
  color: var(--wf5e9-primary);
}

.wf5e9-copyright {
  font-size: var(--wf5e9-font-size-xs);
  opacity: 0.8;
}

/* Bottom Navigation */
.wf5e9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--wf5e9-white);
  border-top: 1px solid var(--wf5e9-gray-300);
  display: flex;
  z-index: var(--wf5e9-z-fixed);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.wf5e9-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--wf5e9-space-sm);
  color: var(--wf5e9-gray-500);
  text-decoration: none;
  transition: all var(--wf5e9-transition-fast);
  min-height: 60px;
}

.wf5e9-bottom-nav-item:hover,
.wf5e9-bottom-nav-item:focus,
.wf5e9-bottom-nav-item.wf5e9-active {
  color: var(--wf5e9-primary);
  background: rgba(0, 151, 167, 0.05);
}

.wf5e9-bottom-nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.wf5e9-bottom-nav-text {
  font-size: var(--wf5e9-font-size-xs);
  font-weight: 500;
}

/* Touch Feedback */
.wf5e9-touch-active {
  transform: scale(0.98);
  opacity: 0.8;
}

/* Animation Classes */
.wf5e9-animate-in {
  animation: wf5e9-slide-up 0.6s ease-out;
}

@keyframes wf5e9-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pause animations when page is hidden */
.wf5e9-paused * {
  animation-play-state: paused !important;
}

/* Responsive Design */
@media (max-width: 320px) {
  .wf5e9-container {
    padding: 0 var(--wf5e9-space-sm);
  }
  
  .wf5e9-hero-content h1 {
    font-size: var(--wf5e9-font-size-2xl);
  }
  
  .wf5e9-stats {
    grid-template-columns: 1fr;
  }
  
  .wf5e9-footer-links {
    flex-direction: column;
    gap: var(--wf5e9-space-sm);
  }
}

@media (min-width: 430px) {
  .wf5e9-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .wf5e9-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print Styles */
@media print {
  .wf5e9-header,
  .wf5e9-mobile-nav,
  .wf5e9-bottom-nav,
  .wf5e9-hamburger {
    display: none !important;
  }
  
  .wf5e9-main {
    padding-bottom: 0;
  }
  
  * {
    box-shadow: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --wf5e9-primary: #006064;
    --wf5e9-secondary: #003834;
    --wf5e9-dark: #000000;
    --wf5e9-light: #FFFFFF;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}