/**
 * jljlboss Main Stylesheet - Warm golden tones on dark charcoal
 * All classes prefixed with wd580- for namespace isolation
 * Mobile-first design, max-width 430px
 * @version 1.0.0
 */

/* CSS Reset & Root Variables */
:root {
  --wd580-bg: #3A3A3A;
  --wd580-accent: #CD853F;
  --wd580-text: #FFEFD5;
  --wd580-secondary: #F4A460;
  --wd580-light: #F0F0F0;
  --wd580-highlight: #FFDEAD;
  --wd580-dark: #2A2A2A;
  --wd580-darker: #1E1E1E;
  --wd580-success: #4CAF50;
  --wd580-warning: #FF9800;
  --wd580-radius: 8px;
  --wd580-radius-lg: 12px;
  --wd580-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --wd580-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
  --wd580-transition: all 0.3s ease;
  --wd580-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 62.5%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--wd580-font);
  background-color: var(--wd580-bg);
  color: var(--wd580-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--wd580-secondary);
  text-decoration: none;
  transition: var(--wd580-transition);
}

a:hover {
  color: var(--wd580-highlight);
}

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

/* Wrapper & Container */
.wd580-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

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

/* ===== HEADER ===== */
.wd580-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--wd580-darker);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: var(--wd580-shadow);
  border-bottom: 1px solid rgba(205, 133, 63, 0.3);
}

.wd580-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wd580-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.wd580-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wd580-accent);
  letter-spacing: 0.5px;
}

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

.wd580-btn-register,
.wd580-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--wd580-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--wd580-transition);
  white-space: nowrap;
}

.wd580-btn-register {
  background: linear-gradient(135deg, var(--wd580-accent), var(--wd580-secondary));
  color: var(--wd580-darker);
}

.wd580-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(205, 133, 63, 0.5);
}

.wd580-btn-login {
  background: transparent;
  color: var(--wd580-text);
  border: 1px solid var(--wd580-accent);
}

.wd580-btn-login:hover {
  background: rgba(205, 133, 63, 0.15);
}

.wd580-menu-toggle {
  background: none;
  border: none;
  color: var(--wd580-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE MENU ===== */
.wd580-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--wd580-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
  border-left: 1px solid rgba(205, 133, 63, 0.3);
}

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

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

.wd580-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--wd580-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 239, 213, 0.1);
  transition: var(--wd580-transition);
}

.wd580-mobile-menu a:hover {
  color: var(--wd580-accent);
  padding-left: 0.5rem;
}

.wd580-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(--wd580-transition);
}

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

/* ===== CAROUSEL ===== */
.wd580-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--wd580-radius-lg);
  margin: 0.8rem 0;
  touch-action: pan-y;
}

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

.wd580-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

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

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

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

.wd580-dot-active {
  background: var(--wd580-accent);
  transform: scale(1.2);
}

/* ===== MAIN CONTENT ===== */
.wd580-main {
  padding-top: 60px;
  min-height: 100vh;
}

.wd580-section {
  padding: 1.5rem 1.2rem;
}

.wd580-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wd580-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(205, 133, 63, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wd580-section-title .material-icons {
  font-size: 2rem;
  color: var(--wd580-secondary);
}

/* ===== GAME GRID ===== */
.wd580-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wd580-highlight);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--wd580-accent);
}

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

.wd580-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--wd580-transition);
  border-radius: var(--wd580-radius);
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
}

.wd580-game-item:hover {
  background: rgba(205, 133, 63, 0.15);
  transform: translateY(-2px);
}

.wd580-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--wd580-radius);
  object-fit: cover;
  border: 1px solid rgba(205, 133, 63, 0.2);
}

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

/* ===== CONTENT BLOCKS ===== */
.wd580-card {
  background: var(--wd580-dark);
  border-radius: var(--wd580-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--wd580-shadow);
  border: 1px solid rgba(205, 133, 63, 0.15);
}

.wd580-card h2 {
  font-size: 1.7rem;
  color: var(--wd580-accent);
  margin-bottom: 0.8rem;
}

.wd580-card h3 {
  font-size: 1.4rem;
  color: var(--wd580-highlight);
  margin: 0.8rem 0 0.4rem;
}

.wd580-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--wd580-text);
  margin-bottom: 0.6rem;
}

.wd580-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.wd580-card li {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--wd580-text);
  margin-bottom: 0.3rem;
}

/* CTA Button */
.wd580-cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--wd580-accent), var(--wd580-secondary));
  color: var(--wd580-darker);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--wd580-transition);
  text-align: center;
  box-shadow: 0 4px 12px rgba(205, 133, 63, 0.4);
}

.wd580-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(205, 133, 63, 0.6);
}

.wd580-text-center {
  text-align: center;
}

/* Highlight Box */
.wd580-highlight-box {
  background: linear-gradient(135deg, rgba(205, 133, 63, 0.15), rgba(244, 164, 96, 0.1));
  border: 1px solid rgba(205, 133, 63, 0.3);
  border-radius: var(--wd580-radius-lg);
  padding: 1.2rem;
  margin: 1rem 0;
}

/* Promo Link Style */
.wd580-promo-link {
  color: var(--wd580-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: var(--wd580-transition);
}

.wd580-promo-link:hover {
  color: var(--wd580-highlight);
}

/* Winner List */
.wd580-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 239, 213, 0.08);
}

.wd580-winner-name {
  color: var(--wd580-highlight);
  font-weight: 600;
}

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

/* Feature Grid */
.wd580-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.wd580-feature-item {
  background: rgba(205, 133, 63, 0.08);
  border-radius: var(--wd580-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(205, 133, 63, 0.15);
}

.wd580-feature-item i,
.wd580-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--wd580-accent);
  margin-bottom: 0.5rem;
}

.wd580-feature-item span {
  display: block;
  font-size: 1.2rem;
  color: var(--wd580-text);
}

/* ===== FAQ Accordion ===== */
.wd580-faq-item {
  border: 1px solid rgba(205, 133, 63, 0.2);
  border-radius: var(--wd580-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: var(--wd580-dark);
}

.wd580-faq-question {
  padding: 1rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wd580-highlight);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--wd580-transition);
}

.wd580-faq-question:hover {
  background: rgba(205, 133, 63, 0.1);
}

.wd580-faq-answer {
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--wd580-text);
}

.wd580-faq-item.active .wd580-faq-answer {
  max-height: 500px;
  padding: 0 1.2rem 1rem;
}

.wd580-faq-item.active .wd580-faq-arrow {
  transform: rotate(180deg);
}

.wd580-faq-arrow {
  transition: transform 0.3s ease;
  color: var(--wd580-accent);
  font-size: 1.4rem;
}

/* ===== FOOTER ===== */
.wd580-footer {
  background: var(--wd580-darker);
  padding: 2rem 1.2rem 1rem;
  border-top: 1px solid rgba(205, 133, 63, 0.3);
  margin-top: 2rem;
}

.wd580-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.wd580-footer-brand p {
  font-size: 1.2rem;
  color: var(--wd580-text);
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.wd580-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.wd580-footer-links a {
  font-size: 1.1rem;
  color: var(--wd580-secondary);
  padding: 0.3rem 0.6rem;
  transition: var(--wd580-transition);
}

.wd580-footer-links a:hover {
  color: var(--wd580-highlight);
}

.wd580-footer-partners {
  text-align: center;
  margin-bottom: 1rem;
}

.wd580-footer-partners img {
  display: inline-block;
  height: 24px;
  margin: 0 0.3rem;
  opacity: 0.6;
  transition: var(--wd580-transition);
}

.wd580-footer-partners img:hover {
  opacity: 1;
}

.wd580-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--wd580-text);
  opacity: 0.5;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 239, 213, 0.1);
}

/* ===== BOTTOM NAVIGATION ===== */
.wd580-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: var(--wd580-darker);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid rgba(205, 133, 63, 0.3);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.wd580-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(--wd580-text);
  cursor: pointer;
  transition: var(--wd580-transition);
  opacity: 0.7;
  padding: 0.3rem;
}

.wd580-bottom-nav-btn:hover,
.wd580-bottom-nav-btn.wd580-nav-active {
  opacity: 1;
  color: var(--wd580-accent);
  transform: scale(1.08);
}

.wd580-bottom-nav-btn i,
.wd580-bottom-nav-btn .material-icons,
.wd580-bottom-nav-btn .bi {
  font-size: 2.2rem;
  margin-bottom: 0.1rem;
}

.wd580-bottom-nav-label {
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

/* ===== MOBILE PADDING ===== */
@media (max-width: 768px) {
  .wd580-main {
    padding-bottom: 80px;
  }
  .wd580-footer {
    padding-bottom: 5rem;
  }
}

/* ===== DESKTOP: Hide bottom nav ===== */
@media (min-width: 769px) {
  .wd580-bottom-nav {
    display: none;
  }
}

/* ===== PAYMENT ICONS ===== */
.wd580-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin: 0.8rem 0;
}

.wd580-payment-icon {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--wd580-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--wd580-highlight);
  border: 1px solid rgba(205, 133, 63, 0.2);
}

/* ===== TESTIMONIAL ===== */
.wd580-testimonial {
  background: rgba(205, 133, 63, 0.08);
  border-radius: var(--wd580-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--wd580-accent);
}

.wd580-testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--wd580-text);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.wd580-testimonial-author {
  font-size: 1.1rem;
  color: var(--wd580-accent);
  font-weight: 600;
}

/* ===== RTP TABLE ===== */
.wd580-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.wd580-rtp-table th {
  background: rgba(205, 133, 63, 0.2);
  color: var(--wd580-accent);
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}

.wd580-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255, 239, 213, 0.08);
  color: var(--wd580-text);
}

/* ===== UTILITY ===== */
.wd580-mt-1 { margin-top: 0.8rem; }
.wd580-mt-2 { margin-top: 1.6rem; }
.wd580-mb-1 { margin-bottom: 0.8rem; }
.wd580-mb-2 { margin-bottom: 1.6rem; }
.wd580-py-1 { padding-top: 0.8rem; padding-bottom: 0.8rem; }
.wd580-py-2 { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.wd580-hidden { display: none; }
