/* =============================================================
   FLucky Casino – Custom CSS
   Royal Fortune UK Theme: Deep Sapphire + Antique Gold
   ============================================================= */

/* -------------------------------------------------------
   BASE RESETS & ROOT
------------------------------------------------------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
  word-break: break-word;
}

body {
  background-color: #0a0518;
  color: #f3f4f6;
  font-family: Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* -------------------------------------------------------
   TYPOGRAPHY & PROSE
------------------------------------------------------- */
.prose-casino {
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #fbbf24;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.75em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1.25em;
  color: #d1d5db;
}

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

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

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

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.4em;
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.4em;
}

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

.prose-casino em {
  color: #93c5fd;
  font-style: italic;
}

.prose-casino blockquote {
  border-left: 4px solid #f59e0b;
  padding-left: 1rem;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #1e3a5f;
  margin: 2em 0;
}

/* Prose table scroll wrapper */
.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;
}

/* Prose tables */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #d1d5db;
}

.prose-casino table thead tr {
  background-color: #0c237e;
}

.prose-casino table thead th {
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 700;
  color: #fbbf24;
  border: 1px solid #1e3a5f;
}

.prose-casino table tbody td {
  padding: 0.6rem 0.9rem;
  border: 1px solid #1e3a5f;
}

.prose-casino table tbody tr:nth-child(even) {
  background-color: rgba(7, 14, 51, 0.4);
}

.prose-casino table tbody tr:hover {
  background-color: rgba(13, 31, 92, 0.5);
}

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

::-webkit-scrollbar-track {
  background: #070e33;
}

::-webkit-scrollbar-thumb {
  background: #1a47e0;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}

/* -------------------------------------------------------
   HERO SECTION
------------------------------------------------------- */
.hero-section {
  position: relative;
}

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

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 60px rgba(251, 191, 36, 0.15); }
  50%       { box-shadow: 0 0 35px rgba(251, 191, 36, 0.7), 0 0 80px rgba(251, 191, 36, 0.25); }
}

/* CTA buttons glow pulse */
.cta-primary {
  animation: ctaGlow 2.5s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 6px 30px rgba(245, 158, 11, 0.35); }
  50%       { box-shadow: 0 6px 50px rgba(245, 158, 11, 0.65); }
}

/* -------------------------------------------------------
   MARQUEE / SCROLLING TICKER
------------------------------------------------------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

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

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

/* -------------------------------------------------------
   GAME CARDS
------------------------------------------------------- */
.game-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  box-shadow: 0 8px 35px rgba(251, 191, 36, 0.25);
}

/* -------------------------------------------------------
   PROVIDER WORD CLOUD
------------------------------------------------------- */
.provider-cloud {
  align-content: flex-start;
}

.provider-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(13, 31, 92, 0.6), rgba(26, 71, 224, 0.3));
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
  white-space: nowrap;
}

.provider-tag:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
  border-color: #fbbf24;
  color: #fbbf24;
}

.provider-tag--lg {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.provider-tag--sm {
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  opacity: 0.8;
}

/* -------------------------------------------------------
   PROMO CARDS
------------------------------------------------------- */
.promo-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.2);
}

/* -------------------------------------------------------
   STEP CARDS
------------------------------------------------------- */
.step-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.step-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #0a0518;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.5);
  border: 2px solid #fde68a;
  z-index: 2;
}

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

.faq-item:hover {
  border-color: rgba(251, 191, 36, 0.4);
}

.faq-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-trigger:hover span {
  color: #fbbf24;
}

.faq-answer {
  animation: fadeIn 0.25s ease;
}

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

/* -------------------------------------------------------
   STICKY HEADER
------------------------------------------------------- */
#site-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(7, 14, 51, 0.97);
}

/* Burger open state line transforms */
#burger-btn.burger-open .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#burger-btn.burger-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#burger-btn.burger-open .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* -------------------------------------------------------
   SVG BACKGROUND PATTERNS (Royal velvet texture)
------------------------------------------------------- */
.velvet-bg {
  background-color: #1a0a2e;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(29, 71, 224, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

/* -------------------------------------------------------
   PARALLAX UTILITY
   (CSS-only parallax via background-attachment: fixed)
------------------------------------------------------- */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

/* -------------------------------------------------------
   RADIANT LIGHT BURST DECORATION
------------------------------------------------------- */
.light-burst {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: burstFloat 8s ease-in-out infinite alternate;
}

.light-burst--gold {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, transparent 70%);
  width: 400px;
  height: 400px;
}

.light-burst--sapphire {
  background: radial-gradient(circle, rgba(61, 110, 247, 0.18) 0%, transparent 70%);
  width: 350px;
  height: 350px;
}

@keyframes burstFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, -30px) scale(1.08); }
  100% { transform: translate(-15px, 20px) scale(0.95); }
}

/* -------------------------------------------------------
   RESPONSIVE UTILITIES
------------------------------------------------------- */
@media (max-width: 640px) {
  .bonus-badge {
    padding: 1.25rem;
  }

  .step-badge {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

/* -------------------------------------------------------
   TABLE OVERFLOW GLOBAL
------------------------------------------------------- */
table {
  max-width: 100%;
}

.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
