/* ================================================================
   RegencyCasino – custom.css
   Northern Prestige theme: icy sapphire, gold, aurora, deep navy
   ================================================================ */

/* ----------------------------------------------------------------
   GLOBAL RESET & BASE
   ---------------------------------------------------------------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  word-break: break-word;
}

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

body {
  background-color: #050d1a;
  color: #e8edf5;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  word-break: break-word;
}

/* ----------------------------------------------------------------
   TYPOGRAPHY SCALE
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  word-break: break-word;
}

a {
  transition: color 0.2s ease;
}

/* ----------------------------------------------------------------
   CONTAINER
   ---------------------------------------------------------------- */
.max-w-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-parallax {
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.1s linear;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(5, 13, 26, 0.85) 0%,
    rgba(10, 22, 40, 0.75) 50%,
    rgba(26, 107, 204, 0.25) 100%
  );
}

/* Aurora shimmer animation */
.aurora-shimmer {
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(94, 207, 207, 0.06) 30%,
    rgba(201, 162, 39, 0.06) 60%,
    transparent 100%
  );
  background-size: 300% 300%;
  animation: auroraMove 12s ease infinite;
}

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

/* ----------------------------------------------------------------
   BONUS BADGE
   ---------------------------------------------------------------- */
.bonus-badge {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 40px rgba(201, 162, 39, 0.30),
    0 0 80px rgba(26, 107, 204, 0.20),
    inset 0 0 30px rgba(201, 162, 39, 0.05);
  animation: pulseBadge 3s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 40px rgba(201, 162, 39, 0.30), 0 0 80px rgba(26, 107, 204, 0.20); }
  50%       { box-shadow: 0 0 60px rgba(201, 162, 39, 0.55), 0 0 120px rgba(26, 107, 204, 0.35); }
}

/* ----------------------------------------------------------------
   CTA BUTTONS
   ---------------------------------------------------------------- */
.cta-primary {
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(201, 162, 39, 0.55);
}

.cta-secondary {
  transform: translateY(0);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.cta-secondary:hover {
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   MARQUEE / SCROLLING GAME STRIP
   ---------------------------------------------------------------- */
.marquee-wrapper {
  position: relative;
}

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

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

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

/* ----------------------------------------------------------------
   GAME CARDS
   ---------------------------------------------------------------- */
.game-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.25);
}

/* ----------------------------------------------------------------
   STEP CARDS
   ---------------------------------------------------------------- */
.step-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26, 107, 204, 0.30);
}

.step-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #c9a227, #e6c055);
  color: #050d1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  font-family: Georgia, serif;
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.55);
  z-index: 10;
}

/* ----------------------------------------------------------------
   PROMO CARDS
   ---------------------------------------------------------------- */
.promo-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.20);
}

.promo-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 107, 204, 0.15);
  border: 1px solid rgba(26, 107, 204, 0.30);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------------------------
   PROVIDER WORD CLOUD
   ---------------------------------------------------------------- */
.provider-cloud {
  line-height: 1.7;
}

.provider-tag {
  display: inline-block;
  color: #e8edf5;
  font-weight: 600;
  font-family: Georgia, serif;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  padding: 2px 4px;
}

.provider-tag:nth-child(odd)  { color: #c9a227; }
.provider-tag:nth-child(even) { color: #3a8fe8; }
.provider-tag:nth-child(3n)   { color: #5ecfcf; }

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

/* ----------------------------------------------------------------
   FAQ ACCORDION
   ---------------------------------------------------------------- */
.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(26, 107, 204, 0.20);
}

.faq-question {
  cursor: pointer;
  background: transparent;
  border: none;
}

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

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

/* ----------------------------------------------------------------
   PARALLAX SCROLL
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-parallax {
    transition: transform 0.05s linear;
  }
}

/* ----------------------------------------------------------------
   PROSE CASINO (single pages / review blocks)
   ---------------------------------------------------------------- */
.prose-casino {
  color: #8fa3bf;
  line-height: 1.75;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #e6c055;
  font-family: Georgia, serif;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose-casino p {
  margin-bottom: 1em;
  color: #8fa3bf;
}

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

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

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

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

.prose-casino strong {
  color: #e6c055;
}

.prose-casino blockquote {
  border-left: 3px solid #c9a227;
  padding-left: 1em;
  margin-left: 0;
  color: #8fa3bf;
  font-style: italic;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #8fa3bf;
}

.prose-casino table thead tr {
  background-color: #1a3058;
  color: #e8edf5;
}

.prose-casino table th,
.prose-casino table td {
  padding: 0.6em 0.9em;
  border: 1px solid #1a3058;
  text-align: left;
}

.prose-casino table tbody tr:nth-child(even) {
  background-color: rgba(26, 48, 88, 0.3);
}

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

/* ----------------------------------------------------------------
   HEADER / NAVBAR
   ---------------------------------------------------------------- */
#site-header {
  backdrop-filter: blur(8px);
  background-color: rgba(10, 22, 40, 0.97);
}

/* Burger animation when open */
#burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
#burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----------------------------------------------------------------
   TABLES – Global overflow protection
   ---------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  word-break: normal;
  overflow-wrap: break-word;
}

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

/* ----------------------------------------------------------------
   SCROLLBAR STYLING
   ---------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #1a6bcc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a8fe8;
}

/* ----------------------------------------------------------------
   UTILITY ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.shimmer {
  background: linear-gradient(90deg, #0f2040 25%, #1a3058 50%, #0f2040 75%);
  background-size: 800px 100%;
  animation: shimmer 2s infinite;
}

/* ----------------------------------------------------------------
   RESPONSIVE HELPERS
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }

  .step-badge {
    top: -16px;
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .marquee-track {
    animation-duration: 20s;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .bonus-badge {
    padding: 1.25rem;
  }

  .promo-icon {
    width: 44px;
    height: 44px;
  }
}

/* ----------------------------------------------------------------
   GOLD DIVIDER
   ---------------------------------------------------------------- */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a227, #5ecfcf, #c9a227, transparent);
  border: none;
  margin: 2rem 0;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer a {
  transition: color 0.2s ease;
}
