/* ============================================
   Daler Casino – Custom CSS & Animations
   Deep Navy + Champagne Gold Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy-900: #0a0e1a;
  --navy-800: #0f1528;
  --navy-700: #151d38;
  --navy-600: #1c2847;
  --gold-300: #f5e6b0;
  --gold-400: #e8c84a;
  --gold-500: #d4a017;
  --gold-600: #b8860b;
  --champagne: #f7e7ce;
  --velvet: #1a0a2e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy-900);
  color: var(--champagne);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ---------- Gold Gradient Text ---------- */
.text-gold-gradient-text {
  background: linear-gradient(135deg, #d4a017 0%, #f5e6b0 50%, #d4a017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- CTA Buttons ---------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4a017 0%, #f5e6b0 50%, #d4a017 100%);
  color: #0a0e1a;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.35);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.55);
  filter: brightness(1.1);
}

.cta-primary:active {
  transform: translateY(0) scale(0.99);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 2px solid var(--gold-500);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.cta-secondary:hover {
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.2);
}

/* ---------- Nav Links ---------- */
.nav-link {
  color: rgba(247, 231, 206, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--gold-400);
  background: rgba(212, 160, 23, 0.08);
}

.nav-link.active {
  color: var(--gold-400);
}

.mobile-nav-link {
  display: block;
  color: rgba(247, 231, 206, 0.80);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--gold-400);
  background: rgba(212, 160, 23, 0.08);
}

/* ---------- Burger Menu Bars ---------- */
.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Footer Links ---------- */
.footer-link {
  color: rgba(247, 231, 206, 0.60);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-400);
}

/* ---------- Section Titles ---------- */
.section-title {
  text-align: center;
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #d4a017 0%, #f5e6b0 60%, #d4a017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: rgba(247, 231, 206, 0.55);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Bonus Badge ---------- */
.bonus-badge {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.12) 0%, rgba(245, 230, 176, 0.06) 100%);
  border: 1.5px solid rgba(212, 160, 23, 0.5);
  border-radius: 1rem;
  padding: 1.25rem 2rem;
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.15), inset 0 1px 0 rgba(245, 230, 176, 0.1);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(212, 160, 23, 0.15), inset 0 1px 0 rgba(245, 230, 176, 0.1); }
  50% { box-shadow: 0 0 60px rgba(212, 160, 23, 0.35), inset 0 1px 0 rgba(245, 230, 176, 0.15); }
}

/* ---------- Review Cards ---------- */
.review-card {
  background: linear-gradient(180deg, #151d38 0%, #0a0e1a 100%);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.review-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  transform: translateY(-3px);
}

.review-card-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

/* ---------- Provider Word Cloud ---------- */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.provider-tag {
  color: var(--gold-300);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
  cursor: default;
  font-family: Georgia, serif;
  line-height: 1.3;
}

.provider-tag:hover {
  opacity: 1;
  color: var(--gold-400);
}

/* ---------- Game Cards (Marquee) ---------- */
.game-card {
  width: 220px;
  background: linear-gradient(180deg, #151d38 0%, #0a0e1a 100%);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.game-card:hover {
  border-color: rgba(212, 160, 23, 0.5);
  transform: translateY(-4px);
}

.game-img-wrap {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: var(--navy-700);
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-img {
  transform: scale(1.06);
}

.game-info {
  padding: 0.875rem;
  text-align: center;
}

.game-title {
  display: block;
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

/* ---------- Marquee Animation ---------- */
.marquee-track {
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Promo Cards ---------- */
.promo-card {
  background: linear-gradient(180deg, #151d38 0%, #0a0e1a 100%);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-card:hover {
  border-color: rgba(212, 160, 23, 0.45);
  transform: translateY(-4px);
}

.promo-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.1);
  border: 1.5px solid rgba(212, 160, 23, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover .promo-icon-wrap {
  background: rgba(212, 160, 23, 0.18);
  border-color: rgba(212, 160, 23, 0.55);
}

.promo-title {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 0.75rem;
}

.promo-text {
  color: rgba(247, 231, 206, 0.65);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}

/* ---------- Step Cards ---------- */
.step-card {
  background: linear-gradient(180deg, #151d38 0%, #0a0e1a 100%);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.step-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  transform: translateY(-4px);
}

.step-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a017 0%, #f5e6b0 100%);
  color: #0a0e1a;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
}

.step-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem auto 1rem;
}

.step-title {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 0.6rem;
}

.step-text {
  color: rgba(247, 231, 206, 0.65);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(180deg, #151d38 0%, #0a0e1a 100%);
  transition: border-color 0.25s ease;
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(212, 160, 23, 0.4);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.1rem 1.25rem;
  color: var(--gold-300);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--gold-400);
}

.faq-icon {
  font-size: 0.5rem;
  color: var(--gold-500);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  color: rgba(247, 231, 206, 0.70);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- Sparkle SVG ---------- */
.sparkle-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.sparkle {
  animation: sparkle-twinkle 4s ease-in-out infinite;
}

.sparkle:nth-child(2) { animation-delay: 0.5s; }
.sparkle:nth-child(3) { animation-delay: 1s; }
.sparkle:nth-child(4) { animation-delay: 1.5s; }
.sparkle:nth-child(5) { animation-delay: 2s; }
.sparkle:nth-child(6) { animation-delay: 2.5s; }
.sparkle:nth-child(7) { animation-delay: 3s; }
.sparkle:nth-child(8) { animation-delay: 3.5s; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.2; r: 1; }
  50% { opacity: 1; r: 2.5; }
}

/* ---------- Parallax Hero ---------- */
#hero {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
}

/* ---------- Table Styles ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  color: var(--champagne);
}

thead tr {
  background-color: var(--navy-600);
}

thead th {
  color: var(--gold-300);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

tbody td {
  padding: 0.75rem 1rem;
  color: rgba(247, 231, 206, 0.75);
}

tbody tr:hover {
  background-color: rgba(21, 29, 56, 0.5);
}

/* ---------- Prose Styling ---------- */
.prose-casino {
  color: rgba(247, 231, 206, 0.80);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 80ch;
  margin: 0 auto;
}

.prose-casino h1 {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, #d4a017 0%, #f5e6b0 60%, #d4a017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose-casino h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--gold-300);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

.prose-casino h3 {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-400);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.prose-casino p {
  margin-bottom: 1.25rem;
  color: rgba(247, 231, 206, 0.75);
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-casino li {
  margin-bottom: 0.5rem;
  color: rgba(247, 231, 206, 0.75);
}

.prose-casino ul li::marker {
  color: var(--gold-500);
}

.prose-casino ol li::marker {
  color: var(--gold-500);
}

.prose-casino a {
  color: var(--gold-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose-casino a:hover {
  color: var(--gold-300);
}

.prose-casino strong {
  color: var(--gold-300);
  font-weight: 600;
}

.prose-casino blockquote {
  border-left: 3px solid var(--gold-500);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(212, 160, 23, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
  color: rgba(247, 231, 206, 0.70);
  font-style: italic;
}

.prose-casino table {
  font-size: 0.9rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.2);
}

.prose-casino thead th {
  background: var(--navy-600);
  color: var(--gold-300);
}

.prose-casino code {
  background: rgba(212, 160, 23, 0.1);
  color: var(--gold-300);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 640px) {
  .bonus-badge {
    padding: 1rem 1.25rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 160, 23, 0.65);
}

/* ---------- Focus & Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: var(--champagne);
}
