/**
 * JL66 - Main Stylesheet
 * All classes use w5881- prefix for namespace isolation
 */

/* 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;
  background: #0F0F23;
  color: #F8F9FA;
  overflow-x: hidden;
  min-height: 100vh;
}

/* CSS Variables */
:root {
  --w5881-primary: #FFE135;
  --w5881-secondary: #3CB371;
  --w5881-accent: #FFB347;
  --w5881-bg: #0F0F23;
  --w5881-bg-alt: #1a1a3e;
  --w5881-text: #F8F9FA;
  --w5881-text-muted: #FAFAD2;
}

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

/* Header */
.w5881-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
  border-bottom: 2px solid rgba(255, 225, 53, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.w5881-header-scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.w5881-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.w5881-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #F8F9FA;
}

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

.w5881-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFE135;
}

.w5881-header-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.w5881-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFE135 0%, #3CB371 100%);
  color: #0F0F23;
}

.w5881-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 225, 53, 0.3);
}

.w5881-btn-outline {
  background: transparent;
  color: #FFE135;
  border: 2px solid #FFE135;
}

.w5881-btn-outline:hover {
  background: #FFE135;
  color: #0F0F23;
}

/* Mobile Menu Toggle */
.w5881-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: #F8F9FA;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .w5881-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.w5881-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 60px);
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(10px);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
}

.w5881-mobile-menu[style*="display: block"] {
  left: 0;
}

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

.w5881-menu-item {
  border-bottom: 1px solid rgba(255, 225, 53, 0.2);
}

.w5881-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: #F8F9FA;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.w5881-menu-link:hover {
  background: rgba(255, 225, 53, 0.1);
  color: #FFE135;
}

.w5881-menu-icon {
  width: 24px;
  text-align: center;
  color: #FFE135;
}

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

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

/* Sections */
.w5881-section {
  padding: 2rem 0;
}

.w5881-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FFE135;
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
}

/* Cards */
.w5881-card {
  background: linear-gradient(135deg, rgba(255, 225, 53, 0.05) 0%, rgba(60, 179, 113, 0.05) 100%);
  border: 1px solid rgba(255, 225, 53, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.w5881-card-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #FFB347;
  margin-bottom: 1rem;
}

.w5881-card-content {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #F8F9FA;
}

/* Links */
.w5881-link {
  color: #FFE135;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.w5881-link:hover {
  color: #3CB371;
  text-decoration: underline;
}

/* Slider */
.w5881-slider {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.w5881-slide {
  width: 100%;
  display: none;
}

.w5881-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Game Grid */
.w5881-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.w5881-game-item {
  position: relative;
}

.w5881-game-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.w5881-game-link:hover {
  transform: scale(1.05);
}

.w5881-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.w5881-game-name {
  font-size: 1rem;
  color: #F8F9FA;
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* FAQ */
.w5881-faq-item {
  background: rgba(255, 225, 53, 0.05);
  border: 1px solid rgba(255, 225, 53, 0.2);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.w5881-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;
  color: #F8F9FA;
  transition: background 0.3s ease;
}

.w5881-faq-question:hover {
  background: rgba(255, 225, 53, 0.1);
}

.w5881-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #F8F9FA;
}

.w5881-faq-item.w5881-faq-active .w5881-faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Footer */
.w5881-footer {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.98) 0%, rgba(26, 26, 62, 0.98) 100%);
  border-top: 2px solid rgba(255, 225, 53, 0.2);
  padding: 2rem 0 6rem 0;
  margin-top: 3rem;
}

.w5881-footer-content {
  text-align: center;
}

.w5881-footer-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #F8F9FA;
  margin-bottom: 1.5rem;
}

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

.w5881-footer-link {
  color: #FFE135;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.w5881-footer-link:hover {
  color: #3CB371;
}

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

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

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

.w5881-copyright {
  font-size: 1.2rem;
  color: rgba(248, 249, 250, 0.6);
}

/* Bottom Navigation - Mobile */
.w5881-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
  border-top: 2px solid rgba(255, 225, 53, 0.2);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  height: 64px;
}

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

.w5881-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: #F8F9FA;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.w5881-bottom-nav-item:hover {
  color: #FFE135;
  transform: scale(1.05);
}

.w5881-bottom-nav-item.w5881-bottom-nav-active {
  color: #FFE135;
}

.w5881-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.w5881-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 380px) {
  .w5881-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 769px) {
  .w5881-container {
    max-width: 1200px;
  }

  .w5881-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .w5881-header-inner {
    padding: 1rem 2rem;
  }
}

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

.w5881-mt-1 {
  margin-top: 1rem;
}

.w5881-mb-1 {
  margin-bottom: 1rem;
}

.w5881-mt-2 {
  margin-top: 2rem;
}

.w5881-mb-2 {
  margin-bottom: 2rem;
}

.w5881-bold {
  font-weight: 700;
}

.w5881-highlight {
  color: #FFE135;
  font-weight: 600;
}

/* Active Navigation Link */
.w5881-nav-link.w5881-active {
  color: #FFE135;
  background: rgba(255, 225, 53, 0.1);
}
