/**
 * JL Boss Games - Layout Stylesheet
 * All classes prefixed with sf38- for namespace isolation
 */

/* === CSS Variables === */
:root {
  --sf38-primary: #20B2AA;
  --sf38-bg: #212F3D;
  --sf38-text: #E9ECEF;
  --sf38-accent: #F08080;
  --sf38-secondary: #006400;
  --sf38-bg-card: #2C3E50;
  --sf38-border: #34495E;
  --sf38-dark-green: #8FBC8F;
  --sf38-radius: 8px;
  --sf38-shadow: 0 2px 12px rgba(0,0,0,0.25);
  --sf38-transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--sf38-bg);
  color: var(--sf38-text);
  line-height: 1.6;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--sf38-primary); text-decoration: none; transition: var(--sf38-transition); }
a:hover { color: var(--sf38-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.sf38-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--sf38-bg) 0%, #1a252f 100%);
  border-bottom: 2px solid var(--sf38-primary);
  z-index: 1000;
  padding: 0 1.2rem;
  height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sf38-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sf38-logo-img {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 2px solid var(--sf38-primary);
}
.sf38-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sf38-primary);
  white-space: nowrap;
}
.sf38-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sf38-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--sf38-transition);
}
.sf38-btn-register {
  background: linear-gradient(135deg, var(--sf38-accent) 0%, #e06060 100%);
  color: #fff;
}
.sf38-btn-register:hover {
  background: linear-gradient(135deg, #e06060 0%, #c04040 100%);
  transform: scale(1.05);
}
.sf38-btn-login {
  background: transparent;
  color: var(--sf38-primary);
  border: 2px solid var(--sf38-primary);
}
.sf38-btn-login:hover {
  background: var(--sf38-primary);
  color: var(--sf38-bg);
}
.sf38-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  background: none;
  border: none;
  color: var(--sf38-text);
  font-size: 2.2rem;
  cursor: pointer;
}

/* === Mobile Menu === */
.sf38-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--sf38-bg) 0%, #1a252f 100%);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 0;
  overflow-y: auto;
}
.sf38-menu-active { right: 0; }
.sf38-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--sf38-transition);
}
.sf38-overlay-active { opacity: 1; visibility: visible; }
.sf38-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  background: none;
  border: none;
  color: var(--sf38-accent);
  font-size: 2.4rem;
  cursor: pointer;
  margin-left: auto;
  margin-right: 1.2rem;
}
.sf38-menu-links {
  padding: 1rem 1.6rem;
}
.sf38-menu-links li {
  border-bottom: 1px solid var(--sf38-border);
}
.sf38-menu-links a {
  display: block;
  padding: 1.2rem 0.8rem;
  font-size: 1.5rem;
  color: var(--sf38-text);
  transition: var(--sf38-transition);
}
.sf38-menu-links a:hover {
  color: var(--sf38-primary);
  padding-left: 1.4rem;
}

/* === Main Content === */
.sf38-main {
  padding-top: 5.6rem;
  min-height: 100vh;
}

/* === Carousel === */
.sf38-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--sf38-radius) var(--sf38-radius);
}
.sf38-slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.sf38-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.sf38-slide-active { opacity: 1; }
.sf38-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf38-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}
.sf38-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--sf38-transition);
}
.sf38-dot-active {
  background: var(--sf38-primary);
  transform: scale(1.3);
}

/* === Section Headings === */
.sf38-section {
  padding: 2rem 1.2rem;
}
.sf38-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sf38-text);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sf38-section-title i {
  color: var(--sf38-primary);
  font-size: 2.2rem;
}
.sf38-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--sf38-primary), transparent);
  margin-left: 0.8rem;
}

/* === Game Grid === */
.sf38-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sf38-game-card {
  background: var(--sf38-bg-card);
  border-radius: var(--sf38-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--sf38-transition);
  border: 1px solid var(--sf38-border);
}
.sf38-game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sf38-shadow);
  border-color: var(--sf38-primary);
}
.sf38-game-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}
.sf38-game-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf38-game-name {
  padding: 0.6rem 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--sf38-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.sf38-game-card:hover .sf38-game-name { color: var(--sf38-primary); }

/* === Content Modules === */
.sf38-module {
  background: var(--sf38-bg-card);
  border-radius: var(--sf38-radius);
  padding: 2rem 1.6rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--sf38-border);
  border-left: 4px solid var(--sf38-primary);
}
.sf38-module-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sf38-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sf38-module p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--sf38-text);
  margin-bottom: 1rem;
}
.sf38-module ul {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}
.sf38-module li {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--sf38-text);
  list-style: disc;
  margin-bottom: 0.4rem;
}

/* === Payment Section === */
.sf38-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.sf38-payment-item {
  background: var(--sf38-bg);
  border: 1px solid var(--sf38-border);
  border-radius: var(--sf38-radius);
  padding: 1rem 1.4rem;
  text-align: center;
  min-width: 8rem;
  transition: var(--sf38-transition);
}
.sf38-payment-item:hover {
  border-color: var(--sf38-primary);
  transform: scale(1.05);
}
.sf38-payment-item i {
  font-size: 2.4rem;
  color: var(--sf38-primary);
  display: block;
  margin-bottom: 0.4rem;
}
.sf38-payment-item span {
  font-size: 1.2rem;
  color: var(--sf38-text);
}

/* === Winners Section === */
.sf38-winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.sf38-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sf38-bg);
  padding: 1rem 1.2rem;
  border-radius: var(--sf38-radius);
  border: 1px solid var(--sf38-border);
}
.sf38-winner-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sf38-winner-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--sf38-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sf38-bg);
  font-weight: 700;
  font-size: 1.2rem;
}
.sf38-winner-name {
  font-size: 1.3rem;
  color: var(--sf38-text);
  font-weight: 500;
}
.sf38-winner-game {
  font-size: 1.1rem;
  color: rgba(233,236,239,0.6);
}
.sf38-winner-amount {
  font-size: 1.4rem;
  color: var(--sf38-accent);
  font-weight: 700;
}

/* === Footer === */
.sf38-footer {
  background: linear-gradient(180deg, var(--sf38-bg-card) 0%, #1a252f 100%);
  padding: 2.5rem 1.2rem 1.5rem;
  border-top: 2px solid var(--sf38-primary);
}
.sf38-footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.sf38-footer-brand h3 {
  font-size: 1.8rem;
  color: var(--sf38-primary);
  margin-bottom: 0.6rem;
}
.sf38-footer-brand p {
  font-size: 1.3rem;
  color: rgba(233,236,239,0.7);
  line-height: 1.6;
}
.sf38-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.sf38-footer-col h4 {
  font-size: 1.4rem;
  color: var(--sf38-primary);
  margin-bottom: 0.8rem;
}
.sf38-footer-col a {
  display: block;
  font-size: 1.2rem;
  color: rgba(233,236,239,0.7);
  padding: 0.3rem 0;
}
.sf38-footer-col a:hover { color: var(--sf38-accent); }
.sf38-footer-partners {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--sf38-border);
  border-bottom: 1px solid var(--sf38-border);
  margin-bottom: 1.5rem;
}
.sf38-footer-partners p {
  font-size: 1.2rem;
  color: rgba(233,236,239,0.5);
  margin-bottom: 0.8rem;
}
.sf38-partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  align-items: center;
}
.sf38-partner-logos img {
  height: 2.4rem;
  opacity: 0.7;
  transition: var(--sf38-transition);
}
.sf38-partner-logos img:hover { opacity: 1; }
.sf38-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(233,236,239,0.5);
  padding-top: 1rem;
}

/* === Bottom Navigation === */
.sf38-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #2C3E50 0%, #1a252f 100%);
  border-top: 2px solid var(--sf38-primary);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 0.4rem;
}
.sf38-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--sf38-transition);
  color: rgba(233,236,239,0.6);
  gap: 0.2rem;
  border-radius: var(--sf38-radius);
  padding: 0.4rem;
}
.sf38-nav-btn:hover, .sf38-nav-btn:focus {
  color: var(--sf38-primary);
  background: rgba(32,178,170,0.1);
}
.sf38-nav-btn:active {
  transform: scale(0.92);
}
.sf38-nav-btn .sf38-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.sf38-nav-btn .sf38-nav-label {
  font-size: 1rem;
  font-weight: 500;
}
.sf38-nav-btn.sf38-nav-active {
  color: var(--sf38-accent);
}
.sf38-nav-btn.sf38-nav-active .sf38-nav-icon {
  transform: scale(1.1);
}

/* === CTA Banner === */
.sf38-cta {
  background: linear-gradient(135deg, var(--sf38-secondary) 0%, #004d00 100%);
  padding: 2rem 1.6rem;
  text-align: center;
  border-radius: var(--sf38-radius);
  margin: 1.6rem 0;
  border: 1px solid var(--sf38-dark-green);
}
.sf38-cta h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.sf38-cta p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.4rem;
}
.sf38-cta-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--sf38-accent) 0%, #e06060 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 3rem;
  cursor: pointer;
  border: none;
  transition: var(--sf38-transition);
}
.sf38-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(240,128,128,0.4);
}

/* === Help Page Styles === */
.sf38-help-content {
  padding: 2rem 1.2rem;
}
.sf38-help-content h2 {
  font-size: 1.8rem;
  color: var(--sf38-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sf38-border);
}
.sf38-help-content h3 {
  font-size: 1.6rem;
  color: var(--sf38-accent);
  margin: 1.6rem 0 0.8rem;
}
.sf38-help-content p {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.sf38-help-content ol, .sf38-help-content ul {
  padding-left: 2rem;
  margin-bottom: 1.2rem;
}
.sf38-help-content ol li, .sf38-help-content ul li {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}
.sf38-help-content ol { list-style: decimal; }
.sf38-help-content ul { list-style: disc; }

/* === FAQ Accordion === */
.sf38-faq-item {
  background: var(--sf38-bg-card);
  border: 1px solid var(--sf38-border);
  border-radius: var(--sf38-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.sf38-faq-q {
  padding: 1.4rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sf38-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sf38-faq-q::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--sf38-accent);
  transition: var(--sf38-transition);
}
.sf38-faq-item[open] .sf38-faq-q::after {
  content: '-';
}
.sf38-faq-a {
  padding: 0 1.6rem 1.4rem;
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--sf38-text);
}

/* === Responsive === */
@media (min-width: 769px) {
  .sf38-bottom-nav { display: none; }
  .sf38-hamburger { display: none; }
  body { max-width: 100%; }
  .sf38-header { max-width: 100%; }
  .sf38-main { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .sf38-main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .sf38-game-grid { grid-template-columns: repeat(2, 1fr); }
  .sf38-btn { padding: 0.5rem 1rem; font-size: 1.2rem; }
}
