/**
 * 369jl - Core Stylesheet
 * All classes prefixed with s1d3- for namespace isolation
 * Mobile-first design, max-width 430px, rem units (root 62.5%)
 */

/* ===== CSS Variables ===== */
:root {
  --s1d3-primary: #F4A460;
  --s1d3-primary-dark: #D4874A;
  --s1d3-green-light: #90EE90;
  --s1d3-green: #32CD32;
  --s1d3-green-dark: #228B22;
  --s1d3-text-light: #EEEEEE;
  --s1d3-bg-dark: #0E1621;
  --s1d3-bg-card: #151f2e;
  --s1d3-bg-card-alt: #1a2738;
  --s1d3-border: #2a3a4e;
  --s1d3-accent: #FFD700;
  --s1d3-danger: #FF6B6B;
  --s1d3-radius: 1.0rem;
  --s1d3-radius-sm: 0.6rem;
  --s1d3-shadow: 0 0.2rem 1.0rem rgba(0,0,0,0.3);
  --s1d3-transition: all 0.3s ease;
  font-size: 62.5%;
}

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

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--s1d3-bg-dark);
  color: var(--s1d3-text-light);
  font-size: 1.6rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--s1d3-primary);
  text-decoration: none;
  transition: var(--s1d3-transition);
}

a:hover {
  color: var(--s1d3-green-light);
}

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

/* ===== Layout ===== */
.s1d3-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.s1d3-container {
  width: 100%;
  padding: 0 1.2rem;
}

/* ===== Header / Top Navigation ===== */
.s1d3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0E1621 0%, #152030 100%);
  border-bottom: 1px solid var(--s1d3-border);
  height: 5.6rem;
}

.s1d3-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.0rem;
  height: 100%;
}

.s1d3-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.s1d3-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.s1d3-logo-text {
  font-size: 2.0rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--s1d3-primary) 0%, var(--s1d3-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s1d3-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s1d3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border: none;
  border-radius: var(--s1d3-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--s1d3-transition);
  min-height: 4.4rem;
  min-width: 4.4rem;
  text-decoration: none;
}

.s1d3-btn-register {
  background: linear-gradient(135deg, var(--s1d3-green) 0%, var(--s1d3-green-dark) 100%);
  color: #fff;
}

.s1d3-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0.3rem 1.2rem rgba(50,205,50,0.4);
}

.s1d3-btn-login {
  background: linear-gradient(135deg, var(--s1d3-primary) 0%, var(--s1d3-primary-dark) 100%);
  color: #fff;
}

.s1d3-btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 0.3rem 1.2rem rgba(244,164,96,0.4);
}

.s1d3-menu-toggle {
  background: none;
  border: none;
  color: var(--s1d3-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.8rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--s1d3-transition);
}

.s1d3-menu-toggle:hover {
  color: var(--s1d3-primary);
}

/* ===== Mobile Menu ===== */
.s1d3-mobile-menu {
  position: fixed;
  top: 5.6rem;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--s1d3-bg-dark);
  border-bottom: 2px solid var(--s1d3-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.s1d3-mobile-menu.s1d3-menu-active {
  max-height: 50rem;
}

.s1d3-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 1.0rem 1.2rem;
}

.s1d3-menu-link {
  display: block;
  padding: 1.2rem 1.0rem;
  color: var(--s1d3-text-light);
  font-size: 1.5rem;
  font-weight: 500;
  border-bottom: 1px solid var(--s1d3-border);
  transition: var(--s1d3-transition);
}

.s1d3-menu-link:hover {
  color: var(--s1d3-primary);
  padding-left: 1.6rem;
  background: rgba(244,164,96,0.05);
}

/* ===== Main Content ===== */
.s1d3-main {
  padding-top: 5.6rem;
}

@media (max-width: 768px) {
  .s1d3-main {
    padding-bottom: 8.0rem;
  }
}

/* ===== Carousel ===== */
.s1d3-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.s1d3-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.s1d3-slide-active {
  display: block;
}

.s1d3-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

.s1d3-dots {
  position: absolute;
  bottom: 1.0rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.s1d3-dot {
  width: 1.0rem;
  height: 1.0rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--s1d3-transition);
}

.s1d3-dot-active {
  background: var(--s1d3-primary);
  transform: scale(1.2);
}

/* ===== Section Titles ===== */
.s1d3-section-title {
  font-size: 2.0rem;
  font-weight: 800;
  color: var(--s1d3-primary);
  margin: 2.0rem 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--s1d3-green-dark);
  line-height: 1.3;
}

.s1d3-section-title i,
.s1d3-section-title .material-icons {
  margin-right: 0.5rem;
  font-size: 2.2rem;
}

.s1d3-subtitle {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--s1d3-green-light);
  margin: 1.5rem 0 0.8rem;
}

.s1d3-text {
  color: var(--s1d3-text-light);
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1.0rem;
}

/* ===== Game Grid ===== */
.s1d3-game-section {
  margin-bottom: 1.5rem;
}

.s1d3-cat-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--s1d3-green);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--s1d3-primary);
}

.s1d3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.s1d3-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--s1d3-transition);
  border-radius: var(--s1d3-radius-sm);
  padding: 0.5rem;
  background: var(--s1d3-bg-card);
}

.s1d3-game-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--s1d3-shadow);
  background: var(--s1d3-bg-card-alt);
}

.s1d3-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--s1d3-radius-sm);
  object-fit: cover;
  margin-bottom: 0.3rem;
}

.s1d3-game-name {
  font-size: 1.1rem;
  color: var(--s1d3-text-light);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===== Content Modules ===== */
.s1d3-card {
  background: var(--s1d3-bg-card);
  border: 1px solid var(--s1d3-border);
  border-radius: var(--s1d3-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.s1d3-card-highlight {
  border-left: 3px solid var(--s1d3-primary);
}

.s1d3-promo-box {
  background: linear-gradient(135deg, rgba(50,205,50,0.1) 0%, rgba(244,164,96,0.1) 100%);
  border: 1px solid var(--s1d3-green-dark);
  border-radius: var(--s1d3-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.s1d3-promo-box h3 {
  color: var(--s1d3-primary);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.s1d3-promo-box p {
  color: var(--s1d3-text-light);
  font-size: 1.4rem;
  margin-bottom: 1.0rem;
}

.s1d3-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--s1d3-green) 0%, var(--s1d3-green-dark) 100%);
  color: #fff;
  padding: 1.0rem 2.4rem;
  border-radius: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--s1d3-transition);
  min-height: 4.4rem;
}

.s1d3-btn-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 0.4rem 1.5rem rgba(50,205,50,0.4);
}

/* ===== FAQ Styles ===== */
.s1d3-faq-item {
  margin-bottom: 1.2rem;
  padding: 1.2rem;
  background: var(--s1d3-bg-card);
  border-radius: var(--s1d3-radius-sm);
  border-left: 3px solid var(--s1d3-green-dark);
}

.s1d3-faq-q {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s1d3-primary);
  margin-bottom: 0.5rem;
}

.s1d3-faq-a {
  font-size: 1.4rem;
  color: var(--s1d3-text-light);
  line-height: 1.5;
}

/* ===== Testimonials ===== */
.s1d3-testimonial {
  background: var(--s1d3-bg-card-alt);
  border-radius: var(--s1d3-radius);
  padding: 1.2rem;
  margin-bottom: 1.0rem;
  border: 1px solid var(--s1d3-border);
}

.s1d3-testimonial-name {
  font-weight: 700;
  color: var(--s1d3-primary);
  font-size: 1.4rem;
}

.s1d3-testimonial-text {
  font-size: 1.3rem;
  color: var(--s1d3-text-light);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ===== Winners List ===== */
.s1d3-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--s1d3-border);
  font-size: 1.3rem;
}

.s1d3-winner-name {
  color: var(--s1d3-primary);
  font-weight: 600;
}

.s1d3-winner-game {
  color: var(--s1d3-green-light);
  flex: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.s1d3-winner-amount {
  color: var(--s1d3-accent);
  font-weight: 700;
}

/* ===== Payment Icons ===== */
.s1d3-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.0rem 0;
}

.s1d3-payment-item {
  background: var(--s1d3-bg-card-alt);
  border: 1px solid var(--s1d3-border);
  border-radius: var(--s1d3-radius-sm);
  padding: 0.8rem 1.2rem;
  font-size: 1.3rem;
  color: var(--s1d3-text-light);
  text-align: center;
}

/* ===== Footer ===== */
.s1d3-footer {
  background: linear-gradient(180deg, var(--s1d3-bg-card) 0%, #080d14 100%);
  padding: 2.0rem 1.2rem 1.5rem;
  margin-top: 2.0rem;
  border-top: 2px solid var(--s1d3-border);
}

.s1d3-footer-brand {
  font-size: 1.4rem;
  color: rgba(238,238,238,0.7);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.s1d3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.s1d3-footer-link {
  color: rgba(238,238,238,0.6);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--s1d3-border);
  border-radius: var(--s1d3-radius-sm);
  transition: var(--s1d3-transition);
}

.s1d3-footer-link:hover {
  color: var(--s1d3-primary);
  border-color: var(--s1d3-primary);
}

.s1d3-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.s1d3-footer-promo-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--s1d3-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--s1d3-transition);
  border: none;
}

.s1d3-footer-promo-green {
  background: var(--s1d3-green-dark);
  color: #fff;
}

.s1d3-footer-promo-sandy {
  background: var(--s1d3-primary);
  color: #fff;
}

.s1d3-footer-promo-btn:hover {
  transform: scale(1.05);
}

.s1d3-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(238,238,238,0.4);
  padding-top: 1.0rem;
  border-top: 1px solid var(--s1d3-border);
}

/* ===== Bottom Navigation (Mobile) ===== */
.s1d3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #152030 0%, #0E1621 100%);
  border-top: 1px solid var(--s1d3-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6.0rem;
  padding: 0 0.4rem;
}

.s1d3-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6.0rem;
  min-height: 5.0rem;
  background: none;
  border: none;
  color: rgba(238,238,238,0.6);
  cursor: pointer;
  transition: var(--s1d3-transition);
  padding: 0.4rem;
  border-radius: var(--s1d3-radius-sm);
}

.s1d3-bottom-nav-btn:hover {
  color: var(--s1d3-primary);
  background: rgba(244,164,96,0.1);
}

.s1d3-bottom-nav-btn.s1d3-nav-active {
  color: var(--s1d3-green);
}

.s1d3-bottom-nav-btn .s1d3-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.s1d3-bottom-nav-btn .s1d3-nav-label {
  font-size: 1.0rem;
  line-height: 1;
  font-weight: 500;
}

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .s1d3-bottom-nav {
    display: none;
  }
}

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

.s1d3-mb-1 {
  margin-bottom: 0.5rem;
}

.s1d3-mb-2 {
  margin-bottom: 1.0rem;
}

.s1d3-mb-3 {
  margin-bottom: 1.5rem;
}

.s1d3-mt-2 {
  margin-top: 1.0rem;
}

.s1d3-fw-bold {
  font-weight: 700;
}

.s1d3-text-primary {
  color: var(--s1d3-primary);
}

.s1d3-text-green {
  color: var(--s1d3-green);
}

.s1d3-text-accent {
  color: var(--s1d3-accent);
}

/* ===== Badge ===== */
.s1d3-badge {
  display: inline-block;
  background: var(--s1d3-green-dark);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 1.0rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== RTP Table ===== */
.s1d3-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--s1d3-border);
  font-size: 1.3rem;
}

.s1d3-rtp-name {
  color: var(--s1d3-text-light);
  flex: 1;
}

.s1d3-rtp-value {
  color: var(--s1d3-green);
  font-weight: 700;
  min-width: 5.0rem;
  text-align: right;
}

.s1d3-rtp-bar {
  flex: 0 0 8.0rem;
  height: 0.6rem;
  background: var(--s1d3-bg-dark);
  border-radius: 0.3rem;
  margin: 0 0.8rem;
  overflow: hidden;
}

.s1d3-rtp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--s1d3-green-dark), var(--s1d3-green));
  border-radius: 0.3rem;
}

/* ===== H1 Styling ===== */
.s1d3-h1-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 1.5rem 0 1.0rem;
  color: var(--s1d3-primary);
  text-align: center;
}

/* ===== Internal Links ===== */
.s1d3-internal-link {
  color: var(--s1d3-green-light);
  text-decoration: underline;
  font-weight: 500;
}

.s1d3-internal-link:hover {
  color: var(--s1d3-green);
}

/* ===== Affiliate Text Link ===== */
.s1d3-affiliate-link {
  color: var(--s1d3-primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--s1d3-transition);
}

.s1d3-affiliate-link:hover {
  color: var(--s1d3-accent);
  text-decoration: underline;
}
