/* ===========================
   SpinJam Casino Custom Styles
   Hyperjam Voltage Theme
   =========================== */

/* Animation keyframes */
@keyframes tilt {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

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

@keyframes electric-pulse {
  0%,
  100% {
    opacity: 0.5;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.5);
  }
}

@keyframes scatter-blast {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes voltage-arc {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(34, 211, 238, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 80px rgba(34, 211, 238, 0.6);
  }
}

/* Utility animation classes */
.animate-tilt {
  animation: tilt 3s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

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

.animate-scatter-blast {
  animation: scatter-blast 0.6s ease-out forwards;
}

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

/* Enhanced prose styling for markdown content pages */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.prose h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: rgba(34, 211, 238, 1);
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(34, 211, 238, 1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: clamp(1.375rem, 2.75vw, 1.875rem);
  font-weight: 600;
  color: rgba(139, 92, 246, 1);
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.prose p {
  margin-bottom: 1.25em;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.938rem, 1.5vw, 1.063rem);
  line-height: 1.8;
}

.prose strong {
  color: rgba(34, 211, 238, 1);
  font-weight: 600;
}

.prose em {
  color: rgba(139, 92, 246, 0.9);
  font-style: italic;
}

.prose a {
  color: rgba(139, 92, 246, 1);
  text-decoration: underline;
  text-decoration-color: rgba(139, 92, 246, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: rgba(34, 211, 238, 1);
  text-decoration-color: rgba(34, 211, 238, 0.6);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.prose ul,
.prose ol {
  margin: 1.5em 0;
  padding-left: 0;
  list-style-position: outside;
}

.prose ul {
  list-style-type: none;
}

.prose ul li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.prose ul li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: rgba(34, 211, 238, 1);
  font-size: 1.1em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 2em;
}

.prose ol li {
  margin-bottom: 0.75em;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 0.5em;
  line-height: 1.7;
}

.prose ol li::marker {
  color: rgba(139, 92, 246, 1);
  font-weight: 600;
}

.prose blockquote {
  border-left: 0.25rem solid rgba(139, 92, 246, 0.6);
  padding-left: 1.5rem;
  margin: 2em 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(139, 92, 246, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: 0.25rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  overflow: hidden;
  border-radius: 0.5rem;
}

.prose thead {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.25));
}

.prose th {
  color: rgba(34, 211, 238, 1);
  padding: 0.875rem 1rem;
  text-align: left;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-weight: 600;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.prose td {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: top;
}

.prose tbody tr {
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.35);
}

.prose tbody tr:hover {
  background: rgba(139, 92, 246, 0.1);
}

.prose code {
  background: rgba(139, 92, 246, 0.15);
  color: rgba(34, 211, 238, 1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(139, 92, 246, 0.3);
  margin: 3em 0;
  background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.5), transparent);
  height: 2px;
}

/* Responsive table wrapper for prose content */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.prose .table-responsive table {
  margin: 0;
}

/* Typography enhancements for readability */
.prose p:first-of-type {
  font-size: clamp(1rem, 1.75vw, 1.125rem);
  color: rgba(255, 255, 255, 0.92);
}

.prose p:first-of-type::first-letter {
  font-size: 1.5em;
  font-weight: 700;
  color: rgba(34, 211, 238, 1);
  float: left;
  line-height: 1;
  margin-right: 0.1em;
}

/* Nested list styling */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

/* Definition lists */
.prose dl {
  margin: 1.5em 0;
}

.prose dt {
  color: rgba(34, 211, 238, 1);
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.prose dd {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 2em;
  margin-bottom: 1em;
  line-height: 1.7;
}

/* Responsive images in prose */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em auto;
  display: block;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

/* Figure and figcaption */
.prose figure {
  margin: 2em 0;
}

.prose figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 0.75em;
  font-style: italic;
}

/* Electric arc background pattern */
.electric-bg {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%),
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 50%), #000000;
}

/* Voltage border effect */
.voltage-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(34, 211, 238, 0.8)) border-box;
}

/* Neon glow text */
.neon-text {
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.8), 0 0 20px rgba(34, 211, 238, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Crackling scatter effect */
.scatter-effect {
  position: relative;
  overflow: visible;
}

.scatter-effect::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scatter-effect:hover::before {
  opacity: 1;
  animation: scatter-blast 0.6s ease-out;
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Override Tailwind prose for better casino readability */
.content-block h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(34, 211, 238, 1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-block p {
  font-size: clamp(0.938rem, 1.5vw, 1.125rem);
  line-height: 1.8;
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.3));
  border: 2px solid rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), inset 0 0 20px rgba(34, 211, 238, 0.2);
}

/* CTA button enhancements */
.cta-primary {
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.5));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
}

.cta-primary:hover::before {
  opacity: 1;
}

/* Game card hover effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4), 0 0 40px rgba(34, 211, 238, 0.3);
  border-color: rgba(34, 211, 238, 0.6);
}

/* Step card styling */
.step-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(10px);
}

/* Payment method icons */
.payment-icon {
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
  transition: filter 0.3s ease;
}

.payment-icon:hover {
  filter: drop-shadow(0 4px 16px rgba(34, 211, 238, 0.5));
}

/* FAQ accordion styling */
.faq-item {
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-left-color: rgba(34, 211, 238, 0.8);
}

/* Responsible gaming badges */
.rg-badge {
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rg-badge:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Provider cloud styling */
.provider-tag {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.5);
  transform: scale(1.05);
}

/* Review block styling */
.review-block {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(34, 211, 238, 0.05));
  border-left: 4px solid rgba(139, 92, 246, 0.6);
}

/* Hero section specific */
.hero-container {
  position: relative;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(34, 211, 238, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Disclaimer text styling */
.disclaimer-text {
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Promo card styling */
.promo-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}
