/* ============================================
   BearoCasino – Custom CSS & Animations
   Savage Gold Theme
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  background-color: #0D0A06;
  color: #FDE68A;
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ---------- CSS Variables ---------- */
:root {
  --gold: #D4A017;
  --gold-light: #F5C842;
  --gold-dark: #A87C10;
  --gold-amber: #FF8C00;
  --bronze: #8C5A2C;
  --bronze-light: #B87333;
  --bear-dark: #0D0A06;
  --bear-deeper: #1A1208;
  --bear-mid: #2A1F0E;
  --bear-surface: #3A2D18;
  --bear-muted: #6B5230;
  --claw: #C0862A;
}

/* ---------- Claw Texture Overlay ---------- */
.claw-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4A017' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M20 10 Q26 35 16 60 Q10 80 22 100'/%3E%3Cpath d='M40 8 Q46 33 36 58 Q30 78 42 98'/%3E%3Cpath d='M60 12 Q66 37 56 62 Q50 82 62 102'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #D4A017, #FF8C00, #A87C10);
  background-size: 200% 200%;
  color: #0D0A06;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 9999px;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  animation: btnShimmer 3s ease infinite;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.4);
  letter-spacing: 0.02em;
  text-align: center;
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 6px 30px rgba(212, 160, 23, 0.7);
  transform: translateY(-2px);
  color: #0D0A06;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #F5C842;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 9999px;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #D4A017;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(212, 160, 23, 0.15);
  border-color: #F5C842;
  color: #F5C842;
  transform: translateY(-2px);
}

/* ---------- Button Shimmer Animation ---------- */
@keyframes btnShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Pulse Gold ---------- */
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(212, 160, 23, 0.6); }
  50%       { box-shadow: 0 0 28px 10px rgba(245, 200, 66, 0.8); }
}

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

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

.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ---------- Bonus Badge ---------- */
.bonus-badge {
  background: linear-gradient(145deg, rgba(42, 31, 14, 0.95), rgba(26, 18, 8, 0.98));
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 4px rgba(212, 160, 23, 0.15),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(245, 200, 66, 0.3);
  animation: pulseGold 3s ease-in-out infinite;
}

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

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

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

/* ---------- Promo Cards ---------- */
.promo-card {
  background: linear-gradient(145deg, var(--bear-mid), var(--bear-deeper));
  border: 1px solid var(--bear-surface);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  background-size: 200% 100%;
  animation: btnShimmer 3s ease infinite;
}

.promo-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.2);
}

/* ---------- Game Cards ---------- */
.game-card {
  background: var(--bear-surface);
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212, 160, 23, 0.3);
}

/* ---------- Step Cards ---------- */
.step-card {
  background: linear-gradient(145deg, var(--bear-mid), var(--bear-surface));
  border: 1px solid var(--bear-surface);
  transition: all 0.3s ease;
  overflow: hidden;
}

.step-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.2);
}

.step-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-amber));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bear-dark);
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.5);
  font-family: Georgia, serif;
  border: 2px solid var(--gold-light);
}

/* ---------- Review Blocks ---------- */
.review-block {
  background: linear-gradient(145deg, var(--bear-mid), var(--bear-deeper));
  border: 1px solid var(--bear-surface);
  transition: border-color 0.3s ease;
}

.review-block:hover {
  border-color: var(--gold-dark);
}

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

.provider-tag {
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: #FDE68A;
  transition: all 0.2s ease;
  cursor: default;
}

.provider-tag:nth-child(3n+1) { font-size: 0.9rem; color: var(--gold-light); }
.provider-tag:nth-child(3n+2) { font-size: 0.75rem; color: #FDE68A; }
.provider-tag:nth-child(3n)   { font-size: 1rem; color: var(--gold); }

.provider-tag:hover {
  background: rgba(212, 160, 23, 0.25);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: scale(1.05);
}

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

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

/* ---------- Prose Styling ---------- */
.prose-casino {
  color: #FDE68A;
  max-width: 100%;
}

.prose-casino h1 {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose-casino h2 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--bear-surface);
  padding-bottom: 0.5rem;
}

.prose-casino h3 {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.prose-casino a {
  color: var(--gold-light);
  text-decoration: underline;
  transition: color 0.2s;
}

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

.prose-casino ul, .prose-casino ol {
  color: #FCD975;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

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

.prose-casino strong {
  color: var(--gold-light);
  font-weight: 700;
}

.prose-casino blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #FDE68A;
  font-style: italic;
  background: rgba(212, 160, 23, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
}

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

.prose-casino th {
  background: var(--bear-surface);
  color: var(--gold);
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 700;
}

.prose-casino td {
  color: #FDE68A;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--bear-surface);
}

.prose-casino tr:hover td {
  background: rgba(212, 160, 23, 0.06);
}

.content-body .overflow-x-auto {
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--bear-surface);
  overflow-x: auto;
}

/* ---------- Parallax JS Helper ---------- */
@media (min-width: 1024px) {
  .parallax-bg {
    transform: translateY(0);
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bear-deeper);
}
::-webkit-scrollbar-thumb {
  background: var(--bear-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

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

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite;
}

/* ---------- Responsive Table Fix ---------- */
.overflow-x-auto > table {
  min-width: 480px;
}
