/* ============================================
   BitGuruzCasino – custom.css
   All site animations, custom styles, prose
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

/* ---------- Blockchain SVG Pattern ---------- */
.blockchain-pattern {
  background-image:
    radial-gradient(circle, #10b98130 1px, transparent 1px),
    radial-gradient(circle, #d4a01720 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero-bg {
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(6, 10, 8, 0.82) 0%,
    rgba(10, 15, 13, 0.70) 50%,
    rgba(13, 122, 78, 0.30) 100%
  );
}

/* Parallax hero on scroll */
@media (min-width: 768px) {
  .hero-section {
    perspective: 1px;
  }
  .hero-bg {
    will-change: transform;
  }
}

/* ---------- Bonus Badge ---------- */
.bonus-badge {
  background: linear-gradient(135deg, rgba(10, 15, 13, 0.95) 0%, rgba(13, 122, 78, 0.25) 100%);
  border: 2px solid #d4a017;
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.35), 0 0 80px rgba(16, 185, 129, 0.15);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(212, 160, 23, 0.35), 0 0 80px rgba(16, 185, 129, 0.15); }
  50%       { box-shadow: 0 0 60px rgba(212, 160, 23, 0.55), 0 0 120px rgba(16, 185, 129, 0.25); }
}

/* ---------- CTA Pulse ---------- */
.cta-pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.6); }
  50%       { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(212, 160, 23, 0); }
}

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

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

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

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Game Card ---------- */
.game-card {
  cursor: pointer;
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

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

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(212, 160, 23, 0.12);
}

.step-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a017, #f0c040);
  color: #0a0f0d;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.5);
  z-index: 10;
}

/* ---------- Provider Cloud ---------- */
.provider-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border-color: #10b981;
}

.provider-tag.featured {
  background: rgba(212, 160, 23, 0.08);
  border-color: rgba(212, 160, 23, 0.3);
  color: #d4a017;
  font-size: 0.875rem;
}

.provider-tag.featured:hover {
  background: rgba(212, 160, 23, 0.18);
  color: #f0c040;
  border-color: #f0c040;
}

/* ---------- FAQ Items ---------- */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: #10b981;
}

.faq-item[open] {
  border-color: #10b981;
}

/* ---------- Table Scroll Utility ---------- */
.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 (Single page content) ---------- */
.prose-content {
  color: #d1d5db;
  line-height: 1.8;
  max-width: 900px;
}

.prose-content h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #d4a017;
  margin-bottom: 1.25rem;
  margin-top: 0;
  line-height: 1.2;
}

.prose-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #10b981;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding-bottom: 0.4rem;
}

.prose-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0c040;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.prose-content p {
  margin-bottom: 1rem;
  color: #d1d5db;
}

.prose-content a {
  color: #10b981;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose-content a:hover {
  color: #f0c040;
}

.prose-content strong {
  color: #f3f4f6;
  font-weight: 700;
}

.prose-content em {
  color: #9ca3af;
}

.prose-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.prose-content ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose-content ul li::before {
  content: "▸";
  color: #10b981;
  position: absolute;
  left: 0;
  font-size: 0.9rem;
  top: 0.1rem;
}

.prose-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-content ol li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

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

.prose-content code {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose-content pre {
  background: #111c17;
  border: 1px solid #1e3328;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose-content pre code {
  background: transparent;
  padding: 0;
}

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

.prose-content th {
  background: #0d7a4e;
  color: #fff;
  font-weight: 700;
  padding: 0.625rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.prose-content td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #1e3328;
  color: #d1d5db;
}

.prose-content tr:nth-child(even) td {
  background: rgba(17, 28, 23, 0.6);
}

.prose-content tr:hover td {
  background: rgba(16, 185, 129, 0.05);
}

/* Table scroll wrapper inside prose */
.prose-content .overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

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

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

/* ---------- Parallax scroll effect (JS-free CSS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    animation: heroDrift 20s ease-in-out infinite alternate;
  }
}

@keyframes heroDrift {
  from { transform: scale(1.05) translateY(0); }
  to   { transform: scale(1.1) translateY(-2%); }
}

/* ---------- Glowing borders on interactive elements ---------- */
.glow-green {
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.glow-gold {
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.35);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #0d7a4e;
}

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* ---------- Smooth fade-in for page sections ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utility overrides ---------- */
.max-w-site {
  max-width: 1440px;
}
