/**
 * JiliOK Core Design Stylesheet
 * All classes use "wd1db-" prefix for namespace isolation
 * Color palette: #0E1621 (bg) | #F0F0F0 (text) | #D4AF37 (accent) | #696969 | #95A5A6 | #36454F
 * Mobile-first: max-width 430px, rem units, root font 62.5%
 */

/* CSS Variables */
:root {
  --wd1db-primary: #D4AF37;
  --wd1db-bg: #0E1621;
  --wd1db-bg-light: #162232;
  --wd1db-bg-card: #1A2A3C;
  --wd1db-text: #F0F0F0;
  --wd1db-text-muted: #95A5A6;
  --wd1db-border: #36454F;
  --wd1db-gray: #696969;
  --wd1db-accent-hover: #E8C547;
  --wd1db-dark: #0A0F18;
  --wd1db-success: #2ECC71;
  --wd1db-danger: #E74C3C;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--wd1db-bg);
  color: var(--wd1db-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--wd1db-primary); text-decoration: none; }
a:hover { color: var(--wd1db-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === HEADER === */
.wd1db-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, var(--wd1db-dark) 0%, rgba(10,15,24,0.95) 100%);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  transition: all 0.3s ease;
}
.wd1db-header-scrolled {
  background: rgba(10,15,24,0.98);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.wd1db-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wd1db-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.wd1db-site-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--wd1db-primary);
  letter-spacing: 0.5px;
}
.wd1db-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wd1db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  min-height: 36px;
}
.wd1db-btn-register {
  background: linear-gradient(135deg, var(--wd1db-primary), #C49B2F);
  color: var(--wd1db-dark);
}
.wd1db-btn-register:hover {
  background: linear-gradient(135deg, var(--wd1db-accent-hover), var(--wd1db-primary));
  transform: translateY(-1px);
}
.wd1db-btn-login {
  background: transparent;
  color: var(--wd1db-primary);
  border: 1px solid var(--wd1db-primary);
}
.wd1db-btn-login:hover {
  background: rgba(212,175,55,0.1);
}
.wd1db-menu-toggle {
  background: none;
  border: none;
  color: var(--wd1db-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === MOBILE MENU === */
.wd1db-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--wd1db-dark);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.wd1db-menu-active { right: 0; }
.wd1db-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.wd1db-overlay-active { display: block; }
.wd1db-menu-close {
  background: none;
  border: none;
  color: var(--wd1db-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.wd1db-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wd1db-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wd1db-border);
}
.wd1db-menu-link {
  display: block;
  padding: 1.1rem 0;
  color: var(--wd1db-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(54,69,79,0.4);
  transition: color 0.2s;
}
.wd1db-menu-link:hover { color: var(--wd1db-primary); }

/* === CAROUSEL === */
.wd1db-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 52px;
  border-radius: 0 0 12px 12px;
}
.wd1db-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.wd1db-slide-active { display: block; }
.wd1db-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}
.wd1db-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.wd1db-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240,240,240,0.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.wd1db-dot-active {
  background: var(--wd1db-primary);
  width: 20px;
  border-radius: 4px;
}

/* === MAIN CONTENT === */
.wd1db-main {
  padding: 1.5rem 1.2rem;
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  .wd1db-main { padding-bottom: 80px; }
}

/* === SECTIONS === */
.wd1db-section {
  margin-bottom: 2.5rem;
}
.wd1db-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wd1db-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--wd1db-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wd1db-section-title i, .wd1db-section-title .material-icons {
  font-size: 2rem;
}
.wd1db-section-text {
  color: var(--wd1db-text-muted);
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* === GAME GRID === */
.wd1db-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wd1db-primary);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--wd1db-primary);
}
.wd1db-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.wd1db-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--wd1db-bg-card);
  border-radius: 10px;
  padding: 0.6rem 0.3rem;
  border: 1px solid transparent;
}
.wd1db-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--wd1db-primary);
}
.wd1db-game-card img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  object-fit: cover;
}
.wd1db-game-card span {
  font-size: 1.05rem;
  color: var(--wd1db-text);
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* === CONTENT CARDS === */
.wd1db-card {
  background: var(--wd1db-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(54,69,79,0.3);
}
.wd1db-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wd1db-primary);
  margin-bottom: 0.8rem;
}
.wd1db-card p {
  color: var(--wd1db-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

/* === PROMO BUTTON (inline) === */
.wd1db-promo-link {
  color: var(--wd1db-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.wd1db-promo-link:hover {
  color: var(--wd1db-accent-hover);
}
.wd1db-btn-promo {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--wd1db-primary), #C49B2F);
  color: var(--wd1db-dark);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  margin: 1.2rem 0;
  transition: all 0.25s;
}
.wd1db-btn-promo:hover {
  background: linear-gradient(135deg, var(--wd1db-accent-hover), var(--wd1db-primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

/* === PAYMENT METHODS === */
.wd1db-payment-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}
.wd1db-payment-item {
  background: var(--wd1db-bg-card);
  border: 1px solid var(--wd1db-border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  min-width: 100px;
}
.wd1db-payment-item i {
  font-size: 2.2rem;
  color: var(--wd1db-primary);
  margin-bottom: 0.3rem;
}
.wd1db-payment-item span {
  display: block;
  font-size: 1.15rem;
  color: var(--wd1db-text-muted);
}

/* === TESTIMONIALS === */
.wd1db-testimonial {
  background: var(--wd1db-bg-card);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--wd1db-primary);
}
.wd1db-testimonial-author {
  font-weight: 700;
  color: var(--wd1db-primary);
  font-size: 1.3rem;
}
.wd1db-testimonial-text {
  color: var(--wd1db-text-muted);
  font-size: 1.25rem;
  margin-top: 0.4rem;
  font-style: italic;
}

/* === WINNERS TABLE === */
.wd1db-winners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.wd1db-winners-table th {
  background: var(--wd1db-bg-card);
  color: var(--wd1db-primary);
  padding: 0.7rem;
  text-align: left;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--wd1db-primary);
}
.wd1db-winners-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(54,69,79,0.3);
  color: var(--wd1db-text-muted);
}
.wd1db-winners-table tr:hover td {
  background: rgba(212,175,55,0.05);
}

/* === FEATURES LIST === */
.wd1db-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.wd1db-feature-item {
  background: var(--wd1db-bg-card);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(54,69,79,0.3);
}
.wd1db-feature-item i, .wd1db-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--wd1db-primary);
  margin-bottom: 0.5rem;
}
.wd1db-feature-item h4 {
  font-size: 1.2rem;
  color: var(--wd1db-text);
  margin-bottom: 0.3rem;
}
.wd1db-feature-item p {
  font-size: 1.1rem;
  color: var(--wd1db-text-muted);
}

/* === FAQ === */
.wd1db-faq-item {
  background: var(--wd1db-bg-card);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  padding: 1.2rem;
  border-left: 3px solid var(--wd1db-primary);
}
.wd1db-faq-q {
  font-weight: 700;
  color: var(--wd1db-primary);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.wd1db-faq-a {
  color: var(--wd1db-text-muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

/* === APP DOWNLOAD === */
.wd1db-app-cta {
  background: linear-gradient(135deg, var(--wd1db-bg-card), var(--wd1db-bg-light));
  border-radius: 12px;
  padding: 1.8rem;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.2);
}
.wd1db-app-cta h3 {
  color: var(--wd1db-primary);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.wd1db-app-cta p {
  color: var(--wd1db-text-muted);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* === FOOTER === */
.wd1db-footer {
  background: var(--wd1db-dark);
  padding: 2rem 1.2rem;
  border-top: 1px solid rgba(212,175,55,0.15);
}
.wd1db-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.wd1db-footer-brand p {
  color: var(--wd1db-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}
.wd1db-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.wd1db-footer-link {
  padding: 0.5rem 1rem;
  background: var(--wd1db-bg-card);
  border-radius: 6px;
  color: var(--wd1db-text);
  font-size: 1.15rem;
  transition: all 0.2s;
}
.wd1db-footer-link:hover {
  background: var(--wd1db-primary);
  color: var(--wd1db-dark);
}
.wd1db-footer-copy {
  text-align: center;
  color: var(--wd1db-gray);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* === BOTTOM NAVIGATION === */
.wd1db-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--wd1db-dark);
  border-top: 1px solid rgba(212,175,55,0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
@media (min-width: 769px) {
  .wd1db-bottom-nav { display: none; }
  .wd1db-main { padding-bottom: 2rem; }
}
.wd1db-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wd1db-gray);
  transition: all 0.25s;
  padding: 0.3rem;
  border-radius: 8px;
  position: relative;
}
.wd1db-bottom-nav-btn:hover,
.wd1db-nav-active {
  color: var(--wd1db-primary);
  background: rgba(212,175,55,0.08);
}
.wd1db-bottom-nav-btn i,
.wd1db-bottom-nav-btn .material-icons,
.wd1db-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.wd1db-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 500;
}

/* === UTILITIES === */
.wd1db-text-center { text-align: center; }
.wd1db-mb-1 { margin-bottom: 0.5rem; }
.wd1db-mb-2 { margin-bottom: 1rem; }
.wd1db-mb-3 { margin-bottom: 1.5rem; }
.wd1db-mt-1 { margin-top: 0.5rem; }
.wd1db-mt-2 { margin-top: 1rem; }
.wd1db-gold { color: var(--wd1db-primary); }
.wd1db-muted { color: var(--wd1db-text-muted); }

/* === RESPONSIVE === */
@media (max-width: 360px) {
  .wd1db-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .wd1db-features-list { grid-template-columns: 1fr; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .wd1db-game-grid { grid-template-columns: repeat(5, 1fr); }
}
