/*
 * RegencyCasino – Custom CSS
 * Royal Heritage theme: gold, crimson, dark palace
 */

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

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

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

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

p, li, td, th, span, a {
  word-break: break-word;
}

/* ============================================================
   PROSE / CONTENT STYLES
============================================================ */
.prose-casino {
  color: #d1d5db;
  max-width: none;
  line-height: 1.75;
}

.prose-casino h1 {
  color: #fbbf24;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: Georgia, Cambria, serif;
}

.prose-casino h2 {
  color: #fcd34d;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, Cambria, serif;
}

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

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

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

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

.prose-casino ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

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

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

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

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

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

.prose-casino hr {
  border-color: #b45309;
  margin: 2rem 0;
}

/* Prose table scroll container */
.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 table base */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5em 0;
}

.prose-casino thead tr {
  background-color: rgba(180, 83, 9, 0.3);
}

.prose-casino thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #fcd34d;
  font-weight: 600;
  border: 1px solid rgba(180, 83, 9, 0.4);
}

.prose-casino tbody td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(180, 83, 9, 0.2);
  color: #d1d5db;
}

.prose-casino tbody tr:nth-child(even) {
  background-color: rgba(15, 15, 30, 0.5);
}

.prose-casino tbody tr:hover {
  background-color: rgba(251, 191, 36, 0.05);
}

/* overflow-x wrapper for all tables */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(251, 191, 36, 0.04) 20px,
      rgba(251, 191, 36, 0.04) 40px
    );
}

/* Parallax background via CSS attachment (hero) */
@media (prefers-reduced-motion: no-preference) {
  .parallax-hero {
    background-attachment: fixed;
  }
}

/* Scroll dot animation */
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

.animate-scroll-dot {
  animation: scrollDot 1.4s ease-in-out infinite;
}

/* ============================================================
   PALACE BACKGROUND PATTERN
============================================================ */
.palace-bg-pattern {
  background-image:
    radial-gradient(ellipse at 25% 25%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(190, 18, 60, 0.06) 0%, transparent 50%);
}

.steps-bg-pattern {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(251, 191, 36, 0.03) 30px,
      rgba(251, 191, 36, 0.03) 60px
    );
}

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

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

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

.review-block:hover {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.08);
}

/* ============================================================
   STEPS / GUIDE
============================================================ */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.step-badge {
  position: relative;
}

.step-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.3);
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.15); opacity: 0.4; }
}

/* ============================================================
   GAME CARDS / MARQUEE
============================================================ */
.games-marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.games-marquee {
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

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

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

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

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.15);
}

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

.provider-tag {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fde68a;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: default;
  display: inline-block;
}

.provider-tag:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.5);
  transform: scale(1.05);
}

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

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.08);
}

.faq-answer {
  border-top: 1px solid rgba(180, 83, 9, 0.2);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* ============================================================
   NAVBAR / HEADER
============================================================ */
#site-header {
  background-color: rgba(13, 13, 26, 0.95);
}

/* Burger button always visible */
#burger-btn {
  background-color: #1a1a2e;
  border-color: rgba(180, 83, 9, 0.5);
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============================================================
   PAYMENT TABLE
============================================================ */
.payment-table-wrapper {
  border-radius: 1rem;
  overflow: hidden;
}

/* ============================================================
   CTA BUTTON GLOW
============================================================ */
.cta-glow {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.2);
}

.cta-glow:hover {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.3);
}

/* ============================================================
   GOLD DIVIDER
============================================================ */
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #b45309, transparent);
  margin: 2rem 0;
}

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

::-webkit-scrollbar-track {
  background: #0d0d1a;
}

::-webkit-scrollbar-thumb {
  background: #b45309;
  border-radius: 4px;
}

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

/* ============================================================
   UTILITY OVERRIDES
============================================================ */
.max-w-container {
  max-width: 1440px;
}

/* Text contrast enforcement */
.bg-gold-500, .bg-gold-400, .bg-gold-600 {
  color: #1a1a2e;
}

/* Smooth transitions globally */
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
  .games-marquee {
    animation-duration: 20s;
  }

  table {
    font-size: 0.8rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
