/* WK777 Layout Stylesheet */
/* All classes prefixed with "v142-" to avoid conflicts */

/* Root Variables */
:root {
  --v142-primary: #7B68EE;
  --v142-secondary: #EE82EE;
  --v142-accent: #2E4057;
  --v142-bg: #1a1a2e;
  --v142-surface: #16213e;
  --v142-text: #ffffff;
  --v142-text-secondary: #b8b8b8;
  --v142-border: #333854;
  --v142-success: #00d4aa;
  --v142-warning: #ffb100;
  --v142-error: #ff3366;
  --v142-shadow: rgba(123, 104, 238, 0.2);
  --v142-transition: all 0.3s ease;
  --v142-border-radius: 8px;
  --v142-font-size-base: 62.5%;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--v142-font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--v142-bg);
  color: var(--v142-text);
  line-height: 1.6;
  font-size: 1.6rem;
  overflow-x: hidden;
}

/* Layout Components */
.v142-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v142-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.v142-main {
  flex: 1;
  padding-bottom: 7rem; /* Space for bottom nav */
}

/* Header Styles */
.v142-header {
  background: linear-gradient(135deg, var(--v142-primary), var(--v142-secondary));
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--v142-shadow);
}

.v142-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  min-height: 6rem;
}

.v142-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v142-text);
  font-weight: 700;
  font-size: 1.8rem;
}

.v142-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
}

.v142-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v142-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--v142-text);
  border-radius: var(--v142-border-radius);
  cursor: pointer;
  transition: var(--v142-transition);
}

.v142-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Navigation */
.v142-mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 28rem;
  height: 100vh;
  background: var(--v142-surface);
  z-index: 200;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.v142-mobile-nav.v142-active {
  left: 0;
}

.v142-mobile-nav-header {
  background: linear-gradient(135deg, var(--v142-primary), var(--v142-secondary));
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v142-nav-close {
  width: 4rem;
  height: 4rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--v142-text);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v142-nav-menu {
  list-style: none;
  padding: 2rem 0;
}

.v142-nav-item {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--v142-text);
  text-decoration: none;
  border-bottom: 1px solid var(--v142-border);
  transition: var(--v142-transition);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v142-nav-item:hover {
  background: rgba(123, 104, 238, 0.1);
  color: var(--v142-primary);
}

.v142-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: var(--v142-transition);
}

.v142-nav-overlay.v142-visible {
  opacity: 1;
  visibility: visible;
}

/* Button Styles */
.v142-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: var(--v142-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v142-transition);
  text-decoration: none;
  min-height: 4.4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--v142-primary), var(--v142-secondary));
  color: var(--v142-text);
}

.v142-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--v142-shadow);
}

.v142-btn-sm {
  padding: 0.8rem 1.5rem;
  font-size: 1.3rem;
  min-height: 3.6rem;
}

.v142-btn-lg {
  padding: 1.6rem 2.5rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

.v142-btn-outline {
  background: transparent;
  border: 2px solid var(--v142-primary);
  color: var(--v142-primary);
}

.v142-btn-outline:hover {
  background: var(--v142-primary);
  color: var(--v142-text);
}

/* Loading Screen */
.v142-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--v142-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
}

.v142-loading.v142-fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.v142-spinner {
  width: 4rem;
  height: 4rem;
  border: 3px solid rgba(123, 104, 238, 0.3);
  border-top: 3px solid var(--v142-primary);
  border-radius: 50%;
  animation: v142-spin 1s linear infinite;
}

@keyframes v142-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Card Styles */
.v142-card {
  background: var(--v142-surface);
  border: 1px solid var(--v142-border);
  border-radius: var(--v142-border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.v142-card-header {
  margin-bottom: 1.5rem;
}

.v142-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v142-primary);
  margin-bottom: 0.5rem;
}

/* Grid Layout */
.v142-grid {
  display: grid;
  gap: 1.5rem;
}

.v142-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.v142-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.v142-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Game Cards */
.v142-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v142-game-card {
  background: var(--v142-surface);
  border: 1px solid var(--v142-border);
  border-radius: var(--v142-border-radius);
  padding: 1rem;
  cursor: pointer;
  transition: var(--v142-transition);
  text-align: center;
}

.v142-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--v142-shadow);
  border-color: var(--v142-primary);
}

.v142-game-img {
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.v142-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v142-text);
  line-height: 1.3;
}

/* Carousel */
.v142-carousel {
  position: relative;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--v142-border-radius);
  margin: 2rem 0;
}

.v142-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.v142-slide.v142-active {
  opacity: 1;
}

.v142-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Statistics */
.v142-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.v142-stat-card {
  background: linear-gradient(135deg, var(--v142-primary), var(--v142-secondary));
  padding: 1.5rem;
  border-radius: var(--v142-border-radius);
  text-align: center;
  color: var(--v142-text);
}

.v142-stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.v142-stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section Styles */
.v142-section {
  padding: 3rem 0;
}

.v142-section-alt {
  background: var(--v142-surface);
}

.v142-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v142-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.v142-section-subtitle {
  font-size: 1.6rem;
  color: var(--v142-text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

/* Hero Section */
.v142-hero {
  background: linear-gradient(135deg, var(--v142-primary), var(--v142-secondary));
  padding: 4rem 0;
  text-align: center;
  color: var(--v142-text);
}

.v142-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.v142-hero-subtitle {
  font-size: 1.6rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.5;
}

/* Bottom Navigation */
.v142-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v142-surface);
  border-top: 1px solid var(--v142-border);
  z-index: 50;
}

.v142-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  min-height: 6rem;
}

.v142-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--v142-text-secondary);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--v142-transition);
  min-width: 4.4rem;
}

.v142-bottom-nav-item:hover,
.v142-bottom-nav-item.v142-active {
  color: var(--v142-primary);
  background: rgba(123, 104, 238, 0.1);
}

.v142-bottom-nav-icon {
  font-size: 2rem;
}

.v142-bottom-nav-text {
  font-size: 1rem;
  font-weight: 600;
}

/* Partner Grid */
.v142-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v142-partner-logo {
  width: 100%;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--v142-transition);
}

.v142-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
.v142-footer {
  background: var(--v142-accent);
  color: var(--v142-text);
  padding: 3rem 0 8rem 0; /* Extra bottom padding for mobile nav */
}

.v142-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v142-footer-link {
  color: var(--v142-text-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--v142-transition);
}

.v142-footer-link:hover {
  color: var(--v142-primary);
}

.v142-footer-copyright {
  text-align: center;
  color: var(--v142-text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Utility Classes */
.v142-text-center { text-align: center; }
.v142-text-left { text-align: left; }
.v142-text-right { text-align: right; }

.v142-mb-1 { margin-bottom: 1rem; }
.v142-mb-2 { margin-bottom: 2rem; }
.v142-mb-3 { margin-bottom: 3rem; }

.v142-mt-1 { margin-top: 1rem; }
.v142-mt-2 { margin-top: 2rem; }
.v142-mt-3 { margin-top: 3rem; }

.v142-hidden { display: none; }
.v142-visible { display: block; }

.v142-highlight {
  color: var(--v142-primary);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 480px) {
  .v142-container {
    padding: 0 1rem;
  }
  
  .v142-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  
  .v142-hero-title {
    font-size: 2.4rem;
  }
  
  .v142-section-title {
    font-size: 2rem;
  }
  
  .v142-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .v142-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .v142-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .v142-hero-title {
    font-size: 2rem;
  }
}

/* Animation Classes */
.v142-fade-in {
  animation: v142-fadeIn 0.5s ease-in;
}

@keyframes v142-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.v142-slide-up {
  animation: v142-slideUp 0.3s ease-out;
}

@keyframes v142-slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}