/**
 * JLQQQ - Main Stylesheet
 * All classes use s6b9- prefix for namespace isolation
 * Color scheme: #FF8C00 (primary), #FFD700 (accent), #0F0F23 (background)
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --s6b9-primary: #FF8C00;
  --s6b9-primary-dark: #E67E00;
  --s6b9-accent: #FFD700;
  --s6b9-accent-dark: #FFC000;
  --s6b9-bg: #0F0F23;
  --s6b9-bg-light: #1A1A35;
  --s6b9-bg-lighter: #252547;
  --s6b9-text: #FFFFFF;
  --s6b9-text-muted: #B8B8D4;
  --s6b9-border: #3A3A5C;
  --s6b9-shadow: rgba(0, 0, 0, 0.3);
  --s6b9-gradient: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
  --s6b9-font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --s6b9-transition: all 0.3s ease;
  --s6b9-header-height: 60px;
  --s6b9-bottom-nav-height: 60px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--s6b9-font-main);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--s6b9-text);
  background-color: var(--s6b9-bg);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--s6b9-bottom-nav-height);
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Container */
.s6b9-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 769px) {
  .s6b9-container {
    max-width: 1200px;
  }
}

/* Header Styles */
.s6b9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--s6b9-header-height);
  background-color: var(--s6b9-bg);
  border-bottom: 1px solid var(--s6b9-border);
  z-index: 1000;
  transition: var(--s6b9-transition);
}

.s6b9-header-scrolled {
  background-color: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--s6b9-shadow);
}

.s6b9-header-container {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

@media (min-width: 769px) {
  .s6b9-header-container {
    max-width: 1200px;
  }
}

.s6b9-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--s6b9-text);
}

.s6b9-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
}

.s6b9-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--s6b9-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s6b9-header-buttons {
  display: flex;
  gap: 1rem;
}

.s6b9-header-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--s6b9-transition);
  text-decoration: none;
  display: inline-block;
}

.s6b9-btn-register {
  background: var(--s6b9-gradient);
  color: var(--s6b9-bg);
}

.s6b9-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.s6b9-btn-login {
  background: transparent;
  color: var(--s6b9-accent);
  border: 2px solid var(--s6b9-accent);
}

.s6b9-btn-login:hover {
  background: var(--s6b9-accent);
  color: var(--s6b9-bg);
}

.s6b9-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

@media (min-width: 769px) {
  .s6b9-hamburger {
    display: none;
  }
}

.s6b9-hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--s6b9-primary);
  border-radius: 3px;
  transition: var(--s6b9-transition);
}

.s6b9-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.s6b9-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.s6b9-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.s6b9-mobile-menu {
  position: fixed;
  top: var(--s6b9-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--s6b9-bg);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  padding: 2rem;
}

.s6b9-menu-open {
  transform: translateX(0);
}

.s6b9-menu-list {
  list-style: none;
}

.s6b9-menu-item {
  margin-bottom: 0.5rem;
}

.s6b9-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--s6b9-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 8px;
  transition: var(--s6b9-transition);
  border-left: 3px solid transparent;
}

.s6b9-menu-link:hover {
  background-color: var(--s6b9-bg-light);
  border-left-color: var(--s6b9-primary);
  padding-left: 2rem;
}

/* Main Content */
.s6b9-main {
  margin-top: var(--s6b9-header-height);
  min-height: calc(100vh - var(--s6b9-header-height) - var(--s6b9-bottom-nav-height));
}

@media (min-width: 769px) {
  .s6b9-main {
    min-height: calc(100vh - var(--s6b9-header-height));
  }
}

/* Carousel */
.s6b9-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

@media (min-width: 769px) {
  .s6b9-carousel {
    height: 400px;
  }
}

.s6b9-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.s6b9-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.s6b9-slide-active {
  opacity: 1;
}

.s6b9-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s6b9-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.s6b9-carousel-prev,
.s6b9-carousel-next {
  width: 40px;
  height: 40px;
  background-color: rgba(15, 15, 35, 0.8);
  border: 2px solid var(--s6b9-primary);
  border-radius: 50%;
  color: var(--s6b9-primary);
  font-size: 1.8rem;
  cursor: pointer;
  pointer-events: all;
  transition: var(--s6b9-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.s6b9-carousel-prev:hover,
.s6b9-carousel-next:hover {
  background-color: var(--s6b9-primary);
  color: var(--s6b9-bg);
}

.s6b9-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.s6b9-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--s6b9-border);
  cursor: pointer;
  transition: var(--s6b9-transition);
}

.s6b9-dot-active {
  background-color: var(--s6b9-primary);
  width: 30px;
  border-radius: 5px;
}

/* Section Styles */
.s6b9-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--s6b9-border);
}

.s6b9-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--s6b9-text);
  position: relative;
  padding-left: 1.5rem;
}

.s6b9-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 100%;
  background: var(--s6b9-gradient);
  border-radius: 3px;
}

/* Game Grid */
.s6b9-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 769px) {
  .s6b9-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.s6b9-game-card {
  background-color: var(--s6b9-bg-light);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--s6b9-transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.s6b9-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--s6b9-shadow);
}

.s6b9-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.s6b9-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  color: var(--s6b9-text);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Tabs */
.s6b9-category-tabs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.s6b9-category-tabs::-webkit-scrollbar {
  display: none;
}

.s6b9-category-tab {
  padding: 0.8rem 1.5rem;
  background-color: var(--s6b9-bg-light);
  color: var(--s6b9-text-muted);
  border: 2px solid var(--s6b9-border);
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s6b9-transition);
  white-space: nowrap;
}

.s6b9-category-tab:hover,
.s6b9-category-tab.s6b9-tab-active {
  background: var(--s6b9-gradient);
  border-color: var(--s6b9-primary);
  color: var(--s6b9-bg);
}

/* Promotional Links */
.s6b9-promo-link {
  color: var(--s6b9-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--s6b9-transition);
}

.s6b9-promo-link:hover {
  color: var(--s6b9-accent);
  text-decoration: underline;
}

.s6b9-promo-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--s6b9-gradient);
  color: var(--s6b9-bg);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.6rem;
  transition: var(--s6b9-transition);
  border: none;
  cursor: pointer;
}

.s6b9-promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

/* Cards */
.s6b9-card {
  background-color: var(--s6b9-bg-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--s6b9-border);
}

.s6b9-card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--s6b9-accent);
}

.s6b9-card-content {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--s6b9-text-muted);
}

/* FAQ */
.s6b9-faq-item {
  background-color: var(--s6b9-bg-light);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--s6b9-border);
}

.s6b9-faq-question {
  padding: 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s6b9-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--s6b9-transition);
}

.s6b9-faq-question:hover {
  background-color: var(--s6b9-bg-lighter);
}

.s6b9-faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--s6b9-text-muted);
  display: none;
}

.s6b9-faq-item.s6b9-faq-open .s6b9-faq-answer {
  display: block;
}

/* Footer */
.s6b9-footer {
  background-color: var(--s6b9-bg-light);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--s6b9-border);
}

.s6b9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.s6b9-footer-link {
  color: var(--s6b9-text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--s6b9-transition);
}

.s6b9-footer-link:hover {
  color: var(--s6b9-primary);
  background-color: var(--s6b9-bg-lighter);
}

.s6b9-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.s6b9-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--s6b9-transition);
}

.s6b9-partner-logo:hover {
  opacity: 1;
}

.s6b9-copyright {
  text-align: center;
  color: var(--s6b9-text-muted);
  font-size: 1.3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--s6b9-border);
}

/* Bottom Navigation (Mobile) */
.s6b9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s6b9-bottom-nav-height);
  background-color: var(--s6b9-bg);
  border-top: 1px solid var(--s6b9-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--s6b9-shadow);
}

@media (min-width: 769px) {
  .s6b9-bottom-nav {
    display: none;
  }
}

.s6b9-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--s6b9-text-muted);
  transition: var(--s6b9-transition);
  border-radius: 8px;
  cursor: pointer;
}

.s6b9-nav-item:hover {
  color: var(--s6b9-primary);
  background-color: var(--s6b9-bg-light);
}

.s6b9-nav-item.s6b9-nav-active {
  color: var(--s6b9-primary);
}

.s6b9-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.s6b9-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Animations */
.s6b9-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.s6b9-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.s6b9-text-center {
  text-align: center;
}

.s6b9-mb-1 {
  margin-bottom: 1rem;
}

.s6b9-mb-2 {
  margin-bottom: 2rem;
}

.s6b9-mb-3 {
  margin-bottom: 3rem;
}

.s6b9-mt-1 {
  margin-top: 1rem;
}

.s6b9-mt-2 {
  margin-top: 2rem;
}

.s6b9-mt-3 {
  margin-top: 3rem;
}

/* Responsive Helpers */
@media (max-width: 768px) {
  .s6b9-hide-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .s6b9-hide-desktop {
    display: none;
  }
}
