/**
 * JiliGames Stylesheet - v700 prefix
 * Mobile-first responsive design with 430px max-width
 * Color palette: #AFEEEE, #26A69A, #6C757D, #2D2D2D
 */

/* CSS Variables */
:root {
  --v700-primary: #AFEEEE;
  --v700-secondary: #26A69A;
  --v700-gray: #6C757D;
  --v700-dark: #2D2D2D;
  --v700-light: #f8f9fa;
  --v700-white: #ffffff;
  --v700-text-dark: #2D2D2D;
  --v700-text-light: #ffffff;
  --v700-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  --v700-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v700-text-dark);
  background-color: var(--v700-light);
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 70px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Container */
.v700-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

@media (min-width: 769px) {
  .v700-container {
    max-width: 1200px;
    padding: 0 2rem;
  }
}

/* Header Navigation */
.v700-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v700-secondary) 0%, var(--v700-primary) 100%);
  box-shadow: var(--v700-shadow);
  z-index: 1000;
  padding: 0.8rem 0;
}

.v700-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 769px) {
  .v700-header-container {
    max-width: 1200px;
    padding: 0 2rem;
  }
}

.v700-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--v700-white);
  font-size: 1.8rem;
  font-weight: 700;
}

.v700-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.v700-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.v700-header-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.v700-btn-register {
  background: var(--v700-white);
  color: var(--v700-secondary);
}

.v700-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.v700-btn-login {
  background: rgba(255, 255, 255, 0.2);
  color: var(--v700-white);
  border: 2px solid var(--v700-white);
}

.v700-btn-login:hover {
  background: var(--v700-white);
  color: var(--v700-secondary);
  transform: translateY(-2px);
}

.v700-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  padding: 0.5rem;
  cursor: pointer;
}

@media (min-width: 769px) {
  .v700-menu-toggle {
    display: none;
  }
}

.v700-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--v700-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.v700-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--v700-dark);
  z-index: 9999;
  padding: 4rem 1.5rem 2rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.v700-mobile-menu.v700-menu-open {
  right: 0;
}

.v700-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  color: var(--v700-white);
  font-size: 2.4rem;
  padding: 0.5rem;
  line-height: 1;
}

.v700-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v700-menu-overlay.v700-overlay-visible {
  opacity: 1;
  visibility: visible;
}

.v700-mobile-nav {
  margin-top: 2rem;
}

.v700-mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--v700-white);
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding-left 0.3s ease;
}

.v700-mobile-nav a:hover {
  padding-left: 1rem;
  color: var(--v700-primary);
}

/* Hero Slider */
.v700-hero {
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 769px) {
  .v700-hero {
    margin-top: 70px;
  }
}

.v700-hero-slider {
  position: relative;
  width: 100%;
  height: 200px;
}

@media (min-width: 769px) {
  .v700-hero-slider {
    height: 400px;
  }
}

.v700-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.v700-hero-slide.v700-slide-active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.v700-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v700-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--v700-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.v700-slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.v700-slider-prev {
  left: 1rem;
}

.v700-slider-next {
  right: 1rem;
}

.v700-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.v700-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v700-slider-dot.v700-dot-active {
  background: var(--v700-white);
  width: 30px;
  border-radius: 5px;
}

/* Main Content */
.v700-main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.v700-section {
  margin-bottom: 2.5rem;
}

.v700-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v700-dark);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--v700-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v700-section-title i {
  color: var(--v700-secondary);
  font-size: 2.2rem;
}

/* Game Grid */
.v700-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (min-width: 769px) {
  .v700-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.v700-game-card {
  background: var(--v700-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--v700-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.v700-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--v700-shadow-lg);
}

.v700-game-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--v700-secondary) 0%, var(--v700-primary) 100%);
}

.v700-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.v700-game-card:hover .v700-game-image img {
  transform: scale(1.1);
}

.v700-game-name {
  padding: 0.8rem 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--v700-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Card */
.v700-card {
  background: var(--v700-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--v700-shadow);
}

.v700-card h2 {
  font-size: 1.8rem;
  color: var(--v700-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.v700-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--v700-gray);
  margin-bottom: 1rem;
}

.v700-promo-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--v700-secondary) 0%, var(--v700-primary) 100%);
  color: var(--v700-white);
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(38, 166, 154, 0.3);
}

.v700-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.4);
}

/* Footer */
.v700-footer {
  background: var(--v700-dark);
  color: var(--v700-white);
  padding: 2.5rem 0 6rem;
}

@media (min-width: 769px) {
  .v700-footer {
    padding: 3rem 0 2rem;
  }
}

.v700-footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.v700-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.v700-footer-links a {
  color: var(--v700-primary);
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.v700-footer-links a:hover {
  background: rgba(175, 238, 238, 0.1);
  color: var(--v700-white);
}

.v700-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.v700-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.v700-partner-logo:hover {
  opacity: 1;
}

.v700-copyright {
  font-size: 1.3rem;
  color: var(--v700-gray);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.v700-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v700-dark) 0%, #1a1a1a 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 769px) {
  .v700-bottom-nav {
    display: none;
  }
}

.v700-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.3rem;
  color: var(--v700-gray);
  transition: all 0.3s ease;
  border-radius: 8px;
  cursor: pointer;
}

.v700-nav-item:hover {
  color: var(--v700-primary);
  background: rgba(175, 238, 238, 0.1);
  transform: scale(1.05);
}

.v700-nav-item.v700-nav-active {
  color: var(--v700-primary);
}

.v700-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v700-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Utility Classes */
.v700-text-center {
  text-align: center;
}

.v700-mt-1 {
  margin-top: 1rem;
}

.v700-mb-1 {
  margin-bottom: 1rem;
}

.v700-mt-2 {
  margin-top: 2rem;
}

.v700-mb-2 {
  margin-bottom: 2rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .v700-desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .v700-mobile-only {
    display: none !important;
  }
}
