/**
 * 333JL Gaming Platform - Core Stylesheet
 * Class Prefix: vc57-
 * Mobile-first responsive design
 * Color Palette: #0D1117 | #00FA9A | #98FB98 | #DAA520
 */

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
  /* Color System */
  --vc57-primary: #00FA9A;
  --vc57-secondary: #98FB98;
  --vc57-accent: #DAA520;
  --vc57-dark: #0D1117;
  --vc57-bg-primary: #0D1117;
  --vc57-bg-secondary: #161B22;
  --vc57-bg-tertiary: #1C2128;
  --vc57-text-primary: #00FA9A;
  --vc57-text-secondary: #98FB98;
  --vc57-text-muted: #8B949E;
  --vc57-border: #30363D;

  /* Spacing */
  --vc57-space-xs: 0.4rem;
  --vc57-space-sm: 0.8rem;
  --vc57-space-md: 1.6rem;
  --vc57-space-lg: 2.4rem;
  --vc57-space-xl: 3.2rem;

  /* Typography */
  --vc57-font-base: 62.5%;
  --vc57-font-body: 1.4rem;
  --vc57-font-small: 1.2rem;
  --vc57-line-height: 1.5;

  /* Layout */
  --vc57-max-width: 430px;
  --vc57-header-height: 60px;
  --vc57-bottom-nav-height: 64px;

  /* Shadows */
  --vc57-shadow-sm: 0 1px 3px rgba(0, 250, 154, 0.1);
  --vc57-shadow-md: 0 4px 6px rgba(0, 250, 154, 0.15);
  --vc57-shadow-lg: 0 10px 20px rgba(0, 250, 154, 0.2);

  /* Transitions */
  --vc57-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--vc57-font-base);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: var(--vc57-font-body);
  line-height: var(--vc57-line-height);
  color: var(--vc57-text-secondary);
  background-color: var(--vc57-bg-primary);
  overflow-x: hidden;
}

/* ========================================
   Header & Navigation
   ======================================== */
.vc57-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--vc57-header-height);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vc57-border);
  z-index: 1000;
  transition: var(--vc57-transition);
}

.vc57-header.vc57-scrolled {
  background: var(--vc57-bg-primary);
  box-shadow: var(--vc57-shadow-md);
}

.vc57-header-container {
  max-width: var(--vc57-max-width);
  margin: 0 auto;
  padding: 0 var(--vc57-space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vc57-logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--vc57-space-sm);
}

.vc57-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.vc57-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vc57-primary);
  text-decoration: none;
  letter-spacing: 1px;
}

.vc57-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--vc57-space-sm);
}

.vc57-btn {
  padding: 0.8rem 1.6rem;
  font-size: var(--vc57-font-small);
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--vc57-transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.vc57-btn-primary {
  background: linear-gradient(135deg, var(--vc57-primary), var(--vc57-secondary));
  color: var(--vc57-dark);
}

.vc57-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--vc57-shadow-md);
}

.vc57-btn-secondary {
  background: transparent;
  color: var(--vc57-primary);
  border: 1px solid var(--vc57-primary);
}

.vc57-btn-secondary:hover {
  background: var(--vc57-primary);
  color: var(--vc57-dark);
}

.webf1c-hamburger {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.webf1c-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--vc57-primary);
  transition: var(--vc57-transition);
}

.webf1c-hamburger.vc57-active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.webf1c-hamburger.vc57-active span:nth-child(2) {
  opacity: 0;
}

.webf1c-hamburger.vc57-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
#webf1c-mobile-menu {
  position: fixed;
  top: var(--vc57-header-height);
  right: -100%;
  width: 280px;
  height: calc(100vh - var(--vc57-header-height));
  background: var(--vc57-bg-secondary);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

#webf1c-mobile-menu.vc57-active {
  right: 0;
}

.vc57-menu-list {
  list-style: none;
  padding: var(--vc57-space-md);
}

.vc57-menu-item {
  margin-bottom: var(--vc57-space-sm);
}

.vc57-menu-link {
  display: block;
  padding: var(--vc57-space-md);
  color: var(--vc57-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: var(--vc57-transition);
  font-weight: 500;
}

.vc57-menu-link:hover,
.vc57-menu-link.vc57-active {
  background: var(--vc57-bg-tertiary);
  color: var(--vc57-primary);
}

#webf1c-menu-overlay {
  position: fixed;
  top: var(--vc57-header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--vc57-header-height));
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: var(--vc57-transition);
  z-index: 9998;
}

#webf1c-menu-overlay.vc57-active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Bottom Navigation (Mobile)
   ======================================== */
.vc57-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--vc57-bottom-nav-height);
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(22, 27, 34, 0.98));
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--vc57-primary);
  box-shadow: 0 -4px 20px rgba(0, 250, 154, 0.15);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--vc57-space-sm);
}

.vc57-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 60px;
  min-height: 60px;
  color: var(--vc57-text-muted);
  text-decoration: none;
  transition: var(--vc57-transition);
  cursor: pointer;
  position: relative;
}

.vc57-bottom-nav-item:hover,
.vc57-bottom-nav-item.vc57-active {
  color: var(--vc57-primary);
  transform: translateY(-2px);
}

.vc57-bottom-nav-item i {
  font-size: 24px;
  transition: var(--vc57-transition);
}

.vc57-bottom-nav-item:hover i,
.vc57-bottom-nav-item.vc57-active i {
  color: var(--vc57-primary);
  filter: drop-shadow(0 0 8px rgba(0, 250, 154, 0.5));
}

.vc57-bottom-nav-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .vc57-bottom-nav {
    display: none;
  }
}

/* ========================================
   Main Content Layout
   ======================================== */
.vc57-main {
  min-height: 100vh;
  padding-top: var(--vc57-header-height);
  padding-bottom: calc(var(--vc57-bottom-nav-height) + var(--vc57-space-md));
}

@media (min-width: 769px) {
  .vc57-main {
    padding-bottom: var(--vc57-space-md);
  }
}

.vc57-container {
  max-width: var(--vc57-max-width);
  margin: 0 auto;
  padding: 0 var(--vc57-space-md);
}

.vc57-section {
  padding: var(--vc57-space-lg) 0;
}

/* ========================================
   Typography
   ======================================== */
.vc57-h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--vc57-primary);
  margin-bottom: var(--vc57-space-md);
  line-height: 1.2;
}

.vc57-h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--vc57-primary);
  margin-bottom: var(--vc57-space-md);
}

.vc57-h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--vc57-secondary);
  margin-bottom: var(--vc57-space-sm);
}

.vc57-text-highlight {
  color: var(--vc57-primary);
  font-weight: 600;
}

.vc57-text-accent {
  color: var(--vc57-accent);
  font-weight: 600;
}

.vc57-link {
  color: var(--vc57-primary);
  text-decoration: underline;
  transition: var(--vc57-transition);
}

.vc57-link:hover {
  color: var(--vc57-secondary);
}

/* ========================================
   Carousel/Slider
   ======================================== */
.vc57-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--vc57-space-lg);
}

.vc57-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.vc57-slide.vc57-active {
  opacity: 1;
}

.vc57-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc57-carousel-dots {
  position: absolute;
  bottom: var(--vc57-space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--vc57-space-sm);
  z-index: 10;
}

.vc57-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--vc57-transition);
}

.vc57-dot.vc57-active {
  background: var(--vc57-primary);
  width: 24px;
  border-radius: 5px;
}

/* ========================================
   Game Cards
   ======================================== */
.vc57-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--vc57-space-sm);
  margin-bottom: var(--vc57-space-lg);
}

.vc57-game-card {
  background: var(--vc57-bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--vc57-transition);
  cursor: pointer;
  border: 1px solid var(--vc57-border);
}

.vc57-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vc57-shadow-lg);
  border-color: var(--vc57-primary);
}

.vc57-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.vc57-game-name {
  padding: var(--vc57-space-xs);
  font-size: 1.1rem;
  color: var(--vc57-text-secondary);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   Footer
   ======================================== */
.vc57-footer {
  background: var(--vc57-bg-secondary);
  border-top: 1px solid var(--vc57-border);
  padding: var(--vc57-space-xl) var(--vc57-space-md) var(--vc57-space-md);
  margin-bottom: var(--vc57-bottom-nav-height);
}

@media (min-width: 769px) {
  .vc57-footer {
    margin-bottom: 0;
  }
}

.vc57-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--vc57-space-sm);
  margin-bottom: var(--vc57-space-lg);
}

.vc57-footer-link {
  color: var(--vc57-text-secondary);
  text-decoration: none;
  transition: var(--vc57-transition);
  padding: var(--vc57-space-sm);
  border-radius: 4px;
}

.vc57-footer-link:hover {
  color: var(--vc57-primary);
  background: var(--vc57-bg-tertiary);
}

.vc57-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--vc57-space-md);
  padding: var(--vc57-space-lg) 0;
  border-top: 1px solid var(--vc57-border);
  border-bottom: 1px solid var(--vc57-border);
  margin-bottom: var(--vc57-space-lg);
}

.vc57-partner-img {
  height: 32px;
  width: auto;
  opacity: 0.6;
  transition: var(--vc57-transition);
  filter: grayscale(1);
}

.vc57-partner-img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.vc57-copyright {
  text-align: center;
  color: var(--vc57-text-muted);
  font-size: var(--vc57-font-small);
}

/* ========================================
   Accordion/FAQ
   ======================================== */
.vc57-accordion {
  margin-bottom: var(--vc57-space-lg);
}

.vc57-accordion-item {
  background: var(--vc57-bg-secondary);
  border-radius: 8px;
  margin-bottom: var(--vc57-space-sm);
  overflow: hidden;
  border: 1px solid var(--vc57-border);
}

.vc57-accordion-header {
  padding: var(--vc57-space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--vc57-text-secondary);
  font-weight: 600;
  transition: var(--vc57-transition);
}

.vc57-accordion-header:hover {
  color: var(--vc57-primary);
}

.vc57-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.vc57-accordion-item.vc57-active .vc57-accordion-content {
  max-height: 500px;
}

.vc57-accordion-body {
  padding: 0 var(--vc57-space-md) var(--vc57-space-md);
  color: var(--vc57-text-muted);
  line-height: 1.6;
}

/* ========================================
   Utility Classes
   ======================================== */
.vc57-text-center {
  text-align: center;
}

.vc57-mb-md {
  margin-bottom: var(--vc57-space-md);
}

.vc57-mb-lg {
  margin-bottom: var(--vc57-space-lg);
}

.vc57-mt-md {
  margin-top: var(--vc57-space-md);
}

.vc57-mt-lg {
  margin-top: var(--vc57-space-lg);
}
