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

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

:root {
  --gd17-primary: #FFEB3B;
  --gd17-secondary: #0D1117;
  --gd17-accent: #FFC107;
  --gd17-light: #FFF59D;
  --gd17-bg: #0D1117;
  --gd17-text: #FFEB3B;
  --gd17-text-light: #FFFFFF;
  --gd17-text-secondary: #FFF59D;
  --gd17-border: rgba(255, 235, 59, 0.3);
  --gd17-shadow: 0 4px 20px rgba(255, 235, 59, 0.15);
  --gd17-shadow-hover: 0 8px 30px rgba(255, 235, 59, 0.25);
  --gd17-gradient-1: linear-gradient(135deg, #FFEB3B, #FFC107);
  --gd17-gradient-2: linear-gradient(135deg, #0D1117, #1C2128);
  --gd17-gradient-3: linear-gradient(135deg, #FFF59D, #FFEB3B);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gd17-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(--gd17-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

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

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

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

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

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

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

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

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

.gd17-menu-toggle:hover {
  background: rgba(13, 17, 23, 0.2);
  transform: scale(1.1);
}

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

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

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

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

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

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

.gd17-nav-link:hover {
  background: rgba(255, 235, 59, 0.2);
  transform: translateX(5px);
}

/* Button System */
.gd17-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;
}

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

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

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

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

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

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

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

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

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

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

.gd17-game-item {
  background: var(--gd17-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;
}

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

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

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

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

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

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

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

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

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

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

/* Bottom Navigation */
.gd17-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gd17-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;
}

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

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

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

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

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

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

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

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

.gd17-footer-link:hover {
  background: rgba(255, 235, 59, 0.1);
  transform: translateY(-1px);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --gd17-primary: #FFFF00;
    --gd17-secondary: #000000;
    --gd17-text: #FFFF00;
    --gd17-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;
  }
}