/* =============================================
   ZlatoBet Casino – Custom Styles
   Royal Gold & Crimson Theme
   ============================================= */

/* Base Reset & Overflow */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0d0b08;
  color: #f3f4f6;
}

/* ---- Royal Pattern Background ---- */
.royal-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(212, 175, 55, 0.04) 10px,
      rgba(212, 175, 55, 0.04) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(180, 30, 50, 0.03) 10px,
      rgba(180, 30, 50, 0.03) 20px
    );
}

/* ---- Container Max Width ---- */
.max-w-8xl {
  max-width: 1440px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  min-height: 100vh;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center top,
    rgba(212, 175, 55, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

/* Bonus Badge Glow Animation */
@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.1);
  }
  50% {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.5), 0 0 70px rgba(212, 175, 55, 0.2);
  }
}

.bonus-badge-box {
  animation: badgeGlow 3s ease-in-out infinite;
}

/* =============================================
   NAVIGATION
   ============================================= */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(13, 11, 8, 0.95);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 80%;
}

/* =============================================
   CTA BUTTONS
   ============================================= */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

/* =============================================
   PROMO CARDS
   ============================================= */
.promo-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* =============================================
   GAME CARDS & MARQUEE
   ============================================= */
.games-marquee-wrapper {
  position: relative;
  cursor: grab;
}

.games-marquee-wrapper:active {
  cursor: grabbing;
}

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

.games-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

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

.game-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.15);
}

/* =============================================
   STEP CARDS
   ============================================= */
.step-card {
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

/* =============================================
   REVIEW BLOCKS
   ============================================= */
.review-block {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-block:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* =============================================
   PROVIDERS WORD CLOUD
   ============================================= */
.providers-cloud {
  line-height: 2;
}

.provider-tag {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  color: #fbbf24 !important;
  transform: scale(1.08);
}

/* =============================================
   FAQ
   ============================================= */
.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.faq-answer {
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   TABLES — Scrollable on Mobile
   ============================================= */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

table {
  border-collapse: collapse;
  width: 100%;
}

thead th {
  white-space: nowrap;
}

/* =============================================
   PROSE — CASINO STYLED
   ============================================= */
.prose-casino {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
  font-family: Georgia, serif;
  margin-bottom: 1rem;
  margin-top: 1rem;
  line-height: 1.2;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f59e0b;
  font-family: Georgia, serif;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.prose-casino h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fcd34d;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.prose-casino h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fde68a;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.prose-casino p {
  margin-bottom: 1rem;
  color: #d1d5db;
}

.prose-casino a {
  color: #fbbf24;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #fde68a;
}

.prose-casino ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.prose-casino ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose-casino ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-size: 0.6rem;
  top: 0.35rem;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-casino ol li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose-casino blockquote {
  border-left: 3px solid #f59e0b;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #9ca3af;
  font-style: italic;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
}

.prose-casino strong {
  color: #fde68a;
  font-weight: 700;
}

.prose-casino em {
  color: #fbbf24;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin: 2rem 0;
}

.prose-casino code {
  background: rgba(212, 175, 55, 0.1);
  color: #fde68a;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: monospace;
}

.prose-casino pre {
  background: #1a1610;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose-casino pre code {
  background: none;
  padding: 0;
  color: #d1d5db;
}

/* Prose Tables */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.prose-casino thead th {
  background: #2a2520;
  color: #fbbf24;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  white-space: nowrap;
}

.prose-casino tbody td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: #d1d5db;
  vertical-align: top;
}

.prose-casino tbody tr:hover td {
  background: rgba(42, 37, 32, 0.6);
}

.prose-casino tbody tr:last-child td {
  border-bottom: none;
}

/* Mandatory Prose Table Scroll Classes */
.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* =============================================
   PARALLAX EFFECT
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    background-attachment: fixed;
  }
}

/* Disable parallax on mobile for performance */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll !important;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    #f59e0b 0%,
    #fde68a 40%,
    #f59e0b 60%,
    #d97706 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}

.animate-pulse-gold {
  animation: pulseGold 2.5s ease-in-out infinite;
}

/* =============================================
   SCROLLBAR STYLING
   ============================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #1a1610;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */
@media (max-width: 640px) {
  .bonus-badge-box {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .game-card {
    width: 11rem;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: 100svh;
  }
}

/* =============================================
   UTILITY OVERRIDES
   ============================================= */
.text-balance {
  text-wrap: balance;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Selection styling */
::selection {
  background-color: rgba(212, 175, 55, 0.3);
  color: #fde68a;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}
