/**
 * JL55 Website Design Styles
 * All classes prefixed with 's291-'
 * Color Palette: #DEB887 | #FAFAD2 | #1A1A1A | #4DB6AC | #AFEEEE
 */

/* CSS Variables */
:root {
  --s291-primary: #DEB887;
  --s291-secondary: #FAFAD2;
  --s291-dark: #1A1A1A;
  --s291-accent1: #4DB6AC;
  --s291-accent2: #AFEEEE;
  --s291-text: #FAFAD2;
  --s291-text-dark: #1A1A1A;
  --s291-border: #4DB6AC;
  --s291-gradient: linear-gradient(135deg, #DEB887 0%, #4DB6AC 100%);
}

/* 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;
  background-color: var(--s291-dark);
  color: var(--s291-text);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* Header Styles */
.s291-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--s291-dark) 0%, rgba(26, 26, 26, 0.95) 100%);
  border-bottom: 2px solid var(--s291-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(222, 184, 135, 0.2);
}

.s291-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.s291-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--s291-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

.s291-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--s291-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.s291-header-buttons {
  display: flex;
  gap: 10px;
}

.s291-btn {
  padding: 8px 20px;
  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;
  text-align: center;
}

.s291-btn-primary {
  background: var(--s291-gradient);
  color: var(--s291-dark);
  box-shadow: 0 4px 15px rgba(222, 184, 135, 0.4);
}

.s291-btn-secondary {
  background: transparent;
  color: var(--s291-accent2);
  border: 2px solid var(--s291-accent2);
}

.s291-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 184, 135, 0.6);
}

.s291-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.s291-menu-line {
  width: 24px;
  height: 2px;
  background: var(--s291-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.s291-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;
}

.s291-menu-overlay.s291-overlay-show {
  opacity: 1;
  visibility: visible;
}

.s291-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--s291-dark) 0%, #2a2a2a 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.s291-mobile-menu.s291-menu-open {
  right: 0;
}

.s291-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--s291-border);
}

.s291-menu-close {
  background: none;
  border: none;
  color: var(--s291-primary);
  font-size: 2.4rem;
  cursor: pointer;
}

.s291-menu-nav {
  padding: 20px 0;
}

.s291-menu-link {
  display: block;
  padding: 15px 20px;
  color: var(--s291-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.s291-menu-link:hover {
  background: rgba(222, 184, 135, 0.1);
  border-left-color: var(--s291-primary);
  color: var(--s291-primary);
}

/* Main Content */
.s291-main {
  margin-top: 60px;
  padding: 20px 16px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel */
.s291-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(222, 184, 135, 0.3);
}

.s291-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.s291-carousel-slide.s291-slide-active {
  opacity: 1;
}

.s291-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Styles */
.s291-section {
  margin-bottom: 40px;
  background: rgba(77, 182, 172, 0.05);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(77, 182, 172, 0.2);
}

.s291-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--s291-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.s291-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--s291-gradient);
  border-radius: 2px;
}

/* Game Grid */
.s291-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.s291-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(222, 184, 135, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(222, 184, 135, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.s291-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--s291-primary);
  box-shadow: 0 6px 20px rgba(222, 184, 135, 0.4);
}

.s291-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.s291-game-name {
  font-size: 1.2rem;
  color: var(--s291-text);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Game Category Title */
.s291-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--s291-accent2);
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Content Blocks */
.s291-content-block {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(175, 238, 238, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--s291-accent1);
}

.s291-content-block h3 {
  font-size: 1.6rem;
  color: var(--s291-accent2);
  margin-bottom: 10px;
}

.s291-content-block p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--s291-text);
  margin-bottom: 10px;
}

.s291-content-block a {
  color: var(--s291-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--s291-primary);
}

.s291-content-block a:hover {
  color: var(--s291-accent2);
  border-bottom-color: var(--s291-accent2);
}

/* Promotional Link */
.s291-promo-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--s291-gradient);
  color: var(--s291-dark);
  text-decoration: none;
  font-weight: 700;
  border-radius: 25px;
  margin: 10px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(222, 184, 135, 0.4);
}

.s291-promo-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(222, 184, 135, 0.6);
}

/* Bottom Navigation */
.s291-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--s291-dark) 0%, rgba(26, 26, 26, 0.98) 100%);
  border-top: 2px solid var(--s291-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  padding: 0 8px;
  box-shadow: 0 -2px 10px rgba(222, 184, 135, 0.2);
}

.s291-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--s291-text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 6px;
}

.s291-nav-btn:hover {
  background: rgba(222, 184, 135, 0.1);
  transform: scale(1.05);
}

.s291-nav-btn.s291-nav-active {
  color: var(--s291-primary);
}

.s291-nav-icon {
  font-size: 22px;
  display: block;
}

.s291-nav-label {
  font-size: 1.0rem;
  font-weight: 500;
  display: block;
}

/* Footer */
.s291-footer {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, var(--s291-dark) 100%);
  padding: 30px 16px 100px;
  border-top: 2px solid var(--s291-primary);
}

.s291-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.s291-footer-link {
  color: var(--s291-accent2);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: 15px;
  background: rgba(77, 182, 172, 0.1);
  transition: all 0.3s ease;
}

.s291-footer-link:hover {
  background: rgba(222, 184, 135, 0.2);
  color: var(--s291-primary);
}

.s291-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.s291-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.s291-partner-logo:hover {
  opacity: 1;
}

.s291-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--s291-text);
  opacity: 0.8;
  line-height: 1.6;
}

/* Utility Classes */
.s291-text-center {
  text-align: center;
}

.s291-mb-20 {
  margin-bottom: 20px;
}

.s291-mt-20 {
  margin-top: 20px;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .s291-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .s291-menu-toggle {
    display: none;
  }

  .s291-header-buttons {
    display: flex;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .s291-header-buttons {
    display: none;
  }

  .s291-menu-toggle {
    display: flex;
  }

  .s291-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .s291-game-name {
    font-size: 1.1rem;
  }
}

/* Animations */
@keyframes s291-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.s291-pulse {
  animation: s291-pulse 2s ease-in-out infinite;
}
