/* RG777 Gaming Platform - Mobile-First CSS Design */
/* Design Prefix: s6f8- */

:root {
  --s6f8-primary: #32CD32;
  --s6f8-secondary: #2C2C2C;
  --s6f8-bg: #3C3C3C;
  --s6f8-text: #ECF0F1;
  --s6f8-accent: #FAF0E6;
  --s6f8-neutral: #808080;
  --s6f8-dark: #1a1a1a;
  --s6f8-success: #28a745;
  --s6f8-warning: #ffc107;
  --s6f8-danger: #dc3545;
}

/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* Base 10px for rem calculations */
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s6f8-text);
  background: linear-gradient(135deg, var(--s6f8-bg) 0%, var(--s6f8-secondary) 100%);
  min-height: 100vh;
}

/* Layout containers */
.s6f8-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

.s6f8-container {
  padding: 1rem 1.5rem;
  max-width: 100%;
}

.s6f8-grid {
  display: grid;
  gap: 1rem;
}

/* Header styles */
.s6f8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--s6f8-secondary) 0%, var(--s6f8-dark) 100%);
  border-bottom: 2px solid var(--s6f8-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.s6f8-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.s6f8-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--s6f8-text);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.8rem;
}

.s6f8-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
}

.s6f8-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s6f8-menu-toggle {
  background: none;
  border: none;
  color: var(--s6f8-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile navigation */
.s6f8-mobile-nav {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--s6f8-secondary);
  border-bottom: 1px solid var(--s6f8-neutral);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

.s6f8-mobile-nav.s6f8-active {
  max-height: 40rem;
}

.s6f8-nav-list {
  list-style: none;
  padding: 1rem;
}

.s6f8-nav-item {
  margin-bottom: 0.5rem;
}

.s6f8-nav-link {
  display: block;
  color: var(--s6f8-text);
  text-decoration: none;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.s6f8-nav-link:hover,
.s6f8-nav-link:active {
  background-color: var(--s6f8-primary);
  color: var(--s6f8-dark);
}

/* Navigation overlay */
.s6f8-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Main content */
.s6f8-main {
  margin-top: 6rem;
  margin-bottom: 7rem;
  padding: 2rem 0;
}

/* Button styles */
.s6f8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--s6f8-primary);
  color: var(--s6f8-dark);
  text-decoration: none;
  border: none;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  text-align: center;
}

.s6f8-btn:hover,
.s6f8-btn:active {
  background: var(--s6f8-success);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

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

.s6f8-btn-outline:hover {
  background: var(--s6f8-primary);
  color: var(--s6f8-dark);
}

.s6f8-btn-small {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.s6f8-btn-large {
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

/* Card styles */
.s6f8-card {
  background: var(--s6f8-secondary);
  border-radius: 1.2rem;
  padding: 2rem;
  border: 1px solid var(--s6f8-neutral);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.s6f8-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Hero section */
.s6f8-hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--s6f8-dark) 0%, var(--s6f8-secondary) 100%);
  margin: 0 -1.5rem 2rem;
  border-radius: 0 0 2rem 2rem;
}

.s6f8-hero-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--s6f8-primary);
}

.s6f8-hero-subtitle {
  font-size: 1.6rem;
  color: var(--s6f8-accent);
  margin-bottom: 2rem;
}

/* Carousel styles */
.s6f8-carousel {
  position: relative;
  margin: 2rem -1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.s6f8-carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.s6f8-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.s6f8-carousel-image {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
}

/* Game grid styles */
.s6f8-game-section {
  margin: 3rem 0;
}

.s6f8-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--s6f8-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.s6f8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.s6f8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--s6f8-text);
  background: var(--s6f8-secondary);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.s6f8-game-item:hover {
  background: var(--s6f8-primary);
  color: var(--s6f8-dark);
  transform: translateY(-3px);
  border-color: var(--s6f8-success);
}

.s6f8-game-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.s6f8-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Content sections */
.s6f8-content-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--s6f8-secondary);
  border-radius: 1.5rem;
  border: 1px solid var(--s6f8-neutral);
}

.s6f8-content-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--s6f8-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.s6f8-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--s6f8-accent);
}

.s6f8-highlight {
  color: var(--s6f8-primary);
  font-weight: 600;
}

/* Stats grid */
.s6f8-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.s6f8-stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--s6f8-bg);
  border-radius: 1rem;
  border: 2px solid var(--s6f8-primary);
}

.s6f8-stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--s6f8-primary);
  margin-bottom: 0.5rem;
}

.s6f8-stat-label {
  font-size: 1.2rem;
  color: var(--s6f8-accent);
}

/* Footer styles */
.s6f8-footer {
  margin-top: 4rem;
  padding: 3rem 1.5rem 8rem;
  background: var(--s6f8-dark);
  color: var(--s6f8-accent);
}

.s6f8-footer-section {
  margin-bottom: 2rem;
}

.s6f8-footer-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--s6f8-primary);
  margin-bottom: 1rem;
}

.s6f8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s6f8-footer-link {
  color: var(--s6f8-accent);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: color 0.3s ease;
}

.s6f8-footer-link:hover {
  color: var(--s6f8-primary);
}

.s6f8-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.s6f8-partner-icon {
  width: 100%;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.s6f8-partner-icon:hover {
  filter: grayscale(0%);
}

.s6f8-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--s6f8-neutral);
  font-size: 1.2rem;
  color: var(--s6f8-neutral);
}

/* Bottom navigation */
.s6f8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--s6f8-secondary);
  border-top: 2px solid var(--s6f8-primary);
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.s6f8-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--s6f8-accent);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

.s6f8-bottom-nav-item:hover,
.s6f8-bottom-nav-item.s6f8-nav-active {
  background: var(--s6f8-primary);
  color: var(--s6f8-dark);
  transform: translateY(-2px);
}

.s6f8-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.s6f8-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Utility classes */
.s6f8-text-center {
  text-align: center;
}

.s6f8-text-left {
  text-align: left;
}

.s6f8-text-right {
  text-align: right;
}

.s6f8-mt-1 { margin-top: 1rem; }
.s6f8-mt-2 { margin-top: 2rem; }
.s6f8-mt-3 { margin-top: 3rem; }

.s6f8-mb-1 { margin-bottom: 1rem; }
.s6f8-mb-2 { margin-bottom: 2rem; }
.s6f8-mb-3 { margin-bottom: 3rem; }

.s6f8-p-1 { padding: 1rem; }
.s6f8-p-2 { padding: 2rem; }
.s6f8-p-3 { padding: 3rem; }

.s6f8-flex {
  display: flex;
}

.s6f8-flex-column {
  flex-direction: column;
}

.s6f8-justify-center {
  justify-content: center;
}

.s6f8-align-center {
  align-items: center;
}

.s6f8-gap-1 { gap: 1rem; }
.s6f8-gap-2 { gap: 2rem; }

/* Responsive adjustments */
@media (max-width: 375px) {
  .s6f8-container {
    padding: 1rem;
  }
  
  .s6f8-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .s6f8-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .s6f8-partners {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 375px) and (max-width: 430px) {
  .s6f8-hero-title {
    font-size: 2.8rem;
  }
  
  .s6f8-section-title {
    font-size: 2.2rem;
  }
}

/* Animation keyframes */
@keyframes s6f8-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes s6f8-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.s6f8-fade-in {
  animation: s6f8-fadeIn 0.8s ease-out;
}

.s6f8-pulse {
  animation: s6f8-pulse 2s infinite;
}

/* Loading states */
.s6f8-loading {
  position: relative;
  overflow: hidden;
}

.s6f8-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.2), transparent);
  animation: s6f8-shimmer 1.5s infinite;
}

@keyframes s6f8-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}