/* ============================================================
   TrenchBet Casino — Custom CSS
   Theme: Crown Strike (Sapphire + Antique Gold + Velvet)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --sapphire-950: #111a57;
  --sapphire-900: #172890;
  --sapphire-700: #132fd8;
  --sapphire-400: #598dff;
  --sapphire-300: #8eb6ff;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --velvet-900: #0d0e1f;
  --velvet-800: #13152e;
  --velvet-700: #1a1d3d;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--velvet-900);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ---------- SVG Background Pattern (velvet fabric) ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff08'/%3E%3Ccircle cx='0' cy='0' r='1' fill='%23ffffff06'/%3E%3Ccircle cx='60' cy='0' r='1' fill='%23ffffff06'/%3E%3Ccircle cx='0' cy='60' r='1' fill='%23ffffff06'/%3E%3Ccircle cx='60' cy='60' r='1' fill='%23ffffff06'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--velvet-900);
}
::-webkit-scrollbar-thumb {
  background: var(--sapphire-950);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}

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

/* ---------- Bonus Badge Glow ---------- */
.bonus-badge {
  animation: badgePulse 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.15), 0 0 80px rgba(251, 191, 36, 0.08);
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15), 0 0 60px rgba(251, 191, 36, 0.08);
  }
  50% {
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.30), 0 0 100px rgba(251, 191, 36, 0.15);
  }
}

/* ---------- CTA Buttons ---------- */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}

.cta-primary:hover::after {
  left: 130%;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

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

.game-card:hover {
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(47, 97, 245, 0.2);
}

/* ---------- Step Cards ---------- */
.step-card {
  animation: fadeInUp 0.6s ease both;
}

.step-card:nth-child(2) { animation-delay: 0.15s; }
.step-card:nth-child(3) { animation-delay: 0.30s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Review Blocks ---------- */
.review-block {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-block:hover {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 30px rgba(47, 97, 245, 0.1);
}

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

.provider-tag {
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
}

.provider-tag:hover {
  transform: scale(1.1);
  color: var(--gold-400);
}

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

.faq-item:has(.faq-btn[aria-expanded="true"]) {
  border-color: rgba(251, 191, 36, 0.4);
}

.faq-btn[aria-expanded="true"] .faq-icon {
  color: var(--gold-400);
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.2s ease;
}

.faq-answer {
  animation: slideDown 0.25s ease;
}

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

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

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

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

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

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

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

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead tr {
  background-color: var(--sapphire-950);
  color: var(--gold-400);
}

tbody tr:nth-child(odd) {
  background-color: var(--velvet-800);
}

tbody tr:nth-child(even) {
  background-color: var(--velvet-900);
}

td, th {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(19, 47, 216, 0.2);
}

/* ---------- Prose Styling ---------- */
.prose-trenchbet {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 1rem;
  max-width: 80ch;
}

.prose-trenchbet h1,
.prose-trenchbet h2,
.prose-trenchbet h3,
.prose-trenchbet h4 {
  font-family: Georgia, serif;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.prose-trenchbet h1 { font-size: 2rem; }
.prose-trenchbet h2 { font-size: 1.5rem; color: var(--gold-300); }
.prose-trenchbet h3 { font-size: 1.25rem; color: var(--gold-400); }
.prose-trenchbet h4 { font-size: 1.1rem; }

.prose-trenchbet p {
  margin-bottom: 1rem;
}

.prose-trenchbet a {
  color: var(--gold-400);
  text-decoration: underline;
  transition: color 0.15s;
}

.prose-trenchbet a:hover {
  color: var(--gold-300);
}

.prose-trenchbet strong {
  color: #ffffff;
  font-weight: 700;
}

.prose-trenchbet ul,
.prose-trenchbet ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

.prose-trenchbet li {
  margin-bottom: 0.4rem;
}

.prose-trenchbet blockquote {
  border-left: 4px solid var(--gold-400);
  padding-left: 1rem;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose-trenchbet code {
  background: var(--velvet-700);
  color: var(--gold-300);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose-trenchbet pre {
  background: var(--velvet-800);
  border: 1px solid rgba(89, 141, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose-trenchbet hr {
  border-color: rgba(89, 141, 255, 0.2);
  margin: 2rem 0;
}

.prose-trenchbet table {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.prose-trenchbet .overflow-x-auto {
  border-radius: 8px;
  border: 1px solid rgba(19, 47, 216, 0.3);
  margin-bottom: 1.5rem;
}

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

/* ---------- Section Dividers ---------- */
section + section {
  position: relative;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .bonus-badge {
    padding: 1rem 1.5rem;
  }
}

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

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ---------- Focus Styles ---------- */
*:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Selection ---------- */
::selection {
  background-color: rgba(251, 191, 36, 0.25);
  color: #ffffff;
}
