/**
 * jillitt - Main Stylesheet
 * All classes use g9e8- prefix for namespace isolation
 * Color Scheme: Light Blue (#ADD8E6), Dark (#1A1A1A), Orange Red (#FF4500), Navy (#000080), Off White (#FAFAFA), Wheat (#F5DEB3)
 */

/* CSS Variables */
:root {
  --g9e8-primary: #ADD8E6;
  --g9e8-secondary: #FF4500;
  --g9e8-accent: #000080;
  --g9e8-dark: #1A1A1A;
  --g9e8-light: #FAFAFA;
  --g9e8-wheat: #F5DEB3;
  --g9e8-text-dark: #1A1A1A;
  --g9e8-text-light: #FAFAFA;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g9e8-text-dark);
  background-color: var(--g9e8-light);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
}

/* Container */
.g9e8-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.g9e8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--g9e8-accent) 0%, var(--g9e8-dark) 100%);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.g9e8-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.g9e8-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.g9e8-header-actions {
  display: flex;
  gap: 0.5rem;
}

.g9e8-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.g9e8-btn-primary {
  background: var(--g9e8-secondary);
  color: var(--g9e8-text-light);
}

.g9e8-btn-primary:hover {
  background: #ff5722;
  transform: scale(1.05);
}

.g9e8-btn-secondary {
  background: var(--g9e8-primary);
  color: var(--g9e8-dark);
}

.g9e8-btn-secondary:hover {
  background: #b8e2f0;
  transform: scale(1.05);
}

.g9e8-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.g9e8-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--g9e8-text-light);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.g9e8-mobile-menu {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--g9e8-dark);
  padding: 1rem 0;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.g9e8-mobile-menu.g9e8-menu-open {
  max-height: 500px;
  overflow-y: auto;
}

.g9e8-menu-list {
  list-style: none;
  padding: 0 1rem;
}

.g9e8-menu-item {
  margin-bottom: 0.5rem;
}

.g9e8-menu-link {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--g9e8-text-light);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
  font-size: 1.5rem;
}

.g9e8-menu-link:hover {
  background: var(--g9e8-accent);
}

/* Main Content */
.g9e8-main {
  margin-top: 70px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .g9e8-main {
    padding-bottom: 2rem;
  }
}

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

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

.g9e8-carousel-slide.g9e8-slide-active {
  opacity: 1;
}

.g9e8-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Section Styles */
.g9e8-section {
  background: var(--g9e8-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.g9e8-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g9e8-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g9e8-section-title i {
  color: var(--g9e8-secondary);
}

/* Game Grid */
.g9e8-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.g9e8-game-item {
  background: var(--g9e8-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.g9e8-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.g9e8-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.g9e8-game-name {
  padding: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--g9e8-dark);
  background: var(--g9e8-wheat);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Tabs */
.g9e8-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g9e8-accent);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--g9e8-secondary);
}

/* Content Styles */
.g9e8-content {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--g9e8-dark);
}

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

.g9e8-content a {
  color: var(--g9e8-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.g9e8-content a:hover {
  color: var(--g9e8-secondary);
  text-decoration: underline;
}

.g9e8-content ul, .g9e8-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

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

/* Feature Cards */
.g9e8-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.g9e8-feature-card {
  background: linear-gradient(135deg, var(--g9e8-primary) 0%, var(--g9e8-wheat) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}

.g9e8-feature-card:hover {
  transform: scale(1.05);
}

.g9e8-feature-icon {
  font-size: 3rem;
  color: var(--g9e8-accent);
  margin-bottom: 0.5rem;
}

.g9e8-feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g9e8-dark);
  margin-bottom: 0.3rem;
}

.g9e8-feature-desc {
  font-size: 1.2rem;
  color: var(--g9e8-dark);
}

/* FAQ Styles */
.g9e8-faq-item {
  background: var(--g9e8-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.g9e8-faq-question {
  padding: 1rem;
  font-weight: 600;
  color: var(--g9e8-accent);
  background: var(--g9e8-wheat);
  cursor: pointer;
}

.g9e8-faq-answer {
  padding: 1rem;
  color: var(--g9e8-dark);
}

/* Footer */
.g9e8-footer {
  background: linear-gradient(135deg, var(--g9e8-dark) 0%, var(--g9e8-accent) 100%);
  color: var(--g9e8-text-light);
  padding: 2rem 1rem 6rem;
  margin-top: 3rem;
}

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

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

.g9e8-footer-link:hover {
  color: var(--g9e8-secondary);
}

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

.g9e8-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

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

.g9e8-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g9e8-primary);
}

/* Bottom Navigation (Mobile) */
.g9e8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--g9e8-accent) 0%, var(--g9e8-dark) 100%);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .g9e8-bottom-nav {
    display: none;
  }
}

.g9e8-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g9e8-text-light);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.g9e8-nav-item:hover {
  transform: scale(1.1);
}

.g9e8-nav-item.g9e8-active {
  color: var(--g9e8-primary);
}

.g9e8-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.g9e8-nav-text {
  font-size: 10px;
  font-weight: 600;
}

/* Utility Classes */
.g9e8-text-center {
  text-align: center;
}

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

.g9e8-touch-active {
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .g9e8-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .g9e8-feature-grid {
    grid-template-columns: 1fr;
  }
}
