/**
 * JL2 Gaming Platform - Design System
 * All CSS classes prefixed with g563-
 * Mobile-first responsive design
 * Color palette: #36454F, #98FB98, #0F0F23, #A9A9A9, #F5F5F5
 */

/* ======================
   CSS Reset & Base
   ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --g563-primary: #98FB98;
  --g563-dark: #0F0F23;
  --g563-charcoal: #36454F;
  --g563-gray: #A9A9A9;
  --g563-light: #F5F5F5;
  --g563-accent: #98FB98;
  --g563-text: #F5F5F5;
  --g563-text-dark: #0F0F23;
  --g563-shadow: rgba(15, 15, 35, 0.15);
  --g563-spacing: 1rem;
  font-size: 62.5%;
}

html {
  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(--g563-text);
  background-color: var(--g563-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--g563-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--g563-accent);
  text-decoration: underline;
}

/* ======================
   Layout Container
   ====================== */
.g563-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.g563-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.g563-main {
  flex: 1;
  padding-top: 70px;
  padding-bottom: 2rem;
}

/* ======================
   Header & Navigation
   ====================== */
.g563-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g563-charcoal) 0%, var(--g563-dark) 100%);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--g563-shadow);
  transition: all 0.3s ease;
}

.g563-header-scrolled {
  background: var(--g563-dark);
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(152, 251, 152, 0.1);
}

.g563-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g563-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g563-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.g563-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g563-primary);
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.g563-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g563-btn-register,
.g563-btn-login {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g563-btn-register {
  background: linear-gradient(135deg, var(--g563-primary) 0%, #7CCD7C 100%);
  color: var(--g563-dark);
  box-shadow: 0 2px 8px rgba(152, 251, 152, 0.3);
}

.g563-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(152, 251, 152, 0.4);
}

.g563-btn-login {
  background: transparent;
  color: var(--g563-primary);
  border: 2px solid var(--g563-primary);
}

.g563-btn-login:hover {
  background: var(--g563-primary);
  color: var(--g563-dark);
}

.g563-hamburger {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-left: 0.8rem;
}

.g563-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--g563-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.g563-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.g563-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.g563-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.g563-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--g563-charcoal) 0%, var(--g563-dark) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.g563-menu-active {
  right: 0;
}

.g563-menu-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(152, 251, 152, 0.1);
}

.g563-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g563-primary);
  margin-bottom: 0.5rem;
}

.g563-menu-nav {
  padding: 1.5rem 0;
}

.g563-menu-link {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  color: var(--g563-light);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.g563-menu-link:hover {
  background: rgba(152, 251, 152, 0.1);
  border-left-color: var(--g563-primary);
  text-decoration: none;
  color: var(--g563-primary);
}

.g563-menu-link i {
  margin-right: 1rem;
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

.g563-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
  backdrop-filter: blur(4px);
}

.g563-overlay-active {
  display: block;
}

/* ======================
   Bottom Navigation
   ====================== */
.g563-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g563-charcoal) 0%, var(--g563-dark) 100%);
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--g563-shadow);
  border-top: 1px solid rgba(152, 251, 152, 0.1);
}

.g563-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.g563-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem;
}

.g563-nav-item:hover {
  background: rgba(152, 251, 152, 0.1);
  transform: translateY(-2px);
}

.g563-nav-item i {
  font-size: 2.4rem;
  color: var(--g563-primary);
  margin-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.g563-nav-item:hover i {
  color: var(--g563-accent);
  transform: scale(1.1);
}

.g563-nav-label {
  font-size: 1.1rem;
  color: var(--g563-light);
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 769px) {
  .g563-bottom-nav {
    display: none;
  }

  .g563-main {
    padding-bottom: 2rem;
  }
}

/* ======================
   Carousel
   ====================== */
.g563-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.g563-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.g563-carousel-slide {
  min-width: 100%;
  cursor: pointer;
  position: relative;
}

.g563-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.g563-carousel-prev,
.g563-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(152, 251, 152, 0.2);
  color: var(--g563-primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.g563-carousel-prev {
  left: 1rem;
}

.g563-carousel-next {
  right: 1rem;
}

.g563-carousel-prev:hover,
.g563-carousel-next:hover {
  background: rgba(152, 251, 152, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.g563-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.g563-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g563-dot-active {
  background: var(--g563-primary);
  width: 24px;
  border-radius: 5px;
}

/* ======================
   Game Grid
   ====================== */
.g563-game-section {
  margin: 3rem 0;
}

.g563-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g563-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(152, 251, 152, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g563-section-title i {
  font-size: 2.4rem;
}

.g563-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.g563-game-card {
  background: var(--g563-charcoal);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(152, 251, 152, 0.1);
}

.g563-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(152, 251, 152, 0.2);
  border-color: var(--g563-primary);
}

.g563-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.g563-game-name {
  padding: 0.6rem;
  font-size: 1.1rem;
  color: var(--g563-light);
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ======================
   Content Sections
   ====================== */
.g563-content-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--g563-charcoal) 0%, rgba(54, 69, 79, 0.5) 100%);
  border-radius: 12px;
  border: 1px solid rgba(152, 251, 152, 0.1);
}

.g563-content-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--g563-primary);
  margin-bottom: 1.5rem;
}

.g563-content-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--g563-light);
  margin-bottom: 1.5rem;
}

.g563-content-text strong {
  color: var(--g563-primary);
  font-weight: 600;
}

.g563-promo-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--g563-primary) 0%, #7CCD7C 100%);
  color: var(--g563-dark);
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(152, 251, 152, 0.3);
  margin: 1rem 0.5rem 1rem 0;
}

.g563-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(152, 251, 152, 0.4);
  text-decoration: none;
}

/* ======================
   Footer
   ====================== */
.g563-footer {
  background: linear-gradient(135deg, var(--g563-dark) 0%, #000 100%);
  padding: 3rem 0 10rem;
  margin-top: 4rem;
  border-top: 2px solid rgba(152, 251, 152, 0.1);
}

.g563-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g563-footer-section {
  margin-bottom: 2.5rem;
}

.g563-footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g563-primary);
  margin-bottom: 1.2rem;
}

.g563-footer-text {
  font-size: 1.4rem;
  color: var(--g563-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.g563-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.g563-footer-link {
  color: var(--g563-light);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.g563-footer-link:hover {
  color: var(--g563-primary);
}

.g563-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.g563-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border-radius: 4px;
}

.g563-partner-logo:hover {
  opacity: 1;
}

.g563-copyright {
  text-align: center;
  font-size: 1.3rem;
  color: var(--g563-gray);
  padding-top: 2rem;
  border-top: 1px solid rgba(152, 251, 152, 0.1);
}

/* ======================
   Utility Classes
   ====================== */
.g563-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.g563-visible {
  opacity: 1;
  transform: translateY(0);
}

.g563-text-center {
  text-align: center;
}

.g563-mt-2 {
  margin-top: 2rem;
}

.g563-mb-2 {
  margin-bottom: 2rem;
}

.g563-hidden {
  display: none;
}

/* ======================
   Responsive Design
   ====================== */
@media (max-width: 768px) {
  .g563-main {
    padding-bottom: 80px;
  }
}
