/* JiliKKK App Theme CSS */
/* All classes use prefix g6de- */

/* CSS Variables */
:root {
  /* Color Palette */
  --g6de-primary: #00CED1;
  --g6de-secondary: #80CBC4;
  --g6de-accent: #D4AF37;
  --g6de-bg: #0F0F23;
  --g6de-bg-light: #1a1a3a;
  --g6de-text: #E8F5E8;
  --g6de-text-dark: #0F0F23;
  --g6de-success: #4CAF50;
  --g6de-warning: #FF9800;
  --g6de-error: #F44336;

  /* Spacing */
  --g6de-spacing-xs: 0.4rem;
  --g6de-spacing-sm: 0.8rem;
  --g6de-spacing-md: 1.6rem;
  --g6de-spacing-lg: 2.4rem;
  --g6de-spacing-xl: 3.2rem;

  /* Typography */
  --g6de-font-size-xs: 1.0rem;
  --g6de-font-size-sm: 1.2rem;
  --g6de-font-size-base: 1.4rem;
  --g6de-font-size-lg: 1.6rem;
  --g6de-font-size-xl: 1.8rem;
  --g6de-font-size-2xl: 2.0rem;
  --g6de-font-size-3xl: 2.4rem;

  /* Layout */
  --g6de-max-width: 430px;
  --g6de-header-height: 56px;
  --g6de-bottom-nav-height: 64px;
  --g6de-border-radius: 8px;
  --g6de-transition: all 0.3s ease;
}

/* 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, Arial, sans-serif;
  font-size: var(--g6de-font-size-base);
  line-height: 1.5;
  color: var(--g6de-text);
  background: var(--g6de-bg);
  max-width: var(--g6de-max-width);
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-bottom: calc(var(--g6de-bottom-nav-height) + 20px);
}

/* Typography */
.g6de-h1 {
  font-size: var(--g6de-font-size-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--g6de-spacing-md);
}

.g6de-h2 {
  font-size: var(--g6de-font-size-2xl);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--g6de-spacing-sm);
}

.g6de-h3 {
  font-size: var(--g6de-font-size-xl);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--g6de-spacing-sm);
}

.g6de-text {
  font-size: var(--g6de-font-size-base);
  line-height: 1.5;
  margin-bottom: var(--g6de-spacing-sm);
}

.g6de-text-sm {
  font-size: var(--g6de-font-size-sm);
  line-height: 1.4;
}

.g6de-text-xs {
  font-size: var(--g6de-font-size-xs);
  line-height: 1.3;
}

/* Layout */
.g6de-container {
  width: 100%;
  padding: 0 var(--g6de-spacing-sm);
}

.g6de-wrapper {
  width: 100%;
  max-width: var(--g6de-max-width);
  margin: 0 auto;
}

.g6de-grid {
  display: grid;
  gap: var(--g6de-spacing-sm);
}

.g6de-flex {
  display: flex;
}

.g6de-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.g6de-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header */
.g6de-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g6de-bg) 0%, var(--g6de-bg-light) 100%);
  border-bottom: 1px solid rgba(0, 206, 209, 0.2);
  backdrop-filter: blur(10px);
  height: var(--g6de-header-height);
}

.g6de-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--g6de-spacing-sm);
}

.g6de-logo {
  display: flex;
  align-items: center;
  gap: var(--g6de-spacing-xs);
  text-decoration: none;
  color: var(--g6de-text);
}

.g6de-logo img {
  width: 24px;
  height: 24px;
}

.g6de-logo-text {
  font-size: var(--g6de-font-size-lg);
  font-weight: 700;
  background: linear-gradient(135deg, var(--g6de-primary), var(--g6de-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.g6de-header-actions {
  display: flex;
  align-items: center;
  gap: var(--g6de-spacing-sm);
}

.g6de-btn {
  padding: var(--g6de-spacing-xs) var(--g6de-spacing-md);
  border: none;
  border-radius: var(--g6de-border-radius);
  font-size: var(--g6de-font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--g6de-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  white-space: nowrap;
}

.g6de-btn-primary {
  background: linear-gradient(135deg, var(--g6de-primary), var(--g6de-secondary));
  color: var(--g6de-text-dark);
}

.g6de-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.3);
}

.g6de-btn-outline {
  background: transparent;
  color: var(--g6de-primary);
  border: 2px solid var(--g6de-primary);
}

.g6de-btn-outline:hover {
  background: var(--g6de-primary);
  color: var(--g6de-text-dark);
}

.g6de-menu-toggle {
  background: none;
  border: none;
  color: var(--g6de-text);
  font-size: 24px;
  cursor: pointer;
  padding: var(--g6de-spacing-xs);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.g6de-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--g6de-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: var(--g6de-spacing-lg) var(--g6de-spacing-md);
  overflow-y: auto;
}

.g6de-mobile-menu.active {
  right: 0;
}

.g6de-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g6de-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.g6de-menu-close {
  position: absolute;
  top: var(--g6de-spacing-md);
  right: var(--g6de-spacing-md);
  background: none;
  border: none;
  color: var(--g6de-text);
  font-size: 24px;
  cursor: pointer;
}

.g6de-menu-list {
  list-style: none;
  margin-top: var(--g6de-spacing-xl);
}

.g6de-menu-item {
  margin-bottom: var(--g6de-spacing-sm);
}

.g6de-menu-link {
  color: var(--g6de-text);
  text-decoration: none;
  font-size: var(--g6de-font-size-base);
  padding: var(--g6de-spacing-sm) 0;
  display: block;
  transition: var(--g6de-transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g6de-menu-link:hover {
  color: var(--g6de-primary);
  padding-left: var(--g6de-spacing-sm);
}

/* Main Content */
.g6de-main {
  margin-top: var(--g6de-header-height);
  min-height: calc(100vh - var(--g6de-header-height) - var(--g6de-bottom-nav-height));
}

/* Carousel */
.g6de-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g6de-border-radius);
  margin-bottom: var(--g6de-spacing-lg);
}

.g6de-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.g6de-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.g6de-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.g6de-carousel-indicators {
  position: absolute;
  bottom: var(--g6de-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--g6de-spacing-xs);
}

.g6de-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--g6de-transition);
}

.g6de-carousel-indicator.active {
  background: var(--g6de-primary);
  width: 24px;
  border-radius: 4px;
}

/* Game Grid */
.g6de-games-section {
  margin-bottom: var(--g6de-spacing-xl);
}

.g6de-section-header {
  margin-bottom: var(--g6de-spacing-md);
}

.g6de-section-title {
  font-size: var(--g6de-font-size-xl);
  font-weight: 700;
  color: var(--g6de-primary);
  margin-bottom: var(--g6de-spacing-xs);
}

.g6de-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--g6de-spacing-xs);
}

.g6de-game-item {
  background: var(--g6de-bg-light);
  border-radius: var(--g6de-border-radius);
  padding: var(--g6de-spacing-xs);
  text-align: center;
  cursor: pointer;
  transition: var(--g6de-transition);
  border: 1px solid transparent;
}

.g6de-game-item:hover {
  transform: translateY(-2px);
  border-color: var(--g6de-primary);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.2);
}

.g6de-game-image {
  width: 100%;
  height: auto;
  border-radius: var(--g6de-border-radius);
  margin-bottom: var(--g6de-spacing-xs);
}

.g6de-game-name {
  font-size: var(--g6de-font-size-xs);
  color: var(--g6de-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Sections */
.g6de-content-section {
  background: var(--g6de-bg-light);
  border-radius: var(--g6de-border-radius);
  padding: var(--g6de-spacing-md);
  margin-bottom: var(--g6de-spacing-lg);
}

.g6de-content-section h2 {
  color: var(--g6de-primary);
  margin-bottom: var(--g6de-spacing-md);
}

/* Footer */
.g6de-footer {
  background: linear-gradient(135deg, var(--g6de-bg-light) 0%, var(--g6de-bg) 100%);
  padding: var(--g6de-spacing-lg) var(--g6de-spacing-sm) var(--g6de-spacing-xl);
  margin-top: var(--g6de-spacing-xl);
  border-top: 1px solid rgba(0, 206, 209, 0.2);
}

.g6de-footer-content {
  margin-bottom: var(--g6de-spacing-lg);
}

.g6de-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g6de-spacing-sm);
  justify-content: center;
  margin: var(--g6de-spacing-md) 0;
}

.g6de-partner-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--g6de-border-radius);
  padding: var(--g6de-spacing-xs);
}

.g6de-partner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.g6de-footer-text {
  text-align: center;
  font-size: var(--g6de-font-size-xs);
  color: rgba(232, 245, 232, 0.6);
  margin-top: var(--g6de-spacing-md);
}

/* Bottom Navigation */
.g6de-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--g6de-bottom-nav-height);
  background: linear-gradient(135deg, var(--g6de-bg-light) 0%, var(--g6de-bg) 100%);
  border-top: 1px solid rgba(0, 206, 209, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--g6de-spacing-xs) 0;
  backdrop-filter: blur(10px);
}

.g6de-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: rgba(232, 245, 232, 0.6);
  transition: var(--g6de-transition);
  cursor: pointer;
  border: none;
  background: none;
}

.g6de-bottom-nav-item:hover,
.g6de-bottom-nav-item.active {
  color: var(--g6de-primary);
  transform: scale(1.1);
}

.g6de-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.g6de-nav-text {
  font-size: var(--g6de-font-size-xs);
  line-height: 1;
}

/* Scroll to Top */
.g6de-scroll-top {
  position: fixed;
  bottom: calc(var(--g6de-bottom-nav-height) + 20px);
  right: var(--g6de-spacing-md);
  width: 44px;
  height: 44px;
  background: var(--g6de-primary);
  color: var(--g6de-text-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--g6de-transition);
  z-index: 999;
}

.g6de-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.g6de-scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .g6de-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .g6de-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .g6de-bottom-nav {
    display: none;
  }

  .g6de-desktop-nav {
    display: flex;
  }
}

/* Utility Classes */
.g6de-text-center {
  text-align: center;
}

.g6de-text-primary {
  color: var(--g6de-primary);
}

.g6de-text-accent {
  color: var(--g6de-accent);
}

.g6de-mb-sm {
  margin-bottom: var(--g6de-spacing-sm);
}

.g6de-mb-md {
  margin-bottom: var(--g6de-spacing-md);
}

.g6de-mb-lg {
  margin-bottom: var(--g6de-spacing-lg);
}

/* Animations */
@keyframes g6de-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g6de-fade-in {
  animation: g6de-fadeIn 0.5s ease forwards;
}

/* Promotional Links */
.g6de-promo-link {
  position: relative;
  overflow: hidden;
}

.g6de-promo-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.g6de-promo-link:hover::before {
  left: 100%;
}

/* Game Category Specific Styles */
.g6de-category-hot .g6de-section-title {
  color: var(--g6de-error);
}

.g6de-category-slot .g6de-section-title {
  color: var(--g6de-primary);
}

.g6de-category-fishing .g6de-section-title {
  color: var(--g6de-secondary);
}

.g6de-category-live-casino .g6de-section-title {
  color: var(--g6de-accent);
}

.g6de-category-cards .g6de-section-title {
  color: var(--g6de-warning);
}