/* ====================================================
   BearoCasino – Custom CSS
   Theme: Wild Fortune (Deep Amber & Gold on Dark)
   ==================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-dark:    #0d0a05;
  --color-darker:  #1a1205;
  --color-bg:      #12100a;
  --color-amber:   #d97706;
  --color-gold:    #f59e0b;
  --color-bright:  #fbbf24;
  --color-light:   #fde68a;
  --color-copper:  #b45309;
  --color-text:    #f3f4f6;
  --color-muted:   #9ca3af;

  --gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  --gradient-dark: linear-gradient(180deg, #1a1205 0%, #0d0a05 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ---------- Typography ---------- */
.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- CTA Buttons ---------- */
.cta-primary {
  display: inline-block;
  background: var(--gradient-gold);
  color: #0d0a05;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.625rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35);
  border: none;
  text-decoration: none;
}
.cta-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5);
}
.cta-primary:active { transform: translateY(0); }

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-bright);
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.625rem 1.5rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--color-amber);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}
.cta-secondary:hover {
  background: rgba(217,119,6,0.15);
  transform: translateY(-2px);
}

/* ---------- Hero Section ---------- */
.hero-section { position: relative; }

.hero-bg {
  background-attachment: fixed;
  will-change: transform;
}

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

/* ---------- Bonus Badge Box ---------- */
.bonus-badge-box {
  background: var(--gradient-gold);
  border-radius: 1.25rem;
  padding: 2px;
  box-shadow: 0 0 40px rgba(245,158,11,0.3), 0 0 80px rgba(245,158,11,0.1);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(245,158,11,0.3), 0 0 80px rgba(245,158,11,0.1); }
  50%       { box-shadow: 0 0 60px rgba(245,158,11,0.5), 0 0 120px rgba(245,158,11,0.2); }
}

/* ---------- Marquee (Game Strip) ---------- */
.marquee-outer { position: relative; mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); }

.marquee-track {
  display: flex;
  animation: marquee 32s linear infinite;
  width: max-content;
}

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

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

/* ---------- Game Cards ---------- */
.game-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(217,119,6,0.2);
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(245,158,11,0.2);
  border-color: rgba(245,158,11,0.5);
}

/* ---------- Review Blocks ---------- */
.review-block {
  transition: transform 0.3s, box-shadow 0.3s;
}
.review-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(245,158,11,0.15);
}

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

.provider-tag {
  display: inline-block;
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.3);
  color: var(--color-light);
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}
.provider-tag:hover {
  background: rgba(217,119,6,0.25);
  border-color: var(--color-gold);
}

/* Variable provider tag sizing for word cloud effect */
.provider-tag:nth-child(3n+1)  { font-size: 0.9rem; }
.provider-tag:nth-child(3n+2)  { font-size: 0.7rem; }
.provider-tag:nth-child(5n)    { font-size: 1rem; color: var(--color-bright); }

/* ---------- Step Cards ---------- */
.step-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245,158,11,0.2);
}

.step-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--color-dark);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

/* ---------- Promo Cards ---------- */
.promo-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245,158,11,0.18);
}

.promo-bar-1 { background: linear-gradient(90deg, #d97706, #f59e0b); }
.promo-bar-2 { background: linear-gradient(90deg, #b45309, #d97706); }
.promo-bar-3 { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ---------- FAQ ---------- */
.faq-item { transition: border-color 0.2s; }
.faq-item:hover { border-color: rgba(245,158,11,0.4); }
.faq-trigger { background: none; border: none; cursor: pointer; outline: none; }
.faq-trigger:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.faq-answer { transition: all 0.3s ease; }

/* ---------- Shimmer Animation ---------- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.shimmer {
  background: linear-gradient(90deg, var(--color-amber) 25%, var(--color-bright) 50%, var(--color-amber) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ---------- Fade Up Animation ---------- */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeUp 0.8s ease both; }

/* ---------- Prose Styling ---------- */
.prose-casino {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.75;
}
.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: var(--color-gold);
  font-family: Georgia, serif;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}
.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: 1em; color: var(--color-muted); }
.prose-casino strong { color: var(--color-bright); }
.prose-casino a {
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-casino a:hover { color: var(--color-bright); }
.prose-casino ul, .prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1em;
}
.prose-casino ul li { list-style: disc; color: var(--color-muted); margin-bottom: 0.4em; }
.prose-casino ol li { list-style: decimal; color: var(--color-muted); margin-bottom: 0.4em; }
.prose-casino blockquote {
  border-left: 4px solid var(--color-amber);
  padding-left: 1rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 1.5rem 0;
}
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.prose-casino th {
  background: rgba(217,119,6,0.15);
  color: var(--color-gold);
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(217,119,6,0.3);
}
.prose-casino td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(217,119,6,0.1);
  color: var(--color-muted);
}
.prose-casino tr:hover td { background: rgba(217,119,6,0.05); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-darker); }
::-webkit-scrollbar-thumb { background: var(--color-copper); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

/* ---------- Utility ---------- */
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Sticky Header Shadow ---------- */
#site-header { transition: box-shadow 0.3s; }

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Parallax helper ---------- */
.parallax-hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-hero { background-attachment: scroll; }
}

/* ---------- Mobile Menu Transitions ---------- */
#mobile-menu {
  transition: opacity 0.2s ease;
}

/* ---------- Responsive max width ---------- */
.max-w-container { max-width: 1440px; }