/**
 * superp.sbs - Main Design System
 * @version 1.0.0
 * @description Complete styling with mobile-first approach
 */

/* ===================================
   CSS Variables & Root Settings
   =================================== */
:root {
  /* Brand Colors */
  --v62d-primary: #CD853F;
  --v62d-primary-dark: #B87333;
  --v62d-primary-light: #DEA568;
  --v62d-bg: #0C0C0C;
  --v62d-bg-light: #1A1A1A;
  --v62d-bg-lighter: #2A2A2A;
  --v62d-text: #E0E0E0;
  --v62d-text-muted: #A0A0A0;
  --v62d-text-dark: #FFFFFF;
  --v62d-border: #3A3A3A;
  --v62d-success: #4CAF50;
  --v62d-warning: #FF9800;
  --v62d-danger: #F44336;
  --v62d-info: #2196F3;

  /* Typography */
  --v62d-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --v62d-font-size-base: 1.6rem;
  --v62d-font-size-sm: 1.4rem;
  --v62d-font-size-lg: 1.8rem;
  --v62d-font-size-xl: 2.4rem;
  --v62d-font-size-xxl: 3.2rem;
  --v62d-line-height: 1.5;
  --v62d-font-weight-normal: 400;
  --v62d-font-weight-medium: 500;
  --v62d-font-weight-bold: 700;

  /* Spacing */
  --v62d-spacing-xs: 0.8rem;
  --v62d-spacing-sm: 1.2rem;
  --v62d-spacing-md: 1.6rem;
  --v62d-spacing-lg: 2.4rem;
  --v62d-spacing-xl: 3.2rem;
  --v62d-spacing-xxl: 4.8rem;

  /* Layout */
  --v62d-max-width: 430px;
  --v62d-header-height: 60px;
  --v62d-bottom-nav-height: 60px;
  --v62d-border-radius: 8px;
  --v62d-border-radius-sm: 4px;
  --v62d-border-radius-lg: 12px;

  /* Shadows */
  --v62d-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --v62d-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --v62d-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --v62d-transition-fast: 0.15s ease;
  --v62d-transition-base: 0.3s ease;
  --v62d-transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--v62d-font-family);
  font-size: var(--v62d-font-size-base);
  line-height: var(--v62d-line-height);
  color: var(--v62d-text);
  background-color: var(--v62d-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--v62d-font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--v62d-spacing-md);
  color: var(--v62d-text-dark);
}

h1 {
  font-size: var(--v62d-font-size-xxl);
}

h2 {
  font-size: var(--v62d-font-size-xl);
}

h3 {
  font-size: var(--v62d-font-size-lg);
}

h4 {
  font-size: var(--v62d-font-size-base);
}

p {
  margin-bottom: var(--v62d-spacing-md);
}

a {
  color: var(--v62d-primary);
  text-decoration: none;
  transition: color var(--v62d-transition-fast);
}

a:hover {
  color: var(--v62d-primary-light);
}

/* ===================================
   Layout Components
   =================================== */
.v62d-container {
  width: 100%;
  max-width: var(--v62d-max-width);
  margin: 0 auto;
  padding: 0 var(--v62d-spacing-md);
}

.v62d-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v62d-main {
  flex: 1;
  padding-top: var(--v62d-header-height);
  padding-bottom: var(--v62d-bottom-nav-height);
}

.v62d-section {
  padding: var(--v62d-spacing-lg) 0;
  border-bottom: 1px solid var(--v62d-border);
}

.v62d-section:last-child {
  border-bottom: none;
}

/* ===================================
   Header & Navigation
   =================================== */
.v62d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v62d-header-height);
  background: linear-gradient(180deg, var(--v62d-bg-light) 0%, var(--v62d-bg) 100%);
  border-bottom: 1px solid var(--v62d-border);
  z-index: 1000;
  transition: transform var(--v62d-transition-base);
  box-shadow: var(--v62d-shadow-md);
}

.v62d-header.v62d-header-hidden {
  transform: translateY(-100%);
}

.v62d-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--v62d-spacing-md);
}

.v62d-logo {
  display: flex;
  align-items: center;
  gap: var(--v62d-spacing-sm);
  font-size: var(--v62d-font-size-lg);
  font-weight: var(--v62d-font-weight-bold);
  color: var(--v62d-text-dark);
}

.v62d-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--v62d-border-radius);
}

.v62d-header-actions {
  display: flex;
  align-items: center;
  gap: var(--v62d-spacing-sm);
}

.v62d-btn {
  padding: var(--v62d-spacing-xs) var(--v62d-spacing-md);
  font-size: var(--v62d-font-size-sm);
  font-weight: var(--v62d-font-weight-medium);
  border-radius: var(--v62d-border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--v62d-transition-fast);
  white-space: nowrap;
}

.v62d-btn-primary {
  background: linear-gradient(135deg, var(--v62d-primary) 0%, var(--v62d-primary-dark) 100%);
  color: var(--v62d-text-dark);
}

.v62d-btn-primary:hover {
  background: linear-gradient(135deg, var(--v62d-primary-light) 0%, var(--v62d-primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--v62d-shadow-md);
}

.v62d-btn-outline {
  background: transparent;
  color: var(--v62d-primary);
  border: 2px solid var(--v62d-primary);
}

.v62d-btn-outline:hover {
  background: var(--v62d-primary);
  color: var(--v62d-text-dark);
}

.v62d-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--v62d-text);
  cursor: pointer;
  border-radius: var(--v62d-border-radius);
  transition: background var(--v62d-transition-fast);
}

.v62d-menu-toggle:hover {
  background: var(--v62d-bg-lighter);
}

.v62d-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--v62d-text);
  position: relative;
  transition: all var(--v62d-transition-base);
}

.v62d-menu-toggle span:before,
.v62d-menu-toggle span:after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--v62d-text);
  transition: all var(--v62d-transition-base);
}

.v62d-menu-toggle span:before {
  top: -8px;
}

.v62d-menu-toggle span:after {
  bottom: -8px;
}

/* ===================================
   Mobile Menu
   =================================== */
.v62d-mobile-menu {
  position: fixed;
  top: var(--v62d-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--v62d-bg);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform var(--v62d-transition-base);
  overflow-y: auto;
}

.v62d-mobile-menu.v62d-menu-open {
  transform: translateX(0);
}

.v62d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--v62d-transition-base);
}

.v62d-menu-overlay.v62d-menu-open {
  opacity: 1;
  visibility: visible;
}

.v62d-menu-list {
  list-style: none;
  padding: var(--v62d-spacing-md);
}

.v62d-menu-item {
  border-bottom: 1px solid var(--v62d-border);
}

.v62d-menu-item:last-child {
  border-bottom: none;
}

.v62d-menu-link {
  display: flex;
  align-items: center;
  gap: var(--v62d-spacing-md);
  padding: var(--v62d-spacing-md);
  color: var(--v62d-text);
  font-size: var(--v62d-font-size-base);
  transition: background var(--v62d-transition-fast);
}

.v62d-menu-link:hover {
  background: var(--v62d-bg-lighter);
  color: var(--v62d-primary);
}

.v62d-menu-link i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* ===================================
   Bottom Navigation
   =================================== */
.v62d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v62d-bottom-nav-height);
  background: linear-gradient(180deg, var(--v62d-bg-light) 0%, var(--v62d-bg) 100%);
  border-top: 2px solid var(--v62d-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 769px) {
  .v62d-bottom-nav {
    display: none;
  }
}

.v62d-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: var(--v62d-spacing-xs);
  color: var(--v62d-text-muted);
  transition: all var(--v62d-transition-fast);
  position: relative;
}

.v62d-nav-item:hover {
  color: var(--v62d-primary);
}

.v62d-nav-item.v62d-active {
  color: var(--v62d-primary);
}

.v62d-nav-item.v62d-active:after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--v62d-primary);
  border-radius: 0 0 4px 4px;
}

.v62d-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.v62d-nav-label {
  font-size: 10px;
  font-weight: var(--v62d-font-weight-medium);
}

/* ===================================
   Carousel
   =================================== */
.v62d-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--v62d-border-radius-lg);
  margin-bottom: var(--v62d-spacing-lg);
}

.v62d-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.v62d-carousel-slide {
  min-width: 100%;
  height: 100%;
}

.v62d-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v62d-carousel-nav {
  position: absolute;
  bottom: var(--v62d-spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--v62d-spacing-sm);
  z-index: 10;
}

.v62d-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--v62d-transition-fast);
}

.v62d-carousel-dot.v62d-active {
  background: var(--v62d-primary);
  width: 24px;
  border-radius: 4px;
}

.v62d-carousel-prev,
.v62d-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--v62d-transition-fast);
  z-index: 10;
}

.v62d-carousel-prev {
  left: var(--v62d-spacing-sm);
}

.v62d-carousel-next {
  right: var(--v62d-spacing-sm);
}

.v62d-carousel-prev:hover,
.v62d-carousel-next:hover {
  background: var(--v62d-primary);
}

/* ===================================
   Game Grid
   =================================== */
.v62d-game-section {
  margin-bottom: var(--v62d-spacing-xl);
}

.v62d-section-title {
  font-size: var(--v62d-font-size-lg);
  font-weight: var(--v62d-font-weight-bold);
  margin-bottom: var(--v62d-spacing-md);
  color: var(--v62d-primary);
  display: flex;
  align-items: center;
  gap: var(--v62d-spacing-sm);
}

.v62d-section-title:before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--v62d-primary);
  border-radius: 2px;
}

.v62d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v62d-spacing-sm);
}

.v62d-game-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--v62d-border-radius);
  overflow: hidden;
  background: var(--v62d-bg-light);
  transition: all var(--v62d-transition-fast);
  cursor: pointer;
}

.v62d-game-item:hover {
  transform: scale(1.05);
  box-shadow: var(--v62d-shadow-md);
  z-index: 1;
}

.v62d-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v62d-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: var(--v62d-spacing-xs);
  font-size: 10px;
  color: var(--v62d-text-dark);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================
   Cards & Content
   =================================== */
.v62d-card {
  background: var(--v62d-bg-light);
  border-radius: var(--v62d-border-radius-lg);
  padding: var(--v62d-spacing-lg);
  margin-bottom: var(--v62d-spacing-md);
  border: 1px solid var(--v62d-border);
}

.v62d-card-title {
  font-size: var(--v62d-font-size-lg);
  font-weight: var(--v62d-font-weight-bold);
  margin-bottom: var(--v62d-spacing-md);
  color: var(--v62d-primary);
}

.v62d-card-content {
  font-size: var(--v62d-font-size-base);
  color: var(--v62d-text);
}

.v62d-promo-link {
  display: inline-block;
  padding: var(--v62d-spacing-sm) var(--v62d-spacing-lg);
  background: linear-gradient(135deg, var(--v62d-primary) 0%, var(--v62d-primary-dark) 100%);
  color: var(--v62d-text-dark);
  border-radius: var(--v62d-border-radius);
  font-weight: var(--v62d-font-weight-medium);
  transition: all var(--v62d-transition-fast);
  cursor: pointer;
}

.v62d-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--v62d-shadow-md);
}

/* ===================================
   Lists & Features
   =================================== */
.v62d-feature-list {
  list-style: none;
}

.v62d-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--v62d-spacing-md);
  padding: var(--v62d-spacing-md) 0;
  border-bottom: 1px solid var(--v62d-border);
}

.v62d-feature-item:last-child {
  border-bottom: none;
}

.v62d-feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--v62d-primary);
}

.v62d-feature-content {
  flex: 1;
}

.v62d-feature-title {
  font-weight: var(--v62d-font-weight-medium);
  color: var(--v62d-text-dark);
  margin-bottom: var(--v62d-spacing-xs);
}

.v62d-feature-text {
  font-size: var(--v62d-font-size-sm);
  color: var(--v62d-text-muted);
}

/* ===================================
   FAQ Section
   =================================== */
.v62d-faq-item {
  margin-bottom: var(--v62d-spacing-md);
  border: 1px solid var(--v62d-border);
  border-radius: var(--v62d-border-radius);
  overflow: hidden;
}

.v62d-faq-question {
  width: 100%;
  padding: var(--v62d-spacing-md);
  background: var(--v62d-bg-light);
  color: var(--v62d-text);
  border: none;
  text-align: left;
  font-size: var(--v62d-font-size-base);
  font-weight: var(--v62d-font-weight-medium);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--v62d-transition-fast);
}

.v62d-faq-question:hover {
  background: var(--v62d-bg-lighter);
}

.v62d-faq-answer {
  padding: var(--v62d-spacing-md);
  background: var(--v62d-bg);
  color: var(--v62d-text-muted);
  line-height: 1.6;
}

/* ===================================
   Footer
   =================================== */
.v62d-footer {
  background: var(--v62d-bg-light);
  padding: var(--v62d-spacing-xl) 0;
  border-top: 1px solid var(--v62d-border);
}

.v62d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v62d-spacing-md);
  margin-bottom: var(--v62d-spacing-lg);
}

.v62d-footer-link {
  color: var(--v62d-text-muted);
  font-size: var(--v62d-font-size-sm);
  transition: color var(--v62d-transition-fast);
}

.v62d-footer-link:hover {
  color: var(--v62d-primary);
}

.v62d-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v62d-spacing-md);
  margin-bottom: var(--v62d-spacing-lg);
  justify-content: center;
}

.v62d-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--v62d-transition-fast);
}

.v62d-partner-logo:hover {
  opacity: 1;
}

.v62d-copyright {
  text-align: center;
  color: var(--v62d-text-muted);
  font-size: var(--v62d-font-size-sm);
}

/* ===================================
   Utility Classes
   =================================== */
.v62d-text-center {
  text-align: center;
}

.v62d-text-primary {
  color: var(--v62d-primary);
}

.v62d-mt-sm {
  margin-top: var(--v62d-spacing-sm);
}

.v62d-mt-md {
  margin-top: var(--v62d-spacing-md);
}

.v62d-mt-lg {
  margin-top: var(--v62d-spacing-lg);
}

.v62d-mb-sm {
  margin-bottom: var(--v62d-spacing-sm);
}

.v62d-mb-md {
  margin-bottom: var(--v62d-spacing-md);
}

.v62d-mb-lg {
  margin-bottom: var(--v62d-spacing-lg);
}

.v62d-p-sm {
  padding: var(--v62d-spacing-sm);
}

.v62d-p-md {
  padding: var(--v62d-spacing-md);
}

.v62d-p-lg {
  padding: var(--v62d-spacing-lg);
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
  .v62d-main {
    padding-bottom: calc(var(--v62d-bottom-nav-height) + var(--v62d-spacing-lg));
  }

  .v62d-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--v62d-spacing-xs);
  }

  .v62d-carousel {
    height: 180px;
  }
}

@media (min-width: 769px) {
  .v62d-container {
    max-width: 100%;
  }

  .v62d-main {
    padding-bottom: var(--v62d-spacing-xl);
  }

  .v62d-menu-toggle {
    display: none;
  }
}

/* ===================================
   Touch Feedback
   =================================== */
.v62d-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* ===================================
   Animation Keyframes
   =================================== */
@keyframes v62d-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v62d-animate-fadeIn {
  animation: v62d-fadeIn 0.5s ease;
}

@keyframes v62d-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.v62d-animate-pulse {
  animation: v62d-pulse 2s infinite;
}
