/* ===========================================
   NationalPlay Casino — Custom CSS
   NationalPlay Prime Arena Theme
   =========================================== */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #010f0a;
  color: #ecfdf5;
}

/* ---- Container ---- */
.max-w-8xl {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Casino Color Variables ---- */
:root {
  --color-gold: #c9a84c;
  --color-gold-light: #e6c96b;
  --color-gold-dark: #a07830;
  --color-emerald-950: #022c22;
  --color-casino-bg: #010f0a;
  --color-casino-surface: #051a10;
  --color-casino-card: #0a2318;
  --color-casino-border: #1a4a2e;
}

/* ---- Bonus Glow ---- */
.bonus-glow {
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3), 0 0 60px rgba(201, 168, 76, 0.1);
  animation: bonusGlow 3s ease-in-out infinite;
}

@keyframes bonusGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(201, 168, 76, 0.3), 0 0 60px rgba(201, 168, 76, 0.1); }
  50% { box-shadow: 0 0 50px rgba(201, 168, 76, 0.5), 0 0 80px rgba(201, 168, 76, 0.2); }
}

/* ---- Hero Parallax ---- */
.hero-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* ---- Particles ---- */
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.6), transparent);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.particle-1 { width: 8px; height: 8px; top: 20%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle-2 { width: 5px; height: 5px; top: 60%; left: 80%; animation-delay: 1.5s; animation-duration: 9s; }
.particle-3 { width: 10px; height: 10px; top: 40%; left: 50%; animation-delay: 3s; animation-duration: 6s; }
.particle-4 { width: 6px; height: 6px; top: 80%; left: 30%; animation-delay: 4.5s; animation-duration: 8s; }
.particle-5 { width: 7px; height: 7px; top: 15%; left: 70%; animation-delay: 2s; animation-duration: 10s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  33% { transform: translateY(-20px) rotate(120deg); opacity: 1; }
  66% { transform: translateY(10px) rotate(240deg); opacity: 0.4; }
}

/* ---- Marquee Animation ---- */
.marquee-wrapper {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marquee 25s linear infinite;
  width: max-content;
}

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

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

/* ---- Game Cards ---- */
.game-card {
  cursor: pointer;
}

/* ---- Provider Tags ---- */
.provider-tag {
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.provider-tag:hover {
  transform: scale(1.05);
}

/* ---- CTA Buttons ---- */
.cta-primary {
  background: linear-gradient(135deg, #c9a84c, #e6c96b, #a07830);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Step Cards ---- */
.step-card {
  padding: 2rem 1.5rem;
  background: rgba(10, 35, 24, 0.6);
  border: 1px solid var(--color-casino-border);
  border-radius: 1.25rem;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ---- Promo Cards Hover ---- */
.promo-card:hover {
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

/* ---- FAQ Transition ---- */
.faq-answer {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ---- Prose Styling ---- */
.prose-casino {
  color: #a7f3d0;
  line-height: 1.75;
}

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

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

.prose-casino p {
  margin-bottom: 1em;
  color: #6ee7b7;
}

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

.prose-casino li {
  margin-bottom: 0.4em;
}

.prose-casino a {
  color: #c9a84c;
  text-decoration: underline;
}

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

.prose-casino strong {
  color: #e6c96b;
  font-weight: 600;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.prose-casino thead th {
  background: #0a2318;
  color: #c9a84c;
  padding: 0.75rem 1rem;
  border: 1px solid #1a4a2e;
  text-align: left;
}

.prose-casino tbody td {
  padding: 0.6rem 1rem;
  border: 1px solid #1a4a2e;
  color: #6ee7b7;
}

.prose-casino tbody tr:hover {
  background: rgba(10, 35, 24, 0.5);
}

.prose-casino blockquote {
  border-left: 3px solid #c9a84c;
  padding-left: 1rem;
  color: #6ee7b7;
  font-style: italic;
  margin: 1em 0;
}

.prose-casino code {
  background: #0a2318;
  color: #c9a84c;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.85em;
}

/* ---- Prose Table Scroll ---- */
.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;
}

/* ---- Tailwind Overrides for Casino Theme ---- */
.bg-casino-bg { background-color: #010f0a; }
.bg-casino-surface { background-color: #051a10; }
.bg-casino-card { background-color: #0a2318; }
.border-casino-border { border-color: #1a4a2e; }
.text-gold { color: #c9a84c; }
.text-gold-light { color: #e6c96b; }
.bg-gold { background-color: #c9a84c; }
.bg-gold-light { background-color: #e6c96b; }
.bg-gold-dark { background-color: #a07830; }

/* ---- Responsive Table ---- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .bonus-badge {
    font-size: 1.5rem;
  }
}

/* ---- Sticky Header Shadow ---- */
header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Championship SVG Pattern Overlay ---- */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(4, 120, 87, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}
