/* =============================================================
   RegencyCasino – Custom CSS
   Stahl Prestige Theme: graphite, antique gold, steel tones
   ============================================================= */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================================
   SCROLLABLE TABLES
   ============================================================= */

.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 STYLING
   ============================================================= */

.prose-casino {
  color: #c8ccd2;
  max-width: 75ch;
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #e8c44a;
  font-family: Georgia, Cambria, 'Times New Roman', serif;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  word-break: break-word;
}

.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: 1.25em;
  color: #c8ccd2;
}

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

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

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

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

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #c9a227;
  padding-left: 1rem;
  margin: 1.5em 0;
  color: #9aa0aa;
  font-style: italic;
  background: #232328;
  border-radius: 0 0.5rem 0.5rem 0;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.prose-casino hr {
  border-color: #3a3a42;
  margin: 2em 0;
}

.prose-casino code {
  background: #2e2e35;
  color: #f5d97a;
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  word-break: break-word;
}

.prose-casino pre {
  background: #1a1a1f;
  color: #c8ccd2;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5em;
  font-size: 0.875em;
}

.prose-casino pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875em;
  margin-bottom: 1.5em;
}

.prose-casino table thead tr {
  background-color: #2e2e35;
  color: #e8c44a;
}

.prose-casino table th,
.prose-casino table td {
  padding: 0.6rem 0.9rem;
  border: 1px solid #3a3a42;
  text-align: left;
  word-break: break-word;
}

.prose-casino table tbody tr:nth-child(even) {
  background-color: #232328;
}

.prose-casino table tbody tr:hover {
  background-color: #2e2e35;
}

.prose-casino img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

/* =============================================================
   HERO PATTERN (SVG CSS background)
   ============================================================= */

.hero-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(201, 162, 39, 0.07) 30px,
      rgba(201, 162, 39, 0.07) 31px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(201, 162, 39, 0.07) 30px,
      rgba(201, 162, 39, 0.07) 31px
    );
}

/* =============================================================
   STICKY HEADER
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =============================================================
   GAMES MARQUEE ANIMATION
   ============================================================= */

.games-marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.games-marquee-wrapper::before,
.games-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.games-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #232328, transparent);
}

.games-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #232328, transparent);
}

.games-marquee {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

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

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

/* =============================================================
   GAME CARD
   ============================================================= */

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

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

/* =============================================================
   STEP CARDS
   ============================================================= */

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

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.15);
}

/* =============================================================
   REVIEW CARDS
   ============================================================= */

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

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.15);
}

/* =============================================================
   PROMO CARDS
   ============================================================= */

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

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

/* =============================================================
   PROVIDER WORD CLOUD
   ============================================================= */

.provider-tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: #2e2e35;
  border-radius: 0.4rem;
  border: 1px solid #3a3a42;
  cursor: default;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  word-break: keep-all;
}

.provider-tag:hover {
  background: #3a3a42;
  border-color: #c9a227;
  color: #e8c44a !important;
}

/* =============================================================
   CTA PRIMARY PULSE ANIMATION
   ============================================================= */

.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.2s;
}

.cta-primary:hover::after {
  opacity: 1;
}

/* =============================================================
   FAQ ANIMATION
   ============================================================= */

.faq-answer {
  transition: max-height 0.3s ease;
}

.faq-item {
  transition: border-color 0.2s;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: #c9a227;
}

/* =============================================================
   PARALLAX SUPPORT
   ============================================================= */

@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    background-attachment: fixed;
  }
}

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

/* =============================================================
   RESPONSIVE UTILITIES
   ============================================================= */

* {
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  word-break: break-word;
}

/* =============================================================
   SCROLLBAR STYLING (webkit)
   ============================================================= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1f;
}

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

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

/* =============================================================
   SELECTION COLORS
   ============================================================= */

::selection {
  background: #c9a227;
  color: #1a1a1f;
}

::-moz-selection {
  background: #c9a227;
  color: #1a1a1f;
}

/* =============================================================
   FOCUS VISIBLE
   ============================================================= */

:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

/* =============================================================
   MOBILE MENU OPEN STATE HELPER
   ============================================================= */

.burger-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: #e8c44a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================================
   CONTAINER MAX WIDTH
   ============================================================= */

.max-w-8xl {
  max-width: 1440px;
}