/* Jiliki.org Mobile-First Responsive CSS - Gaming Platform Styles */
/* All classes use gf0e- prefix to avoid conflicts */

/* CSS Variables with Brand Colors */
:root {
  --gf0e-primary: #90EE90;
  --gf0e-secondary: #CD853F;
  --gf0e-accent: #F5DEB3;
  --gf0e-dark: #1B263B;
  --gf0e-brown: #8B4513;
  --gf0e-bg: #1B263B;
  --gf0e-text: #F5DEB3;
  --gf0e-text-dark: #1B263B;
  --gf0e-success: #90EE90;
  --gf0e-warning: #CD853F;
  --gf0e-border: rgba(245, 222, 179, 0.2);
  --gf0e-shadow: rgba(27, 38, 59, 0.3);
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--gf0e-text);
  background-color: var(--gf0e-bg);
  overflow-x: hidden;
}

/* Container and Layout */
.gf0e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.gf0e-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gf0e-main-content {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 8rem;
}

/* Header Navigation */
.gf0e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gf0e-dark) 0%, var(--gf0e-brown) 100%);
  border-bottom: 2px solid var(--gf0e-primary);
  backdrop-filter: blur(10px);
}

.gf0e-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.gf0e-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--gf0e-primary);
  font-weight: bold;
  font-size: 1.8rem;
}

.gf0e-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
}

.gf0e-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.gf0e-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 3.6rem;
  white-space: nowrap;
}

.gf0e-btn-primary {
  background: linear-gradient(135deg, var(--gf0e-primary) 0%, var(--gf0e-secondary) 100%);
  color: var(--gf0e-dark);
}

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

.gf0e-btn:hover, .gf0e-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--gf0e-shadow);
}

.gf0e-hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.gf0e-hamburger span {
  width: 2.4rem;
  height: 0.3rem;
  background: var(--gf0e-primary);
  transition: all 0.3s ease;
  border-radius: 0.2rem;
}

.gf0e-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.gf0e-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.gf0e-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

/* Mobile Menu */
.gf0e-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  background: var(--gf0e-dark);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  border-bottom: 2px solid var(--gf0e-primary);
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

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

.gf0e-menu-list {
  list-style: none;
  padding: 2rem 0;
  position: relative;
}

.gf0e-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--gf0e-primary);
  margin-bottom: 1rem;
}

.gf0e-menu-title {
  color: var(--gf0e-primary);
  font-size: 1.8rem;
  font-weight: bold;
}

.gf0e-menu-close {
  background: none;
  border: none;
  color: var(--gf0e-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.gf0e-menu-close:hover {
  background: var(--gf0e-primary);
  color: var(--gf0e-dark);
}

.gf0e-menu-item {
  border-bottom: 1px solid var(--gf0e-border);
}

.gf0e-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  color: var(--gf0e-text);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.gf0e-menu-link::before {
  content: '';
  width: 2.4rem;
  height: 2.4rem;
  background: var(--gf0e-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gf0e-menu-link[href*="download"]::before { content: '📱'; }
.gf0e-menu-link[href*="earn-money"]::before { content: '💰'; }
.gf0e-menu-link[href*="cowboys"]::before { content: '🤠'; }
.gf0e-menu-link[href*="sabong"]::before { content: '🐓'; }
.gf0e-menu-link[href*="money-coming"]::before { content: '💸'; }
.gf0e-menu-link[href*="faqs"]::before { content: '❓'; }
.gf0e-menu-link[href*="features"]::before { content: '⭐'; }

.gf0e-menu-link:hover {
  background: var(--gf0e-primary);
  color: var(--gf0e-dark);
}

/* Carousel */
.gf0e-carousel {
  position: relative;
  height: 20rem;
  overflow: hidden;
  border-radius: 1.5rem;
  margin: 2rem 0;
}

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

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

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

/* Game Grid */
.gf0e-games-section {
  margin: 3rem 0;
}

.gf0e-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--gf0e-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.gf0e-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gf0e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--gf0e-brown);
  border-radius: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--gf0e-text);
}

.gf0e-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--gf0e-shadow);
  background: var(--gf0e-secondary);
}

.gf0e-game-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.gf0e-game-name {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* Content Sections */
.gf0e-content-section {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(139, 69, 19, 0.3);
  border-radius: 1.5rem;
  border: 1px solid var(--gf0e-border);
}

.gf0e-section-header {
  font-size: 2rem;
  color: var(--gf0e-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gf0e-text-content {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.gf0e-text-content p {
  margin-bottom: 1rem;
}

.gf0e-text-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.gf0e-text-content li {
  margin-bottom: 0.5rem;
}

/* Promotional Buttons */
.gf0e-promo-section {
  text-align: center;
  margin: 2rem 0;
}

.gf0e-promo-btn {
  background: linear-gradient(135deg, var(--gf0e-primary) 0%, var(--gf0e-secondary) 100%);
  color: var(--gf0e-dark);
  padding: 1.5rem 3rem;
  border-radius: 3rem;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin: 1rem;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  min-width: 4.4rem;
}

.gf0e-play-btn {
  background: linear-gradient(135deg, var(--gf0e-success) 0%, var(--gf0e-warning) 100%);
  color: var(--gf0e-dark);
  padding: 1rem 2rem;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  min-width: 4.4rem;
}

/* Bottom Navigation */
.gf0e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--gf0e-dark) 0%, var(--gf0e-brown) 100%);
  border-top: 2px solid var(--gf0e-primary);
  z-index: 1000;
  height: 6.4rem;
}

.gf0e-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.gf0e-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gf0e-text);
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

.gf0e-bottom-nav-item i {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.gf0e-nav-active {
  color: var(--gf0e-primary);
  transform: scale(1.1);
}

/* Footer */
.gf0e-footer {
  background: var(--gf0e-dark);
  padding: 3rem 0 8rem;
  border-top: 2px solid var(--gf0e-primary);
}

.gf0e-footer-content {
  text-align: center;
}

.gf0e-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.gf0e-footer-link {
  color: var(--gf0e-text);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.gf0e-footer-link:hover {
  color: var(--gf0e-primary);
}

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

.gf0e-partner-logo {
  width: 4rem;
  height: 4rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gf0e-partner-logo:hover {
  opacity: 1;
}

.gf0e-copyright {
  font-size: 1.2rem;
  color: var(--gf0e-text);
  opacity: 0.8;
}

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

.gf0e-mb-1 { margin-bottom: 1rem; }
.gf0e-mb-2 { margin-bottom: 2rem; }
.gf0e-mb-3 { margin-bottom: 3rem; }

.gf0e-mt-1 { margin-top: 1rem; }
.gf0e-mt-2 { margin-top: 2rem; }
.gf0e-mt-3 { margin-top: 3rem; }

.gf0e-bold { font-weight: bold; }
.gf0e-italic { font-style: italic; }

/* Animations */
.gf0e-fade-in {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s ease;
}

.gf0e-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.gf0e-slide-up {
  opacity: 0;
  transform: translateY(3rem);
  transition: all 0.8s ease;
}

.gf0e-lazy {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* Loading State */
body:not(.gf0e-loaded) .gf0e-main-content {
  opacity: 0;
}

.gf0e-loaded .gf0e-main-content {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Ensure content is visible by default */
.gf0e-main-content {
  opacity: 1;
}

/* Responsive Design */
@media (min-width: 768px) {
  .gf0e-container {
    max-width: 768px;
  }
  
  .gf0e-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .gf0e-game-icon {
    width: 6rem;
    height: 6rem;
  }
  
  .gf0e-carousel {
    height: 25rem;
  }
}

@media (min-width: 1024px) {
  .gf0e-container {
    max-width: 1024px;
  }
  
  .gf0e-games-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .gf0e-carousel {
    height: 30rem;
  }
}