/**
 * 29jl Casino - Core CSS Stylesheet
 * Class prefix: sd36-
 * Colors: #DDA0DD (plum) | #D8BFD8 (thistle) | #34495E (dark blue-gray BG)
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Variables */
:root {
  --sd36-primary: #DDA0DD;
  --sd36-secondary: #D8BFD8;
  --sd36-bg: #34495E;
  --sd36-bg-dark: #2C3E50;
  --sd36-bg-light: #3D566E;
  --sd36-text: #F5F5F5;
  --sd36-text-muted: #BDC3C7;
  --sd36-accent: #DDA0DD;
  --sd36-accent-hover: #E8B8E8;
  --sd36-border: rgba(221, 160, 221, 0.3);
  --sd36-radius: 10px;
  --sd36-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  --sd36-transition: all 0.3s ease;
}

/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--sd36-bg);
  color: var(--sd36-text);
  line-height: 1.6;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sd36-accent);
  text-decoration: none;
  transition: var(--sd36-transition);
}

a:hover {
  color: var(--sd36-accent-hover);
  text-decoration: underline;
}

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

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

/* ==================== HEADER ==================== */
.sd36-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--sd36-bg-dark), var(--sd36-bg));
  border-bottom: 1px solid var(--sd36-border);
  height: 56px;
}

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

.sd36-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--sd36-primary);
  font-weight: 700;
  font-size: 1.6rem;
}

.sd36-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sd36-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sd36-btn-register,
.sd36-btn-login {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--sd36-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sd36-btn-register {
  background: linear-gradient(135deg, #DDA0DD, #C084C0);
  color: #1a1a2e;
}

.sd36-btn-register:hover {
  background: linear-gradient(135deg, #E8B8E8, #DDA0DD);
  transform: translateY(-1px);
}

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

.sd36-btn-login:hover {
  background: rgba(221, 160, 221, 0.15);
}

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

/* ==================== MOBILE MENU ==================== */
.sd36-menu-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: var(--sd36-transition);
}

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

.sd36-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--sd36-bg-dark);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem;
  overflow-y: auto;
}

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

.sd36-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--sd36-primary);
  font-size: 2.2rem;
  cursor: pointer;
}

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

.sd36-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--sd36-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--sd36-transition);
}

.sd36-menu-link:hover {
  color: var(--sd36-primary);
  padding-left: 8px;
  text-decoration: none;
}

/* ==================== CAROUSEL ==================== */
.sd36-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--sd36-radius);
  margin-top: 60px;
}

.sd36-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}

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

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

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

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

.sd36-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--sd36-transition);
}

.sd36-dot-active {
  background: var(--sd36-primary);
  transform: scale(1.3);
}

/* ==================== CONTENT SECTIONS ==================== */
main {
  padding-top: 0;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

.sd36-section {
  padding: 2rem 0;
}

.sd36-section-title {
  font-size: 1.8rem;
  color: var(--sd36-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sd36-border);
  font-weight: 700;
}

.sd36-section-subtitle {
  font-size: 1.4rem;
  color: var(--sd36-secondary);
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
}

.sd36-text {
  font-size: 1.4rem;
  color: var(--sd36-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

/* ==================== GAME GRID ==================== */
.sd36-category-title {
  font-size: 1.5rem;
  color: var(--sd36-primary);
  margin: 1.8rem 0 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sd36-category-title .material-symbols-outlined,
.sd36-category-title i {
  font-size: 2rem;
}

.sd36-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}

.sd36-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--sd36-transition);
  border-radius: 8px;
  padding: 4px;
}

.sd36-game-card:hover {
  background: rgba(221, 160, 221, 0.1);
  transform: translateY(-2px);
}

.sd36-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--sd36-border);
}

.sd36-game-name {
  font-size: 1rem;
  color: var(--sd36-text-muted);
  text-align: center;
  margin-top: 3px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ==================== BOTTOM NAVIGATION ==================== */
.sd36-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--sd36-bg-dark), #1a252f);
  border-top: 1px solid var(--sd36-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.sd36-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--sd36-text-muted);
  cursor: pointer;
  transition: var(--sd36-transition);
  border-radius: 8px;
  padding: 4px;
}

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

.sd36-nav-active {
  background: rgba(221, 160, 221, 0.12);
}

.sd36-bottom-nav-btn:active {
  transform: scale(0.92);
}

.sd36-bottom-nav-btn i,
.sd36-bottom-nav-btn .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.sd36-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.sd36-nav-label {
  font-size: 1rem;
  margin-top: 2px;
  font-weight: 500;
}

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

/* ==================== FOOTER ==================== */
.sd36-footer {
  background: var(--sd36-bg-dark);
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--sd36-border);
  margin-top: 2rem;
}

.sd36-footer-brand {
  font-size: 1.3rem;
  color: var(--sd36-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sd36-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.sd36-footer-link {
  padding: 6px 12px;
  background: rgba(221, 160, 221, 0.08);
  border: 1px solid var(--sd36-border);
  border-radius: 6px;
  color: var(--sd36-text-muted);
  font-size: 1.2rem;
  transition: var(--sd36-transition);
  text-decoration: none;
}

.sd36-footer-link:hover {
  background: rgba(221, 160, 221, 0.2);
  color: var(--sd36-primary);
  text-decoration: none;
}

.sd36-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== PROMO BUTTONS ==================== */
.sd36-promo-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #DDA0DD, #C084C0);
  color: #1a1a2e;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: var(--sd36-transition);
  text-align: center;
}

.sd36-promo-btn:hover {
  background: linear-gradient(135deg, #E8B8E8, #DDA0DD);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(221, 160, 221, 0.35);
  text-decoration: none;
  color: #1a1a2e;
}

.sd36-promo-text {
  color: var(--sd36-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--sd36-transition);
}

.sd36-promo-text:hover {
  color: var(--sd36-accent-hover);
}

/* ==================== CARD COMPONENTS ==================== */
.sd36-card {
  background: var(--sd36-bg-light);
  border-radius: var(--sd36-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--sd36-border);
}

.sd36-card-title {
  font-size: 1.5rem;
  color: var(--sd36-primary);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

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

.sd36-testimonial-name {
  font-size: 1.3rem;
  color: var(--sd36-primary);
  font-weight: 600;
}

.sd36-testimonial-text {
  font-size: 1.3rem;
  color: var(--sd36-text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ==================== WINNER LIST ==================== */
.sd36-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sd36-winner-game {
  flex: 1;
  font-size: 1.2rem;
  color: var(--sd36-text-muted);
}

.sd36-winner-amount {
  font-size: 1.3rem;
  color: var(--sd36-primary);
  font-weight: 700;
}

/* ==================== PAYMENT GRID ==================== */
.sd36-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}

.sd36-payment-item {
  background: rgba(221, 160, 221, 0.08);
  border: 1px solid var(--sd36-border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--sd36-text-muted);
}

/* ==================== FAQ ==================== */
.sd36-faq-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd36-faq-q {
  font-size: 1.4rem;
  color: var(--sd36-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.sd36-faq-a {
  font-size: 1.3rem;
  color: var(--sd36-text-muted);
  line-height: 1.5;
}

/* ==================== APP DOWNLOAD ==================== */
.sd36-app-cta {
  background: linear-gradient(135deg, rgba(221, 160, 221, 0.15), rgba(216, 191, 216, 0.08));
  border-radius: var(--sd36-radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--sd36-border);
}

.sd36-app-cta h3 {
  color: var(--sd36-primary);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

/* ==================== UTILITY ==================== */
.sd36-text-center { text-align: center; }
.sd36-mt-1 { margin-top: 1rem; }
.sd36-mt-2 { margin-top: 2rem; }
.sd36-mb-1 { margin-bottom: 1rem; }
.sd36-mb-2 { margin-bottom: 2rem; }
.sd36-hidden { display: none; }

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