/**
 * jilipg.cfd - Main Stylesheet
 * All classes use s337- prefix for namespace isolation
 * Mobile-first design, max-width 430px
 */
:root {
  --s337-primary: #9932CC;
  --s337-bg: #1A1A2E;
  --s337-bg-dark: #0f0f1e;
  --s337-text: #D8BFD8;
  --s337-text-light: #e8d8e8;
  --s337-accent: #2E8B57;
  --s337-dark-green: #006400;
  --s337-gray: #495057;
  --s337-purple: #9932CC;
  --s337-lavender: #D8BFD8;
  --s337-sea-green: #2E8B57;
  --s337-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --s337-radius: 8px;
  --s337-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: var(--s337-font);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--s337-text);
  background: var(--s337-bg);
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Header */
.s337-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--s337-bg-dark);
  border-bottom: 1px solid rgba(153,50,204,0.3);
  max-width: 430px; margin: 0 auto;
  transition: all 0.3s ease;
}
.s337-header-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.s337-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 52px;
}
.s337-logo {
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
}
.s337-logo img { width: 28px; height: 28px; border-radius: 4px; }
.s337-logo-text { font-size: 1.8rem; font-weight: 700; color: var(--s337-purple); letter-spacing: 1px; }
.s337-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s337-btn {
  padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; display: inline-block; text-align: center;
}
.s337-btn-register {
  background: linear-gradient(135deg, var(--s337-sea-green), var(--s337-dark-green));
  color: #fff;
}
.s337-btn-login {
  background: transparent; border: 1px solid var(--s337-purple); color: var(--s337-purple);
}
.s337-btn:hover { transform: scale(1.05); }
.s337-btn:active { transform: scale(0.97); }
.s337-hamburger {
  background: none; border: none; color: var(--s337-lavender); font-size: 2rem;
  cursor: pointer; padding: 0.4rem;
}

/* Mobile Menu */
.s337-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--s337-bg-dark); z-index: 9999;
  transition: right 0.3s ease; padding: 6rem 0 2rem;
  border-left: 1px solid rgba(153,50,204,0.2);
}
.s337-menu-active { right: 0; }
.s337-mobile-menu .s337-menu-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; color: var(--s337-lavender); font-size: 2.2rem; cursor: pointer;
}
.s337-menu-link {
  display: block; padding: 1.2rem 2rem; color: var(--s337-lavender);
  text-decoration: none; font-size: 1.4rem; border-bottom: 1px solid rgba(153,50,204,0.1);
  transition: background 0.2s;
}
.s337-menu-link:hover { background: rgba(153,50,204,0.15); }

/* Overlay */
.s337-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0;
  pointer-events: none; transition: opacity 0.3s;
}
.s337-overlay-active { opacity: 1; pointer-events: all; }

/* Carousel */
.s337-carousel {
  position: relative; overflow: hidden; margin-top: 52px;
  border-radius: 0 0 var(--s337-radius) var(--s337-radius);
}
.s337-carousel-slide {
  display: none; width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: pointer;
}
.s337-slide-active { display: block; }
.s337-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.8rem;
}
.s337-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: background 0.3s;
}
.s337-dot-active { background: var(--s337-purple); }

/* Main Content */
.s337-main { padding: 1.5rem 1rem; }

/* Section */
.s337-section { margin-bottom: 2.5rem; }
.s337-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--s337-purple);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s337-dark-green);
}
.s337-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.s337-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.s337-game-item {
  text-align: center; cursor: pointer; border-radius: var(--s337-radius);
  overflow: hidden; transition: transform 0.2s;
  background: rgba(153,50,204,0.08); padding: 0.5rem 0.3rem;
}
.s337-game-item:hover { transform: scale(1.05); }
.s337-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px; margin-bottom: 0.3rem;
}
.s337-game-name {
  font-size: 1rem; color: var(--s337-lavender); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Cards */
.s337-card {
  background: linear-gradient(135deg, rgba(153,50,204,0.1), rgba(46,139,87,0.08));
  border: 1px solid rgba(153,50,204,0.2); border-radius: var(--s337-radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.s337-card h3 {
  font-size: 1.5rem; color: var(--s337-purple); margin-bottom: 0.8rem;
}

/* Article */
.s337-article { margin-bottom: 2rem; }
.s337-article h2 {
  font-size: 1.6rem; color: var(--s337-purple); margin-bottom: 0.8rem;
}
.s337-article p {
  font-size: 1.3rem; color: var(--s337-lavender); margin-bottom: 0.8rem; line-height: 1.6;
}

/* CTA */
.s337-cta {
  background: linear-gradient(135deg, var(--s337-dark-green), var(--s337-sea-green));
  border-radius: var(--s337-radius); padding: 2rem 1.5rem; text-align: center;
  margin: 2rem 0;
}
.s337-cta h2 { font-size: 2rem; color: #fff; margin-bottom: 0.8rem; }
.s337-cta p { color: rgba(255,255,255,0.9); margin-bottom: 1.2rem; font-size: 1.3rem; }
.s337-cta .s337-btn {
  background: var(--s337-purple); color: #fff; font-size: 1.4rem;
  padding: 0.8rem 2.5rem;
}

/* Footer */
.s337-footer {
  background: var(--s337-bg-dark); padding: 2rem 1rem;
  border-top: 1px solid rgba(153,50,204,0.2);
}
.s337-footer-brand { font-size: 1.3rem; color: var(--s337-gray); margin-bottom: 1rem; line-height: 1.5; }
.s337-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem;
}
.s337-footer-links a {
  color: var(--s337-purple); text-decoration: none; font-size: 1.2rem;
  padding: 0.3rem 0.6rem; background: rgba(153,50,204,0.1);
  border-radius: 4px;
}
.s337-footer-copy {
  font-size: 1.1rem; color: var(--s337-gray); text-align: center;
  border-top: 1px solid rgba(153,50,204,0.1); padding-top: 1rem;
}

/* Bottom Nav */
.s337-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--s337-bg-dark); border-top: 1px solid rgba(153,50,204,0.3);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.s337-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; color: var(--s337-gray);
  cursor: pointer; transition: all 0.2s; gap: 0.2rem;
  font-size: 1rem;
}
.s337-bottom-nav-btn i,
.s337-bottom-nav-btn .material-icons,
.s337-bottom-nav-btn ion-icon { font-size: 22px; }
.s337-bottom-nav-btn span { font-size: 1rem; }
.s337-bottom-nav-btn:hover { color: var(--s337-purple); transform: scale(1.1); }
.s337-bottom-nav-btn:active { transform: scale(0.95); }
.s337-nav-active { color: var(--s337-sea-green) !important; }

/* Utilities */
.s337-container { max-width: 430px; margin: 0 auto; padding: 0 1rem; }
.s337-text-center { text-align: center; }
.s337-text-accent { color: var(--s337-sea-green); }
.s337-text-purple { color: var(--s337-purple); }
.s337-mb-1 { margin-bottom: 0.5rem; }
.s337-mb-2 { margin-bottom: 1rem; }
.s337-mb-3 { margin-bottom: 1.5rem; }
.s337-hidden { display: none; }
.s337-affiliate-link {
  color: var(--s337-sea-green); font-weight: 600; cursor: pointer;
  text-decoration: underline;
}
.s337-affiliate-link:hover { color: var(--s337-purple); }

/* Responsive - Desktop */
@media (min-width: 769px) {
  .s337-bottom-nav { display: none; }
  .s337-header { max-width: 430px; }
  body main.s337-main { padding-bottom: 0; }
}

/* Responsive - Mobile bottom padding */
@media (max-width: 768px) {
  body main.s337-main { padding-bottom: 80px; }
  .s337-footer { padding-bottom: 80px; }
}
