/**
 * MNL63 Gaming Platform CSS Styles
 * All classes use prefix 'wc957-' for namespace isolation
 */

/* CSS Variables */
:root {
  --wc957-primary: #FFD700;
  --wc957-secondary: #FFF8DC;
  --wc957-light: #E5E5E5;
  --wc957-dark: #2D2D2D;
  --wc957-bg: #1a1a1a;
  --wc957-text: #ffffff;
  --wc957-text-muted: #b0b0b0;
  --wc957-success: #28a745;
  --wc957-danger: #dc3545;
  --wc957-warning: #ffc107;
  --wc957-info: #17a2b8;
  --wc957-border: #333333;
  --wc957-shadow: rgba(0, 0, 0, 0.3);
  --wc957-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --wc957-font-size-base: 1.6rem;
  --wc957-line-height: 1.5;
  --wc957-border-radius: 8px;
  --wc957-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--wc957-font-size-base);
  line-height: var(--wc957-line-height);
  background-color: var(--wc957-bg);
  color: var(--wc957-text);
  overflow-x: hidden;
}

/* Container and Layout */
.wc957-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wc957-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem;
}

.wc957-grid {
  display: grid;
  gap: 1.5rem;
}

.wc957-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wc957-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wc957-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header */
.wc957-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--wc957-dark) 0%, #1a1a1a 100%);
  border-bottom: 1px solid var(--wc957-border);
  backdrop-filter: blur(10px);
  transition: var(--wc957-transition);
}

.wc957-header.scrolled {
  background: rgba(45, 45, 45, 0.95);
  box-shadow: 0 2px 20px var(--wc957-shadow);
}

.wc957-header-content {
  padding: 1rem 1.5rem;
}

.wc957-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--wc957-primary);
  text-decoration: none;
}

.wc957-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
}

.wc957-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wc957-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--wc957-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wc957-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  touch-action: manipulation;
}

.wc957-btn-primary {
  background: var(--wc957-gradient);
  color: var(--wc957-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.wc957-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.wc957-btn-outline {
  background: transparent;
  color: var(--wc957-primary);
  border: 2px solid var(--wc957-primary);
}

.wc957-btn-outline:hover {
  background: var(--wc957-primary);
  color: var(--wc957-dark);
  transform: translateY(-2px);
}

.wc957-menu-toggle {
  background: none;
  border: none;
  color: var(--wc957-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--wc957-border-radius);
  transition: var(--wc957-transition);
}

.wc957-menu-toggle:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* Mobile Menu */
.wc957-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--wc957-dark);
  z-index: 9999;
  transition: var(--wc957-transition);
  overflow-y: auto;
}

.wc957-mobile-menu.active {
  right: 0;
}

.wc957-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--wc957-transition);
}

.wc957-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wc957-menu-header {
  padding: 2rem;
  background: var(--wc957-gradient);
  color: var(--wc957-dark);
}

.wc957-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--wc957-dark);
  font-size: 2.4rem;
  cursor: pointer;
}

.wc957-menu-nav {
  padding: 2rem 0;
}

.wc957-menu-item {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--wc957-text);
  text-decoration: none;
  border-bottom: 1px solid var(--wc957-border);
  transition: var(--wc957-transition);
}

.wc957-menu-item:hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--wc957-primary);
}

.wc957-menu-item i {
  margin-right: 1rem;
  width: 2rem;
  text-align: center;
}

/* Main Content */
.wc957-main {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.wc957-section {
  margin-bottom: 3rem;
}

.wc957-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--wc957-primary);
  text-align: center;
}

/* Carousel */
.wc957-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--wc957-border-radius);
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px var(--wc957-shadow);
}

.wc957-carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.wc957-carousel-slide {
  min-width: 100%;
  position: relative;
}

.wc957-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

.wc957-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.wc957-carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--wc957-transition);
}

.wc957-carousel-indicator.active {
  background: var(--wc957-primary);
}

/* Game Grid */
.wc957-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.wc957-game-card {
  background: var(--wc957-dark);
  border-radius: var(--wc957-border-radius);
  overflow: hidden;
  transition: var(--wc957-transition);
  cursor: pointer;
  border: 1px solid var(--wc957-border);
}

.wc957-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--wc957-shadow);
  border-color: var(--wc957-primary);
}

.wc957-game-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.wc957-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--wc957-text);
  background: var(--wc957-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Cards */
.wc957-content-card {
  background: var(--wc957-dark);
  border-radius: var(--wc957-border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--wc957-border);
  transition: var(--wc957-transition);
}

.wc957-content-card:hover {
  border-color: var(--wc957-primary);
  box-shadow: 0 5px 20px var(--wc957-shadow);
}

.wc957-content-card h2 {
  color: var(--wc957-primary);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.wc957-content-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.wc957-content-card ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.wc957-content-card li {
  margin-bottom: 0.5rem;
}

/* Promotional Links */
.wc957-promo-link {
  color: var(--wc957-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--wc957-transition);
}

.wc957-promo-link:hover {
  color: var(--wc957-warning);
  text-decoration: underline;
}

.wc957-promo-btn {
  background: var(--wc957-gradient);
  color: var(--wc957-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--wc957-border-radius);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wc957-transition);
  margin: 0.5rem;
  display: inline-block;
  text-decoration: none;
}

.wc957-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Footer */
.wc957-footer {
  background: var(--wc957-dark);
  border-top: 1px solid var(--wc957-border);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
}

.wc957-footer-content {
  text-align: center;
}

.wc957-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wc957-footer-link {
  color: var(--wc957-text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--wc957-transition);
}

.wc957-footer-link:hover {
  color: var(--wc957-primary);
}

.wc957-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.wc957-partner {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--wc957-transition);
}

.wc957-partner:hover {
  opacity: 1;
  transform: scale(1.1);
}

.wc957-copyright {
  color: var(--wc957-text-muted);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Bottom Navigation */
.wc957-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--wc957-dark);
  border-top: 1px solid var(--wc957-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  padding: 0.5rem 0;
}

.wc957-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  padding: 0.5rem;
  color: var(--wc957-text-muted);
  text-decoration: none;
  transition: var(--wc957-transition);
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
}

.wc957-bottom-nav-item:hover,
.wc957-bottom-nav-item.active {
  color: var(--wc957-primary);
  transform: translateY(-2px);
}

.wc957-bottom-nav-item i {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.wc957-bottom-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wc957-main {
    padding-bottom: 8rem;
  }

  .wc957-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .wc957-game-image {
    height: 70px;
  }

  .wc957-game-name {
    font-size: 1.1rem;
    padding: 0.6rem;
  }
}

@media (min-width: 769px) {
  .wc957-bottom-nav {
    display: none;
  }

  .wc957-wrapper {
    padding-bottom: 0;
  }

  .wc957-container {
    max-width: 1200px;
  }

  .wc957-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Utility Classes */
.wc957-text-center {
  text-align: center;
}

.wc957-text-primary {
  color: var(--wc957-primary);
}

.wc957-mb-1 {
  margin-bottom: 1rem;
}

.wc957-mb-2 {
  margin-bottom: 2rem;
}

.wc957-mb-3 {
  margin-bottom: 3rem;
}

.wc957-mt-1 {
  margin-top: 1rem;
}

.wc957-mt-2 {
  margin-top: 2rem;
}

.wc957-mt-3 {
  margin-top: 3rem;
}

/* Loading States */
.wc957-loading {
  opacity: 0.6;
  pointer-events: none;
}

.wc957-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--wc957-light);
  border-top: 2px solid var(--wc957-primary);
  border-radius: 50%;
  animation: wc957-spin 1s linear infinite;
}

@keyframes wc957-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes wc957-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wc957-fade-in {
  animation: wc957-fadeIn 0.5s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.wc957-btn:focus,
.wc957-menu-toggle:focus,
.wc957-bottom-nav-item:focus {
  outline: 2px solid var(--wc957-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --wc957-bg: #000000;
    --wc957-text: #ffffff;
    --wc957-border: #ffffff;
  }
}