/* ============================================================
   RegencyCasino – Custom CSS
   Theme: Crown Prestige – Deep Navy + Antique Gold
   ============================================================ */

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

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

body {
  min-height: 100vh;
  background-color: #0a0e1a;
  color: #f1f5f9;
  font-family: Inter, system-ui, sans-serif;
}

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

/* ── Gold shadow utility ─────────────────────────── */
.shadow-gold {
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.3), 0 4px 24px rgba(0,0,0,0.5);
}

/* ── Velvet SVG background pattern ──────────────── */
.velvet-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Navbar ──────────────────────────────────────── */
.site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #c9a227;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* ── CTA Buttons ─────────────────────────────────── */
.cta-btn,
.cta-primary-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-primary-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.45);
}

/* ── Hero Section ────────────────────────────────── */
.hero-section {
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* ── Bonus Badge ─────────────────────────────────── */
.bonus-badge {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,162,39,0.4), 0 0 40px rgba(201,162,39,0.1); }
  50%       { box-shadow: 0 0 40px rgba(201,162,39,0.7), 0 0 80px rgba(201,162,39,0.25); }
}

/* ── Game Cards ──────────────────────────────────── */
.game-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* ── Review Blocks ───────────────────────────────── */
.review-block {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-block:hover {
  transform: translateY(-4px);
}

/* ── Step Cards ──────────────────────────────────── */
.step-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(201,162,39,0.2);
}

.step-badge {
  background: linear-gradient(135deg, #c9a227, #e8c84a);
  box-shadow: 0 4px 15px rgba(201,162,39,0.5);
}

/* ── Promo Cards ─────────────────────────────────── */
.promo-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* ── Marquee Animation ───────────────────────────── */
.marquee-track {
  display: inline-block;
  animation: marquee-scroll 30s linear infinite;
  padding-left: 100%;
}

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

/* ── Provider Word Cloud ─────────────────────────── */
.provider-tag {
  display: inline-block;
  color: #c9a227;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

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

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

.faq-item:has(.faq-answer:not(.hidden)) {
  border-color: #c9a227;
}

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

.faq-icon {
  flex-shrink: 0;
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}

/* ── Tables (overflow scrollable) ────────────────── */
.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

.table-scroll table {
  min-width: 680px;
}

.table-scroll th,
.table-scroll td {
  white-space: nowrap;
  word-break: normal;
}

.payments-table th,
.payments-table td {
  padding: 0.75rem 1rem;
}

@media (max-width: 640px) {
  .payments-table {
    font-size: 0.8125rem;
  }

  .payments-table th,
  .payments-table td {
    padding: 0.625rem 0.75rem;
  }
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(21, 28, 56, 0.8);
}

/* ── Prose Styling ───────────────────────────────── */
.prose-casino {
  color: #cbd5e1;
  line-height: 1.8;
  max-width: none;
}

.prose-casino h1 {
  font-family: Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #f5e6a3;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose-casino h2 {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #e8c84a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.prose-casino h3 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #c9a227;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

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

.prose-casino a {
  color: #c9a227;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

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

.prose-casino ul, .prose-casino ol {
  margin: 1rem 0 1rem 1.5rem;
  color: #cbd5e1;
}

.prose-casino ul { list-style-type: disc; }
.prose-casino ol { list-style-type: decimal; }

.prose-casino li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

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

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

.prose-casino code {
  background: rgba(201, 162, 39, 0.1);
  color: #f5e6a3;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #0f1428;
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  margin: 2rem 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-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.prose-casino th {
  background: #151c38;
  color: #e8c84a;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(201,162,39,0.4);
}

.prose-casino td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(21,28,56,0.8);
  color: #cbd5e1;
}

.prose-casino tr:hover td {
  background: rgba(15, 20, 40, 0.5);
}

/* ── Responsive Breakpoints ──────────────────────── */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.75rem; }
  .prose-casino h2 { font-size: 1.4rem; }
  .prose-casino h3 { font-size: 1.1rem; }

  .bonus-badge { width: 100%; }
}

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

/* ── Scrollbar Styling ───────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}

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

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

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

/* ── Utility Animations ──────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

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

.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(201,162,39,0.15) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}
