/**
 * FastPlay - Core CSS Stylesheet
 * All classes use prefix: v4ce-
 * Version: 1.0.0
 * Mobile-first responsive design
 */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color palette */
  --v4ce-primary: #ADFF2F;
  --v4ce-secondary: #708090;
  --v4ce-dark: #1B263B;
  --v4ce-medium: #5D5D5D;
  --v4ce-light: #D3D3D3;
  --v4ce-border: #C0C0C0;

  /* Spacing */
  --v4ce-spacing-xs: 0.25rem;
  --v4ce-spacing-sm: 0.5rem;
  --v4ce-spacing-md: 1rem;
  --v4ce-spacing-lg: 1.5rem;
  --v4ce-spacing-xl: 2rem;

  /* Typography */
  --v4ce-font-base: 62.5%;
  --v4ce-font-sm: 1.2rem;
  --v4ce-font-md: 1.4rem;
  --v4ce-font-lg: 1.6rem;
  --v4ce-font-xl: 2.4rem;

  /* Layout */
  --v4ce-max-width: 43rem;
  --v4ce-header-height: 5.6rem;
  --v4ce-nav-height: 6rem;
}

/* Base HTML */
html {
  font-size: var(--v4ce-font-base);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: var(--v4ce-font-md);
  line-height: 1.5;
  color: var(--v4ce-light);
  background-color: var(--v4ce-dark);
  overflow-x: hidden;
}

/* Container */
.v4ce-container {
  max-width: var(--v4ce-max-width);
  margin: 0 auto;
  padding: 0 var(--v4ce-spacing-md);
}

/* Header */
.v4ce-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v4ce-header-height);
  background: linear-gradient(180deg, var(--v4ce-dark) 0%, rgba(27, 38, 59, 0.95) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.v4ce-header.v4ce-header-hidden {
  transform: translateY(-100%);
}

.v4ce-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--v4ce-spacing-md);
}

.v4ce-logo {
  display: flex;
  align-items: center;
  gap: var(--v4ce-spacing-sm);
  text-decoration: none;
  color: var(--v4ce-primary);
  font-weight: 700;
  font-size: var(--v4ce-font-lg);
}

.v4ce-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.v4ce-header-buttons {
  display: flex;
  gap: var(--v4ce-spacing-sm);
}

.v4ce-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.6rem;
  font-size: var(--v4ce-font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
}

.v4ce-btn-register {
  background: linear-gradient(135deg, var(--v4ce-primary) 0%, #9ACD32 100%);
  color: var(--v4ce-dark);
}

.v4ce-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(173, 255, 47, 0.4);
}

.v4ce-btn-login {
  background: transparent;
  color: var(--v4ce-light);
  border: 0.2rem solid var(--v4ce-primary);
}

.v4ce-btn-login:hover {
  background: var(--v4ce-primary);
  color: var(--v4ce-dark);
}

/* Mobile Menu Toggle */
.v4ce-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .v4ce-menu-toggle {
    display: none;
  }
}

.v4ce-menu-toggle span {
  display: block;
  width: 2.4rem;
  height: 0.3rem;
  background: var(--v4ce-primary);
  border-radius: 0.2rem;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.v4ce-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 0.3s ease;
}

.v4ce-menu-overlay.v4ce-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.v4ce-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 30rem;
  height: 100%;
  background: var(--v4ce-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: var(--v4ce-spacing-lg);
}

.v4ce-mobile-menu.v4ce-active {
  right: 0;
}

.v4ce-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--v4ce-spacing-lg);
  padding-bottom: var(--v4ce-spacing-md);
  border-bottom: 0.1rem solid var(--v4ce-border);
}

.v4ce-menu-close {
  font-size: 2.4rem;
  color: var(--v4ce-light);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.v4ce-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--v4ce-spacing-sm);
}

.v4ce-menu-link {
  display: block;
  padding: var(--v4ce-spacing-md);
  color: var(--v4ce-light);
  text-decoration: none;
  border-radius: 0.6rem;
  transition: all 0.3s ease;
  font-size: var(--v4ce-font-md);
}

.v4ce-menu-link:hover {
  background: rgba(173, 255, 47, 0.1);
  color: var(--v4ce-primary);
}

/* Main Content */
.v4ce-main {
  margin-top: var(--v4ce-header-height);
  padding-bottom: var(--v4ce-nav-height);
  min-height: 100vh;
}

@media (min-width: 769px) {
  .v4ce-main {
    padding-bottom: var(--v4ce-spacing-lg);
  }
}

/* Carousel */
.v4ce-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--v4ce-spacing-lg);
}

.v4ce-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v4ce-carousel-slide {
  min-width: 100%;
  position: relative;
}

.v4ce-carousel-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.v4ce-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--v4ce-spacing-lg);
  background: linear-gradient(transparent, rgba(27, 38, 59, 0.9));
}

/* Section */
.v4ce-section {
  padding: var(--v4ce-spacing-lg) 0;
}

.v4ce-section-title {
  font-size: var(--v4ce-font-xl);
  color: var(--v4ce-primary);
  margin-bottom: var(--v4ce-spacing-md);
  font-weight: 700;
}

/* Game Grid */
.v4ce-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--v4ce-spacing-sm);
  margin-bottom: var(--v4ce-spacing-lg);
}

.v4ce-game-item {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v4ce-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(173, 255, 47, 0.3);
}

.v4ce-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.v4ce-game-name {
  padding: var(--v4ce-spacing-sm);
  font-size: var(--v4ce-font-sm);
  text-align: center;
  color: var(--v4ce-light);
  background: rgba(27, 38, 59, 0.9);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Card */
.v4ce-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: var(--v4ce-spacing-lg);
  margin-bottom: var(--v4ce-spacing-md);
  border: 0.1rem solid rgba(173, 255, 47, 0.2);
}

.v4ce-card-title {
  font-size: var(--v4ce-font-lg);
  color: var(--v4ce-primary);
  margin-bottom: var(--v4ce-spacing-sm);
  font-weight: 600;
}

.v4ce-card-content {
  color: var(--v4ce-light);
  line-height: 1.6;
}

/* Link */
.v4ce-link {
  color: var(--v4ce-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.v4ce-link:hover {
  color: #9ACD32;
  text-decoration: underline;
}

/* Mobile Bottom Navigation */
.v4ce-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v4ce-nav-height);
  background: linear-gradient(180deg, var(--v4ce-dark) 0%, rgba(27, 38, 59, 0.98) 100%);
  border-top: 0.2rem solid var(--v4ce-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 var(--v4ce-spacing-sm);
}

@media (min-width: 769px) {
  .v4ce-bottom-nav {
    display: none;
  }
}

.v4ce-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 6rem;
  min-height: 5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.6rem;
  text-decoration: none;
  color: var(--v4ce-light);
}

.v4ce-nav-item:hover {
  background: rgba(173, 255, 47, 0.1);
  transform: scale(1.05);
}

.v4ce-nav-item:active {
  transform: scale(0.95);
}

.v4ce-nav-icon {
  font-size: 2.2rem;
  color: var(--v4ce-primary);
}

.v4ce-nav-text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Footer */
.v4ce-footer {
  background: var(--v4ce-medium);
  padding: var(--v4ce-spacing-lg) 0;
  margin-top: var(--v4ce-spacing-xl);
}

.v4ce-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v4ce-spacing-md);
  margin-bottom: var(--v4ce-spacing-lg);
  justify-content: center;
}

.v4ce-footer-link {
  color: var(--v4ce-light);
  text-decoration: none;
  font-size: var(--v4ce-font-sm);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

.v4ce-footer-link:hover {
  background: var(--v4ce-primary);
  color: var(--v4ce-dark);
}

.v4ce-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v4ce-spacing-md);
  justify-content: center;
  margin-bottom: var(--v4ce-spacing-lg);
}

.v4ce-partner-img {
  width: 8rem;
  height: 3rem;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v4ce-partner-img:hover {
  opacity: 1;
}

.v4ce-copyright {
  text-align: center;
  color: var(--v4ce-border);
  font-size: var(--v4ce-font-sm);
  padding: var(--v4ce-spacing-md);
}

/* Utilities */
.v4ce-text-center {
  text-align: center;
}

.v4ce-mb-sm {
  margin-bottom: var(--v4ce-spacing-sm);
}

.v4ce-mb-md {
  margin-bottom: var(--v4ce-spacing-md);
}

.v4ce-mb-lg {
  margin-bottom: var(--v4ce-spacing-lg);
}

.v4ce-promo-link {
  color: var(--v4ce-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v4ce-promo-link:hover {
  color: #9ACD32;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 380px) {
  .v4ce-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
