/* Thunder Roll Custom Animations & Overrides */

@keyframes lightning-pulse {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  }
  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
  }
}

@keyframes electric-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(234, 179, 8, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 60px rgba(234, 179, 8, 0.6);
  }
}

@keyframes spark-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

@keyframes voltage-flicker {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.8), 0 0 20px rgba(59, 130, 246, 0.6);
  }
  25% {
    text-shadow: 0 0 20px rgba(234, 179, 8, 1), 0 0 30px rgba(59, 130, 246, 0.8);
  }
  50% {
    text-shadow: 0 0 15px rgba(234, 179, 8, 0.9), 0 0 25px rgba(59, 130, 246, 0.7);
  }
  75% {
    text-shadow: 0 0 25px rgba(234, 179, 8, 1), 0 0 35px rgba(59, 130, 246, 0.9);
  }
}

@keyframes parallax-drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20px);
  }
}

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

.electric-glow {
  animation: electric-glow 3s ease-in-out infinite;
}

.voltage-text {
  animation: voltage-flicker 4s ease-in-out infinite;
}

.parallax-layer {
  transition: transform 0.3s ease-out;
}

/* Spark particles */
.spark-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #fbbf24, #3b82f6);
  border-radius: 50%;
  animation: spark-float 3s ease-in-out infinite;
}

.spark-particle:nth-child(2) {
  animation-delay: 0.5s;
  left: 20%;
}

.spark-particle:nth-child(3) {
  animation-delay: 1s;
  left: 40%;
}

.spark-particle:nth-child(4) {
  animation-delay: 1.5s;
  left: 60%;
}

.spark-particle:nth-child(5) {
  animation-delay: 2s;
  left: 80%;
}

/* Lightning bolt SVG pattern */
.lightning-bg {
  background-image: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, transparent 50%),
    linear-gradient(225deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

/* Metallic gradient backgrounds */
.metal-gradient {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  position: relative;
}

.metal-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(234, 179, 8, 0.05) 50%, transparent 100%);
  animation: parallax-drift 6s ease-in-out infinite alternate;
}

/* Electric border effect */
.electric-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#0f172a, #0f172a) padding-box, linear-gradient(135deg, #fbbf24, #3b82f6, #fbbf24)
    border-box;
}

/* Enhanced prose styling for markdown content with relative units and proper contrast */
.prose-casino {
  max-width: 100%;
  line-height: 1.65;
  color: #e2e8f0;
  font-size: 1rem;
}

.prose-casino h2 {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 0.625rem rgba(234, 179, 8, 0.5);
  letter-spacing: -0.02em;
}

.prose-casino h3 {
  color: #60a5fa;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.prose-casino h4 {
  color: #93c5fd;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.prose-casino p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.prose-casino p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.75;
}

.prose-casino ul,
.prose-casino ol {
  margin-left: 1.75rem;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.prose-casino ul {
  list-style-type: disc;
}

.prose-casino ol {
  list-style-type: decimal;
}

.prose-casino li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  color: #cbd5e1;
  padding-left: 0.5rem;
}

.prose-casino li::marker {
  color: #fbbf24;
}

.prose-casino strong,
.prose-casino b {
  color: #fbbf24;
  font-weight: 600;
}

.prose-casino em,
.prose-casino i {
  color: #93c5fd;
  font-style: italic;
}

.prose-casino a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.125rem;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose-casino a:hover {
  color: #fbbf24;
  text-decoration-color: #fbbf24;
}

/* Image styling with max-width and responsive behavior */
.prose-casino img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 0.25rem 1.5rem rgba(234, 179, 8, 0.2), 0 0 1.25rem rgba(59, 130, 246, 0.15);
  border: 0.125rem solid rgba(234, 179, 8, 0.3);
}

/* Table styling with overflow and responsive design */
.prose-casino table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino thead {
  background: rgba(234, 179, 8, 0.15);
}

.prose-casino th {
  background: rgba(234, 179, 8, 0.1);
  color: #fbbf24;
  padding: 1rem 0.875rem;
  text-align: left;
  border: 0.0625rem solid rgba(234, 179, 8, 0.3);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prose-casino td {
  padding: 0.875rem;
  border: 0.0625rem solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  line-height: 1.6;
}

.prose-casino tbody tr {
  transition: background-color 0.2s ease;
}

.prose-casino tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.prose-casino tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.3);
}

.prose-casino tbody tr:nth-child(even):hover {
  background: rgba(59, 130, 246, 0.08);
}

/* Blockquote styling with proper contrast */
.prose-casino blockquote {
  border-left: 0.25rem solid #fbbf24;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #94a3b8;
  background: rgba(234, 179, 8, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose-casino blockquote p {
  margin-bottom: 0;
  color: #cbd5e1;
}

/* Code and pre styling */
.prose-casino code {
  background: rgba(30, 41, 59, 0.8);
  color: #fbbf24;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Courier New", monospace;
  border: 0.0625rem solid rgba(234, 179, 8, 0.3);
}

.prose-casino pre {
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 0.0625rem solid rgba(59, 130, 246, 0.3);
  line-height: 1.6;
}

.prose-casino pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
}

/* Horizontal rule styling */
.prose-casino hr {
  border: none;
  height: 0.125rem;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.5), transparent);
  margin: 3rem 0;
}

/* Table responsive wrapper - MUST be applied to wrapper div, not table itself */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

/* Ensure tables inside responsive wrapper don't have overflow */
.table-responsive table {
  margin: 0;
}

/* Small text and captions */
.prose-casino small,
.prose-casino .text-sm {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

.prose-casino figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Definition lists */
.prose-casino dl {
  margin: 1.5rem 0;
}

.prose-casino dt {
  color: #fbbf24;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.prose-casino dd {
  color: #cbd5e1;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

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

/* Button hover effects */
.btn-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Mobile burger menu backdrop */
.burger-backdrop {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(8px);
}

/* Bonus badge glow */
.bonus-badge {
  position: relative;
  animation: electric-glow 3s ease-in-out infinite;
}

/* Game card hover effect */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Step badge electric effect */
.step-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.6);
}

/* Provider cloud tags */
.provider-tag {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.3);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(234, 179, 8, 0.1);
  border-color: #fbbf24;
  transform: scale(1.05);
}

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

.faq-item:hover {
  border-left-color: #fbbf24;
}

/* Promo card styling */
.promo-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: #fbbf24;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.2);
}

/* Disclaimer styling */
.disclaimer {
  font-size: 0.875rem;
  color: #94a3b8;
  font-style: italic;
}

/* Responsive typography adjustments for mobile */
@media (max-width: 768px) {
  .prose-casino {
    font-size: 0.9375rem;
  }

  .prose-casino h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }

  .prose-casino h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .prose-casino h4 {
    font-size: 1.125rem;
  }

  .prose-casino p {
    font-size: 1rem;
  }

  .prose-casino p:first-of-type {
    font-size: 1.0625rem;
  }

  .prose-casino table {
    font-size: 0.875rem;
  }

  .prose-casino th,
  .prose-casino td {
    padding: 0.625rem 0.5rem;
  }
}
