/* =============================================================
   JossCasino – Custom CSS
   Theme: Stahl Prestige (Graphite / Platinum / Antique Gold)
   ============================================================= */

/* --- Reset & Base ------------------------------------------ */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0d0e0f;
  color: #e4e4e7;
  font-family: 'Inter', system-ui, sans-serif;
}

/* --- Gold Text Gradient ------------------------------------- */
.gold-text {
  background: linear-gradient(90deg, #8b6508 0%, #d4a017 35%, #f5c842 55%, #d4a017 75%, #8b6508 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* --- Buttons ----------------------------------------------- */
.btn-gold {
  display: inline-block;
  background: linear-gradient(90deg, #8b6508 0%, #d4a017 40%, #f5c842 60%, #d4a017 80%, #8b6508 100%);
  background-size: 200% 100%;
  color: #0d0e0f;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-gold:hover {
  background-position: right center;
  box-shadow: 0 0 24px rgba(212, 160, 23, 0.6), 0 0 48px rgba(212, 160, 23, 0.25);
  transform: translateY(-1px);
  color: #0d0e0f;
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid #d4a017;
  color: #f5c842;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(212, 160, 23, 0.15);
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.4);
  transform: translateY(-1px);
  color: #f5c842;
}

/* --- Bonus Badge -------------------------------------------- */
.bonus-badge {
  background: linear-gradient(135deg, rgba(28, 30, 33, 0.95) 0%, rgba(37, 39, 41, 0.98) 100%);
  border: 2px solid #d4a017;
  box-shadow: 0 0 32px rgba(212, 160, 23, 0.3), inset 0 1px 0 rgba(245, 200, 66, 0.15);
  backdrop-filter: blur(10px);
}

/* --- Steel Pattern (SVG background) ------------------------ */
.steel-pattern {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(212, 160, 23, 0.03) 2px,
    rgba(212, 160, 23, 0.03) 4px
  ),
  repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(180, 180, 200, 0.04) 2px,
    rgba(180, 180, 200, 0.04) 4px
  );
}

/* --- Hero Background --------------------------------------- */
.hero-bg {
  min-height: 100svh;
}

/* --- Parallax Effect --------------------------------------- */
.parallax-hero {
  will-change: transform;
  transform: translateZ(0);
}

@media (hover: hover) {
  .parallax-hero {
    background-attachment: fixed;
  }
}

/* --- Marquee Animation ------------------------------------- */
.marquee-track {
  animation: marquee 35s linear infinite;
  will-change: transform;
}

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

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

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

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(245, 200, 66, 0.12) 40%,
    rgba(255,255,255,0) 80%
  );
  background-size: 800px 100%;
  animation: shimmer 2.5s linear infinite;
}

/* --- Gold Pulse Animation ---------------------------------- */
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 12px rgba(212, 160, 23, 0.35), 0 4px 24px rgba(0,0,0,0.6); }
  50%       { box-shadow: 0 0 36px rgba(245, 200, 66, 0.75), 0 4px 24px rgba(0,0,0,0.6); }
}

.animate-pulse-gold {
  animation: pulseGold 2.5s ease-in-out infinite;
}

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

.game-card:hover {
  transform: translateY(-4px);
}

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

.promo-card:hover {
  transform: translateY(-4px);
}

/* --- Step Card --------------------------------------------- */
.step-card {
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* --- Step Badge -------------------------------------------- */
.step-badge {
  background: linear-gradient(135deg, #8b6508 0%, #d4a017 50%, #f5c842 100%);
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.5);
}

/* --- Provider Cloud Tags ----------------------------------- */
.provider-cloud {
  line-height: 1.8;
}

.provider-tag {
  font-weight: 500;
  user-select: none;
}

/* --- Metallic Divider -------------------------------------- */
.metal-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4a017 30%, #f5c842 50%, #d4a017 70%, transparent 100%);
  border: none;
  margin: 2rem 0;
}

/* --- Table Scroll ------------------------------------------ */
.prose-casino .prose-table-scroll,
.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,
.prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* --- Prose Casino Styling ---------------------------------- */
.prose-casino {
  color: #e4e4e7;
  max-width: 100%;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2rem;
  font-weight: 700;
  font-family: Georgia, serif;
  background: linear-gradient(90deg, #8b6508 0%, #d4a017 40%, #f5c842 60%, #d4a017 80%, #8b6508 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f5c842;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

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

.prose-casino p {
  color: #d4d4d8;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-casino a {
  color: #f5c842;
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

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

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

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

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

.prose-casino blockquote {
  border-left: 3px solid #d4a017;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #a1a1aa;
  font-style: italic;
}

.prose-casino code {
  background: #252729;
  color: #f5c842;
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #252729;
  border: 1px solid #2e3033;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #2e3033;
  margin: 2rem 0;
}

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

.prose-casino table thead tr {
  background: #252729;
  border-bottom: 2px solid #d4a017;
}

.prose-casino table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: #f5c842;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose-casino table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #2e3033;
}

.prose-casino table tbody tr:hover {
  background: rgba(212, 160, 23, 0.05);
}

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

::-webkit-scrollbar-track {
  background: #141517;
}

::-webkit-scrollbar-thumb {
  background: #d4a017;
  border-radius: 3px;
}

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

/* --- Focus Styles ------------------------------------------ */
:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
}

/* --- Responsive Helpers ------------------------------------ */
@media (max-width: 640px) {
  .hero-bg {
    min-height: 90svh;
  }

  .bonus-badge {
    padding: 1.25rem;
  }
}

/* --- Gold Gradient Background (used in badges) ------------- */
.bg-gold-gradient {
  background: linear-gradient(135deg, #8b6508 0%, #d4a017 50%, #f5c842 100%);
}

/* --- Metallic Surface Pattern ------------------------------ */
.metallic-surface {
  background: linear-gradient(160deg, #1c1e21 0%, #252729 30%, #1e2022 60%, #1c1e21 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.3);
}

/* --- Jackpot Glow ------------------------------------------ */
.jackpot-glow {
  animation: pulseGold 1.8s ease-in-out infinite;
}

/* --- Text Selection ---------------------------------------- */
::selection {
  background: rgba(212, 160, 23, 0.35);
  color: #f5c842;
}
