/**
 * jilee Stylesheet
 * Mobile-first responsive design with dark theme
 * Class prefix: s2d9-
 */

/* CSS 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #E8E8E8;
  background: linear-gradient(135deg, #1A1A2E 0%, #0F0F1E 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --s2d9-primary: #80CBC4;
  --s2d9-primary-dark: #5B9E98;
  --s2d9-secondary: #8B7355;
  --s2d9-accent: #8B4513;
  --s2d9-highlight: #008B8B;
  --s2d9-bg-dark: #1A1A2E;
  --s2d9-bg-darker: #0F0F1E;
  --s2d9-bg-card: #252540;
  --s2d9-text: #E8E8E8;
  --s2d9-text-muted: #A0A0B0;
  --s2d9-border: #3A3A55;
  --s2d9-success: #4CAF50;
  --s2d9-warning: #FF9800;
  --s2d9-error: #F44336;
  --s2d9-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --s2d9-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Container */
.s2d9-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* Header Styles */
.s2d9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(26, 26, 46, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s2d9-border);
  box-shadow: var(--s2d9-shadow);
}

.s2d9-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  height: 6.4rem;
}

.s2d9-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s2d9-text);
}

.s2d9-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 8px;
  object-fit: contain;
}

.s2d9-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s2d9-primary);
  letter-spacing: -0.5px;
}

.s2d9-header-actions {
  display: flex;
  gap: 1rem;
}

.s2d9-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.s2d9-btn-primary {
  background: linear-gradient(135deg, var(--s2d9-primary) 0%, var(--s2d9-highlight) 100%);
  color: var(--s2d9-bg-dark);
  box-shadow: 0 2px 8px rgba(128, 203, 196, 0.3);
}

.s2d9-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 203, 196, 0.4);
}

.s2d9-btn-secondary {
  background: transparent;
  color: var(--s2d9-primary);
  border: 2px solid var(--s2d9-primary);
}

.s2d9-btn-secondary:hover {
  background: var(--s2d9-primary);
  color: var(--s2d9-bg-dark);
}

.s2d9-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 3.6rem;
  height: 3.6rem;
  justify-content: center;
}

.s2d9-menu-toggle span {
  display: block;
  width: 2.8rem;
  height: 3px;
  background: var(--s2d9-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.s2d9-menu-toggle:hover span {
  background: var(--s2d9-highlight);
}

/* Mobile Menu */
.s2d9-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: var(--s2d9-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 8rem 2rem 2rem;
}

.s2d9-mobile-menu.s2d9-menu-open {
  right: 0;
}

.s2d9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.s2d9-menu-overlay.s2d9-overlay-active {
  opacity: 1;
  visibility: visible;
}

.s2d9-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--s2d9-text);
  font-size: 3rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.s2d9-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.s2d9-menu-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  color: var(--s2d9-text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 1.6rem;
}

.s2d9-menu-link:hover {
  background: var(--s2d9-bg-card);
  color: var(--s2d9-primary);
}

.s2d9-menu-link i {
  width: 2.4rem;
  text-align: center;
  color: var(--s2d9-primary);
}

/* Main Content */
main {
  padding-top: 8rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

/* Carousel */
.s2d9-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.s2d9-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.s2d9-carousel-slide.s2d9-slide-active {
  opacity: 1;
}

.s2d9-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s2d9-carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.s2d9-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s2d9-carousel-dot.s2d9-dot-active {
  background: var(--s2d9-primary);
  width: 2rem;
  border-radius: 4px;
}

/* Sections */
.s2d9-section {
  background: var(--s2d9-bg-card);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--s2d9-shadow);
}

.s2d9-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s2d9-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s2d9-section-title i {
  color: var(--s2d9-highlight);
}

.s2d9-text {
  color: var(--s2d9-text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.s2d9-text a {
  color: var(--s2d9-primary);
  text-decoration: none;
  font-weight: 600;
}

.s2d9-text a:hover {
  color: var(--s2d9-highlight);
  text-decoration: underline;
}

/* Game Grid */
.s2d9-game-category {
  margin-bottom: 2.5rem;
}

.s2d9-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--s2d9-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s2d9-category-title i {
  color: var(--s2d9-highlight);
}

.s2d9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.s2d9-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.s2d9-game-item:hover {
  transform: scale(1.05);
}

.s2d9-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--s2d9-bg-darker);
}

.s2d9-game-name {
  font-size: 1.1rem;
  color: var(--s2d9-text);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Link Styles */
.s2d9-link {
  color: var(--s2d9-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.s2d9-link:hover {
  color: var(--s2d9-highlight);
  text-decoration: underline;
}

/* Buttons */
.s2d9-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  background: linear-gradient(135deg, var(--s2d9-primary) 0%, var(--s2d9-highlight) 100%);
  color: var(--s2d9-bg-dark);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(128, 203, 196, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.s2d9-play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(128, 203, 196, 0.5);
}

.s2d9-play-btn i {
  font-size: 1.8rem;
}

/* List Styles */
.s2d9-list {
  list-style: none;
}

.s2d9-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--s2d9-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.s2d9-list-item:last-child {
  border-bottom: none;
}

.s2d9-list-item i {
  color: var(--s2d9-primary);
  margin-top: 0.3rem;
}

/* Footer */
.s2d9-footer {
  background: var(--s2d9-bg-darker);
  padding: 3rem 1.6rem 8rem;
  border-top: 1px solid var(--s2d9-border);
}

.s2d9-footer-description {
  color: var(--s2d9-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

.s2d9-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s2d9-footer-link {
  color: var(--s2d9-primary);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.s2d9-footer-link:hover {
  background: var(--s2d9-bg-card);
  color: var(--s2d9-highlight);
}

.s2d9-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s2d9-partner-logo {
  width: 5rem;
  height: 3rem;
  object-fit: contain;
  filter: grayscale(50%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.s2d9-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.s2d9-copyright {
  text-align: center;
  color: var(--s2d9-text-muted);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.s2d9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 30, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--s2d9-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  height: 6.4rem;
}

.s2d9-bottom-nav-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.s2d9-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 6rem;
  min-height: 6rem;
  text-decoration: none;
  color: var(--s2d9-text-muted);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem;
}

.s2d9-nav-item i {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  transition: all 0.3s ease;
}

.s2d9-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

.s2d9-nav-item:hover {
  color: var(--s2d9-primary);
}

.s2d9-nav-item:hover i {
  transform: scale(1.1);
}

.s2d9-nav-active {
  color: var(--s2d9-primary) !important;
}

.s2d9-nav-active i {
  color: var(--s2d9-primary);
  transform: scale(1.15);
}

.s2d9-nav-badge {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: var(--s2d9-accent);
  color: white;
  font-size: 1rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
}

/* Notification */
.s2d9-notification {
  position: fixed;
  top: 8rem;
  right: -100%;
  background: var(--s2d9-bg-card);
  color: var(--s2d9-text);
  padding: 1.2rem 2rem;
  border-radius: 8px;
  box-shadow: var(--s2d9-shadow-lg);
  z-index: 10000;
  transition: right 0.3s ease;
  font-size: 1.4rem;
}

.s2d9-notification-show {
  right: 1.6rem;
}

.s2d9-notification-success {
  border-left: 4px solid var(--s2d9-success);
}

.s2d9-notification-error {
  border-left: 4px solid var(--s2d9-error);
}

/* Responsive */
@media (min-width: 769px) {
  .s2d9-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.s2d9-text-center {
  text-align: center;
}

.s2d9-mt-1 {
  margin-top: 1rem;
}

.s2d9-mt-2 {
  margin-top: 2rem;
}

.s2d9-mb-1 {
  margin-bottom: 1rem;
}

.s2d9-mb-2 {
  margin-bottom: 2rem;
}

.s2d9-hidden {
  display: none;
}

/* Card Styles */
.s2d9-card {
  background: var(--s2d9-bg-card);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--s2d9-shadow);
}

.s2d9-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s2d9-primary);
  margin-bottom: 1rem;
}

/* Promo Box */
.s2d9-promo-box {
  background: linear-gradient(135deg, rgba(128, 203, 196, 0.1) 0%, rgba(0, 139, 139, 0.1) 100%);
  border: 2px solid var(--s2d9-primary);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.s2d9-promo-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s2d9-primary);
  margin-bottom: 1rem;
}

.s2d9-promo-text {
  color: var(--s2d9-text);
  margin-bottom: 1.5rem;
}

/* Stats Section */
.s2d9-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.s2d9-stat-item {
  background: var(--s2d9-bg-darker);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.s2d9-stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--s2d9-primary);
}

.s2d9-stat-label {
  font-size: 1.2rem;
  color: var(--s2d9-text-muted);
  margin-top: 0.5rem;
}

/* FAQ Styles */
.s2d9-faq-item {
  background: var(--s2d9-bg-darker);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.s2d9-faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--s2d9-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s2d9-faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--s2d9-text-muted);
  line-height: 1.6;
}

/* Feature List */
.s2d9-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.s2d9-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--s2d9-bg-darker);
  border-radius: 8px;
}

.s2d9-feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--s2d9-primary) 0%, var(--s2d9-highlight) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s2d9-feature-icon i {
  font-size: 2rem;
  color: var(--s2d9-bg-dark);
}

.s2d9-feature-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s2d9-primary);
  margin-bottom: 0.5rem;
}

.s2d9-feature-content p {
  font-size: 1.2rem;
  color: var(--s2d9-text-muted);
  line-height: 1.5;
}
