/* =============================================================
   TerraCasino – Custom CSS
   Earthbound Fortune: Deep Emerald, Gold, Amber
============================================================= */

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

body {
  overflow-x: hidden;
  word-break: break-word;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  line-height: 1.2;
}

/* --- Crystal SVG Glow --- */
.crystal-glow {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}

/* --- CTA Buttons --- */
.cta-btn-primary {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.cta-btn-secondary {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

/* --- Bonus Badge Shimmer --- */
.bonus-badge {
  position: relative;
  overflow: hidden;
}

.bonus-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(212, 175, 55, 0.15) 50%,
    transparent 100%
  );
  animation: shimmer 3s infinite linear;
}

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

/* --- Pulse Gold Animation --- */
@keyframes pulse_gold {
  0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
  50%       { box-shadow: 0 0 32px rgba(212, 175, 55, 0.9); }
}

.animate-pulse_gold {
  animation: pulse_gold 2s ease-in-out infinite;
}

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

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

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

/* --- Parallax Hero --- */
.parallax-hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

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

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

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

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

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
}

.step-badge {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* --- Review Blocks --- */
.review-block {
  transition: box-shadow 0.3s ease;
}

.review-block:hover {
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
}

/* --- Provider Word Cloud --- */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.provider-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(26, 71, 42, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #f0ede4;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.6);
  color: #d4af37;
}

.provider-tag--lg {
  font-size: 1rem;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  color: #d4af37;
}

.provider-tag--sm {
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  color: #b0b8a8;
}

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

.faq-item:hover {
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

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

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

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

/* --- Nav Links --- */
.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Burger Lines --- */
.burger-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #d4af37;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.burger-line:last-child {
  margin-bottom: 0;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  word-break: break-word;
}

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

/* --- Prose Styling --- */
.prose-casino {
  color: #f0ede4;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 80ch;
  margin: 0 auto;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #d4af37;
  margin-bottom: 1rem;
  margin-top: 0;
  font-family: Georgia, serif;
}

.prose-casino h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #d4af37;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}

.prose-casino h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #52b788;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

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

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

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

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

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

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

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

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

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

.prose-casino code {
  background: rgba(26, 71, 42, 0.6);
  color: #52b788;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #132218;
  color: #a8d8a8;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.prose-casino th {
  background: #1a472a;
  color: #d4af37;
  font-weight: 700;
  padding: 0.6rem 1rem;
  text-align: left;
}

.prose-casino td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: #b0b8a8;
}

.prose-casino tr:hover td {
  background: rgba(26, 71, 42, 0.3);
}

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

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin: 2rem 0;
}

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

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

::-webkit-scrollbar-thumb {
  background: #2d6a4f;
  border-radius: 9999px;
}

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

/* --- Utility: Gold Text Gradient --- */
.text-gold-gradient {
  background: linear-gradient(90deg, #c07d2a, #d4af37, #f0d060, #d4af37, #c07d2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Sticky Header Shadow --- */
header.sticky {
  backdrop-filter: blur(8px);
}

/* --- Responsive Containers --- */
@media (max-width: 640px) {
  .bonus-badge {
    padding: 1.25rem;
  }

  .step-badge {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Selection --- */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #f0ede4;
}
