/**
 * JL36 Gaming Platform - Theme Stylesheet
 * All classes prefixed with s086- for namespace isolation
 * Color scheme: Forest Green (#228B22), Dark Slate (#34495E), Off White (#FAFAFA)
 * @version 1.0.0
 */

/* ========== CSS Variables ========== */
:root {
  --s086-primary: #228B22;
  --s086-primary-dark: #1a6b1a;
  --s086-primary-light: #2ea62e;
  --s086-bg: #34495E;
  --s086-bg-dark: #2c3e50;
  --s086-bg-darker: #1a252f;
  --s086-text: #FAFAFA;
  --s086-text-muted: #bdc3c7;
  --s086-accent: #f39c12;
  --s086-accent-light: #f1c40f;
  --s086-danger: #e74c3c;
  --s086-success: #27ae60;
  --s086-card-bg: rgba(44, 62, 80, 0.85);
  --s086-border: rgba(255, 255, 255, 0.08);
  --s086-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --s086-radius: 8px;
  --s086-radius-lg: 14px;
  --s086-header-h: 56px;
  --s086-bottom-nav-h: 60px;
  --s086-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--s086-font);
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--s086-text);
  background: var(--s086-bg);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--s086-primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--s086-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== Header ========== */
.s086-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s086-header-h);
  background: linear-gradient(135deg, var(--s086-bg-darker) 0%, var(--s086-bg-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.s086-header-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.s086-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s086-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.s086-header-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s086-primary);
  letter-spacing: 0.5px;
}

.s086-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s086-menu-toggle {
  background: none;
  border: none;
  color: var(--s086-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ========== Buttons ========== */
.s086-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: var(--s086-radius);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.s086-btn-primary {
  background: var(--s086-primary);
  color: #fff;
}

.s086-btn-primary:hover {
  background: var(--s086-primary-light);
  transform: translateY(-1px);
}

.s086-btn-accent {
  background: var(--s086-accent);
  color: #fff;
}

.s086-btn-accent:hover {
  background: var(--s086-accent-light);
}

.s086-btn-outline {
  background: transparent;
  color: var(--s086-primary);
  border: 1.5px solid var(--s086-primary);
}

.s086-btn-outline:hover {
  background: var(--s086-primary);
  color: #fff;
}

.s086-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.4rem;
  border-radius: var(--s086-radius-lg);
}

/* ========== Mobile Slide Menu ========== */
.s086-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.s086-overlay-active {
  opacity: 1;
  visibility: visible;
}

.s086-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--s086-bg-darker);
  z-index: 9999;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 2rem 1.6rem;
}

.s086-menu-active {
  right: 0;
}

.s086-menu-close {
  background: none;
  border: none;
  color: var(--s086-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.s086-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s086-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--s086-border);
}

.s086-menu-links {
  list-style: none;
}

.s086-menu-links li {
  margin-bottom: 0.3rem;
}

.s086-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--s086-text);
  font-size: 1.4rem;
  border-radius: var(--s086-radius);
  transition: background 0.2s;
}

.s086-menu-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--s086-primary-light);
}

.s086-menu-links .material-icons {
  font-size: 2rem;
  color: var(--s086-primary);
}

/* ========== Main Content ========== */
.s086-main {
  padding-top: var(--s086-header-h);
  min-height: 100vh;
}

@media (max-width: 768px) {
  .s086-main {
    padding-bottom: calc(var(--s086-bottom-nav-h) + 20px);
  }
}

/* ========== Carousel ========== */
.s086-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--s086-radius-lg) var(--s086-radius-lg);
}

.s086-carousel-track {
  position: relative;
  width: 100%;
  padding-top: 50%;
}

.s086-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.s086-slide-active {
  opacity: 1;
}

.s086-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s086-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.s086-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.s086-dot-active {
  background: var(--s086-primary);
  width: 22px;
  border-radius: 4px;
}

/* ========== Sections ========== */
.s086-section {
  padding: 2rem 1.4rem;
}

.s086-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s086-text);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s086-section-title i,
.s086-section-title .material-icons {
  color: var(--s086-primary);
  font-size: 2.2rem;
}

.s086-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--s086-primary), transparent);
  margin-left: 0.6rem;
}

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

.s086-game-card {
  background: var(--s086-card-bg);
  border-radius: var(--s086-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--s086-border);
}

.s086-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--s086-shadow);
  border-color: var(--s086-primary);
}

.s086-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.s086-game-card-name {
  font-size: 1rem;
  color: var(--s086-text-muted);
  text-align: center;
  padding: 0.4rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ========== Cards & Content Blocks ========== */
.s086-card {
  background: var(--s086-card-bg);
  border-radius: var(--s086-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--s086-border);
}

.s086-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s086-text);
  margin-bottom: 1rem;
}

.s086-card p {
  color: var(--s086-text-muted);
  line-height: 2.1rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* ========== RTP Bar ========== */
.s086-rtp-bar {
  margin-bottom: 1rem;
}

.s086-rtp-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  color: var(--s086-text-muted);
  margin-bottom: 0.4rem;
}

.s086-rtp-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.s086-rtp-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--s086-primary), var(--s086-accent));
  transition: width 0.8s ease;
}

/* ========== Promo Text Link ========== */
.s086-promo-link {
  color: var(--s086-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.s086-promo-link:hover {
  color: var(--s086-accent-light);
  text-decoration: underline;
}

/* ========== Winner Badge ========== */
.s086-winner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(34, 139, 34, 0.12);
  border-radius: var(--s086-radius);
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--s086-primary);
}

.s086-winner-name {
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--s086-text);
}

.s086-winner-amount {
  margin-left: auto;
  font-weight: 700;
  color: var(--s086-accent);
  font-size: 1.4rem;
}

.s086-winner-game {
  font-size: 1.1rem;
  color: var(--s086-text-muted);
}

/* ========== Payment Methods ========== */
.s086-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.s086-payment-item {
  background: var(--s086-card-bg);
  padding: 0.8rem 1.2rem;
  border-radius: var(--s086-radius);
  font-size: 1.2rem;
  color: var(--s086-text);
  border: 1px solid var(--s086-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== Testimonial ========== */
.s086-testimonial {
  background: var(--s086-card-bg);
  border-radius: var(--s086-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--s086-primary);
}

.s086-testimonial-user {
  font-weight: 600;
  color: var(--s086-primary);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.s086-testimonial-text {
  color: var(--s086-text-muted);
  font-size: 1.2rem;
  line-height: 1.8rem;
  font-style: italic;
}

/* ========== FAQ Accordion ========== */
.s086-faq-item {
  background: var(--s086-card-bg);
  border-radius: var(--s086-radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--s086-border);
}

.s086-faq-q {
  padding: 1.2rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--s086-text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.s086-faq-q i {
  color: var(--s086-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.s086-faq-a {
  padding: 0 1.2rem 1.2rem;
  color: var(--s086-text-muted);
  font-size: 1.2rem;
  line-height: 1.8rem;
}

/* ========== Footer ========== */
.s086-footer {
  background: var(--s086-bg-darker);
  padding: 2.5rem 1.4rem 1.5rem;
  border-top: 1px solid var(--s086-border);
}

.s086-footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.s086-footer-brand h3 {
  font-size: 2rem;
  color: var(--s086-primary);
  margin-bottom: 0.6rem;
}

.s086-footer-brand p {
  color: var(--s086-text-muted);
  font-size: 1.2rem;
  line-height: 1.8rem;
}

.s086-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.s086-footer-buttons .s086-btn {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.s086-footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: center;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--s086-border);
}

.s086-footer-sitemap a {
  font-size: 1.2rem;
  color: var(--s086-text-muted);
  transition: color 0.2s;
}

.s086-footer-sitemap a:hover {
  color: var(--s086-primary);
}

.s086-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--s086-text-muted);
  opacity: 0.7;
}

/* ========== Partners ========== */
.s086-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  opacity: 0.6;
}

.s086-partners img {
  height: 28px;
  filter: grayscale(100%) brightness(1.5);
  transition: filter 0.3s;
}

.s086-partners img:hover {
  filter: grayscale(0%) brightness(1);
}

/* ========== Bottom Navigation ========== */
.s086-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s086-bottom-nav-h);
  background: var(--s086-bg-darker);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--s086-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.s086-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--s086-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 2px;
  border-radius: 8px;
  padding: 4px 8px;
}

.s086-bottom-nav-item i,
.s086-bottom-nav-item .material-icons {
  font-size: 22px;
  transition: transform 0.2s;
}

.s086-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1.2;
}

.s086-bottom-nav-item:hover,
.s086-bottom-nav-active {
  color: var(--s086-primary);
}

.s086-bottom-nav-item:hover i,
.s086-bottom-nav-active i,
.s086-bottom-nav-item:hover .material-icons,
.s086-bottom-nav-active .material-icons {
  transform: scale(1.15);
}

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

/* ========== CTA Section ========== */
.s086-cta {
  background: linear-gradient(135deg, var(--s086-primary-dark), var(--s086-primary));
  border-radius: var(--s086-radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
}

.s086-cta h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.s086-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  line-height: 1.8rem;
}

/* ========== Feature List ========== */
.s086-feature-list {
  list-style: none;
}

.s086-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--s086-border);
}

.s086-feature-list li:last-child {
  border-bottom: none;
}

.s086-feature-list li i,
.s086-feature-list li .material-icons {
  color: var(--s086-primary);
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.s086-feature-list li span {
  color: var(--s086-text-muted);
  font-size: 1.3rem;
  line-height: 1.8rem;
}

/* ========== Achievements Grid ========== */
.s086-achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.s086-achievement-item {
  text-align: center;
  background: var(--s086-card-bg);
  padding: 1.2rem;
  border-radius: var(--s086-radius);
  border: 1px solid var(--s086-border);
}

.s086-achievement-item .material-icons {
  font-size: 2.8rem;
  color: var(--s086-accent);
  margin-bottom: 0.4rem;
}

.s086-achievement-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s086-text);
}

.s086-achievement-label {
  font-size: 1.1rem;
  color: var(--s086-text-muted);
}

/* ========== Security Badges ========== */
.s086-security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.s086-security-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--s086-card-bg);
  padding: 0.8rem 1.2rem;
  border-radius: var(--s086-radius);
  font-size: 1.2rem;
  color: var(--s086-text);
  border: 1px solid var(--s086-border);
}

.s086-security-badge i {
  color: var(--s086-primary);
}

/* ========== App Download CTA ========== */
.s086-app-cta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--s086-card-bg);
  padding: 1.4rem;
  border-radius: var(--s086-radius-lg);
  border: 1px solid var(--s086-border);
}

.s086-app-cta-icon {
  font-size: 3.6rem;
  color: var(--s086-primary);
  flex-shrink: 0;
}

.s086-app-cta-text h4 {
  font-size: 1.4rem;
  color: var(--s086-text);
  margin-bottom: 0.3rem;
}

.s086-app-cta-text p {
  color: var(--s086-text-muted);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

/* ========== Tricks Component ========== */
.s086-trick-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--s086-card-bg);
  border-radius: var(--s086-radius);
  margin-bottom: 0.6rem;
  border: 1px solid var(--s086-border);
}

.s086-trick-num {
  background: var(--s086-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.s086-trick-text {
  color: var(--s086-text-muted);
  font-size: 1.3rem;
  line-height: 1.8rem;
}

/* ========== Category Highlights ========== */
.s086-category-highlight {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem;
  background: var(--s086-card-bg);
  border-radius: var(--s086-radius);
  margin-bottom: 0.8rem;
  border: 1px solid var(--s086-border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.s086-category-highlight:hover {
  border-color: var(--s086-primary);
}

.s086-category-highlight .material-icons {
  font-size: 3rem;
  color: var(--s086-primary);
}

.s086-category-highlight-info h4 {
  font-size: 1.4rem;
  color: var(--s086-text);
  margin-bottom: 0.2rem;
}

.s086-category-highlight-info p {
  color: var(--s086-text-muted);
  font-size: 1.2rem;
}

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

@media (min-width: 769px) {
  .s086-header {
    border-radius: 0 0 var(--s086-radius-lg) var(--s086-radius-lg);
  }
}

/* ========== Animations ========== */
@keyframes s086-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.s086-fade-in {
  animation: s086-fadeIn 0.4s ease-out;
}

/* ========== Utilities ========== */
.s086-text-center { text-align: center; }
.s086-mt-1 { margin-top: 1rem; }
.s086-mt-2 { margin-top: 2rem; }
.s086-mb-1 { margin-bottom: 1rem; }
.s086-mb-2 { margin-bottom: 2rem; }
.s086-hidden { display: none !important; }
