/* jl88 Theme - Main Stylesheet */
/* All classes use x9048- prefix for namespace isolation */

/* CSS Variables - Color Palette */
:root {
  --x904-primary: #F08080;
  --x904-secondary: #1A1A2E;
  --x904-accent: #BAE1FF;
  --x904-warm: #D2691E;
  --x904-hot: #FF4500;
  --x904-dark: #0D0D1A;
  --x904-light: #F5F5F5;
  --x904-white: #FFFFFF;
  --x904-gray: #808080;
  --x904-gradient: linear-gradient(135deg, var(--x904-primary) 0%, var(--x904-hot) 100%);
  --x904-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Reset & 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(--x904-light);
  background-color: var(--x904-secondary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* Container */
.x904-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.x904-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--x904-secondary);
  box-shadow: var(--x904-shadow);
  z-index: 1000;
}

.x904-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.x904-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--x904-primary);
}

.x904-logo img {
  width: 32px;
  height: 32px;
}

.x904-header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.x904-btn {
  padding: 0.5rem 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.x904-btn-primary {
  background: var(--x904-gradient);
  color: var(--x904-white);
}

.x904-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(240, 128, 128, 0.4);
}

.x904-btn-secondary {
  background-color: transparent;
  color: var(--x904-primary);
  border: 1px solid var(--x904-primary);
}

.x904-btn-secondary:hover {
  background-color: var(--x904-primary);
  color: var(--x904-white);
}

.x904-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  cursor: pointer;
}

.x904-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--x904-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.x904-mobile-menu {
  position: fixed;
  top: 56px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  background-color: var(--x904-secondary);
  box-shadow: var(--x904-shadow);
  transition: left 0.3s ease;
  z-index: 9999;
  padding: 1rem 0;
}

.x904-mobile-menu.x904-active {
  left: 0;
}

.x904-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--x904-light);
  border-bottom: 1px solid rgba(240, 128, 128, 0.1);
}

.x904-menu-item:hover {
  background-color: var(--x904-dark);
  color: var(--x904-primary);
}

/* Main Content */
.x904-main {
  margin-top: 56px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.x904-section {
  padding: 2rem 0;
}

.x904-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--x904-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Carousel */
.x904-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.x904-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards */
.x904-card {
  background-color: var(--x904-dark);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--x904-shadow);
}

.x904-card-content {
  color: var(--x904-light);
}

/* Game Grid */
.x904-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.x904-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.x904-game-item:hover {
  transform: scale(1.05);
}

.x904-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.x904-game-name {
  font-size: 1.1rem;
  color: var(--x904-light);
  text-align: center;
  word-break: break-word;
  line-height: 1.3;
}

/* Feature List */
.x904-feature-list {
  list-style: none;
}

.x904-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--x904-secondary);
  border-radius: 6px;
}

.x904-feature-icon {
  font-size: 1.8rem;
  color: var(--x904-primary);
  flex-shrink: 0;
}

/* Footer */
.x904-footer {
  background-color: var(--x904-dark);
  padding: 2rem 0;
  margin-top: 2rem;
}

.x904-footer-content {
  text-align: center;
}

.x904-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.x904-footer-link {
  color: var(--x904-accent);
  font-size: 1.4rem;
}

.x904-footer-link:hover {
  color: var(--x904-primary);
}

.x904-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.x904-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
}

.x904-copyright {
  font-size: 1.2rem;
  color: var(--x904-gray);
  padding: 1rem 0;
}

/* Mobile Bottom Navigation */
.x904-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  background: linear-gradient(to right, var(--x904-secondary), var(--x904-dark));
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.x904-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  color: var(--x904-light);
  transition: all 0.3s ease;
}

.x904-nav-btn:hover {
  color: var(--x904-primary);
}

.x904-nav-btn.x904-active {
  color: var(--x904-primary);
}

.x904-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.x904-nav-text {
  font-size: 10px;
}

/* Utility Classes */
.x904-text-center {
  text-align: center;
}

.x904-mt-2 {
  margin-top: 1.5rem;
}

.x904-mb-2 {
  margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .x904-menu-toggle {
    display: flex;
  }

  .x904-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .x904-bottom-nav {
    display: none;
  }

  .x904-main {
    padding-bottom: 2rem;
  }
}
