/* Jililuck CSS Framework - Strategic Gaming Platform */
/* Author: Jililuck Development Team */
/* Version: 1.0.0 */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --v856-primary: #7FFF00;
  --v856-secondary: #1A1A1A;
  --v856-accent: #3CB371;
  --v856-light: #90EE90;
  --v856-bg: #1A1A1A;
  --v856-text: #7FFF00;
  --v856-text-light: #FFFFFF;
  --v856-text-secondary: #90EE90;
  --v856-border: rgba(127, 255, 0, 0.3);
  --v856-shadow: 0 4px 20px rgba(127, 255, 0, 0.15);
  --v856-shadow-hover: 0 8px 30px rgba(127, 255, 0, 0.25);
  --v856-gradient-1: linear-gradient(135deg, #7FFF00, #3CB371);
  --v856-gradient-2: linear-gradient(135deg, #1A1A1A, #3CB371);
  --v856-gradient-3: linear-gradient(135deg, #7FFF00, #90EE90);
}

/* Typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--v856-text);
  background: var(--v856-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--v856-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--v856-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--v856-accent);
  transform: translateY(-1px);
}

/* Container System */
.v856-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.v856-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

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

/* Header Styles */
.v856-header {
  background: var(--v856-gradient-1);
  box-shadow: var(--v856-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.v856-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.v856-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v856-secondary);
  text-decoration: none;
}

.v856-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.v856-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v856-menu-toggle {
  background: none;
  border: none;
  color: var(--v856-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.v856-menu-toggle:hover {
  background: rgba(26, 26, 26, 0.2);
  transform: scale(1.1);
}

/* Mobile Menu */
.v856-mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--v856-gradient-2);
  box-shadow: var(--v856-shadow);
  padding: 1rem;
  transform: translateY(-100%);
  transition: all 0.3s ease;
  z-index: 999;
}

.v856-mobile-menu.v856-active {
  transform: translateY(0);
}

.v856-mobile-menu.v856-hidden {
  display: none;
}

.v856-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.v856-nav-link {
  display: block;
  padding: 1rem;
  color: var(--v856-text-light);
  background: rgba(127, 255, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.v856-nav-link:hover {
  background: rgba(127, 255, 0, 0.2);
  transform: translateX(5px);
}

/* Button System */
.v856-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
  min-height: 44px;
}

.v856-btn-primary {
  background: var(--v856-gradient-1);
  color: var(--v856-secondary);
  box-shadow: var(--v856-shadow);
}

.v856-btn-primary:hover {
  box-shadow: var(--v856-shadow-hover);
  transform: translateY(-2px);
}

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

.v856-btn-secondary:hover {
  background: var(--v856-primary);
  color: var(--v856-secondary);
  transform: translateY(-2px);
}

.v856-btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  min-height: 36px;
}

.v856-btn-large {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  min-height: 52px;
}

/* Card System */
.v856-card {
  background: var(--v856-secondary);
  border-radius: 20px;
  box-shadow: var(--v856-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--v856-border);
}

.v856-card-header {
  background: var(--v856-gradient-1);
  color: var(--v856-secondary);
  padding: 1.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
}

.v856-card-content {
  padding: 2rem;
}

/* Game Grid System */
.v856-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v856-game-item {
  background: var(--v856-secondary);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.v856-game-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--v856-shadow-hover);
  border-color: var(--v856-primary);
}

.v856-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.v856-game-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--v856-text);
  line-height: 1.2;
}

/* Carousel System */
.v856-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.v856-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v856-slide.v856-active {
  opacity: 1;
}

.v856-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v856-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v856-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v856-indicator.v856-active {
  background: var(--v856-primary);
  transform: scale(1.2);
}

/* Bottom Navigation */
.v856-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v856-gradient-1);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: 60px;
}

.v856-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  color: rgba(26, 26, 26, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 12px;
  min-width: 60px;
}

.v856-bottom-nav-item:hover,
.v856-bottom-nav-item.v856-active {
  color: var(--v856-secondary);
  background: rgba(26, 26, 26, 0.2);
  transform: translateY(-2px);
}

.v856-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
}

.v856-bottom-nav-label {
  font-size: 12px;
  font-weight: 500;
}

/* Footer */
.v856-footer {
  background: var(--v856-secondary);
  color: var(--v856-text-light);
  padding: 3rem 0 5rem;
  margin-top: 3rem;
}

.v856-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.v856-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.v856-footer-link {
  color: var(--v856-primary);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.v856-footer-link:hover {
  background: rgba(127, 255, 0, 0.1);
  transform: translateY(-1px);
}

.v856-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.v856-partner-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.v856-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v856-copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--v856-text-secondary);
}

/* Utility Classes */
.v856-text-center { text-align: center; }
.v856-text-left { text-align: left; }
.v856-text-right { text-align: right; }

.v856-mt-1 { margin-top: 1rem; }
.v856-mt-2 { margin-top: 2rem; }
.v856-mb-1 { margin-bottom: 1rem; }
.v856-mb-2 { margin-bottom: 2rem; }

.v856-hidden { display: none; }
.v856-visible { display: block; }

/* Animation Classes */
.v856-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.v856-animate-on-scroll.v856-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 380px) {
  .v856-container {
    padding: 0 0.5rem;
  }
  
  .v856-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .v856-game-icon {
    width: 50px;
    height: 50px;
  }
  
  .v856-game-name {
    font-size: 0.9rem;
  }
  
  .v856-card-content {
    padding: 1.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 320px) {
  .v856-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .v856-bottom-nav-label {
    font-size: 10px;
  }
  
  .v856-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Loading States */
.v856-loading {
  position: relative;
  overflow: hidden;
}

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

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

/* Focus States for Accessibility */
.v856-btn:focus,
.v856-game-item:focus,
.v856-nav-link:focus {
  outline: 2px solid var(--v856-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --v856-primary: #00FF00;
    --v856-secondary: #000000;
    --v856-text: #00FF00;
    --v856-text-light: #FFFFFF;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}