/* Blaze Spin Theme - Custom Animations & Overrides */

/* Keyframe Animations */
@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4), 0 0 40px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 107, 53, 0.3), 0 0 80px rgba(255, 107, 53, 0.1);
  }
}

@keyframes glow-pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 25px rgba(252, 211, 77, 0.5), 0 0 50px rgba(252, 211, 77, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(252, 211, 77, 0.7), 0 0 70px rgba(252, 211, 77, 0.4), 0 0 100px rgba(252, 211, 77, 0.2);
  }
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) scale(0.5);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

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

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

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.3), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Particle Effects */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #fcd34d, #f59e0b);
  border-radius: 50%;
  animation: float-up 4s ease-in infinite;
  opacity: 0;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 3.5s;
}
.particle:nth-child(2) {
  left: 20%;
  animation-delay: 0.5s;
  animation-duration: 4s;
}
.particle:nth-child(3) {
  left: 30%;
  animation-delay: 1s;
  animation-duration: 3.8s;
}
.particle:nth-child(4) {
  left: 40%;
  animation-delay: 1.5s;
  animation-duration: 4.2s;
}
.particle:nth-child(5) {
  left: 50%;
  animation-delay: 2s;
  animation-duration: 3.6s;
}
.particle:nth-child(6) {
  left: 60%;
  animation-delay: 2.5s;
  animation-duration: 4.1s;
}
.particle:nth-child(7) {
  left: 70%;
  animation-delay: 3s;
  animation-duration: 3.9s;
}
.particle:nth-child(8) {
  left: 80%;
  animation-delay: 3.5s;
  animation-duration: 4.3s;
}
.particle:nth-child(9) {
  left: 90%;
  animation-delay: 4s;
  animation-duration: 3.7s;
}

/* Prose Styling for Readability */
.prose {
  max-width: 100%;
  line-height: 1.75;
  color: #e5e7eb;
}

.prose > * {
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.prose p {
  margin-bottom: 1.5em;
  color: #d1d5db;
  font-size: 1.0625rem;
}

.prose p:first-of-type {
  font-size: 1.125rem;
  color: #e5e7eb;
}

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  color: #ff8c42;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

.prose h3 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  color: #fcd34d;
  line-height: 1.35;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  color: #fbbf24;
  line-height: 1.4;
}

.prose ul,
.prose ol {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.75em;
}

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

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

.prose li {
  margin-top: 0.625em;
  margin-bottom: 0.625em;
  color: #d1d5db;
  line-height: 1.7;
}

.prose li::marker {
  color: #ff8c42;
}

.prose ul ul,
.prose ol ul,
.prose ul ol,
.prose ol ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose strong {
  color: #fcd34d;
  font-weight: 600;
}

.prose em {
  color: #fbbf24;
  font-style: italic;
}

.prose a {
  color: #ff8c42;
  text-decoration: underline;
  text-decoration-color: rgba(255, 140, 66, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

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

.prose blockquote {
  margin-top: 2em;
  margin-bottom: 2em;
  padding-left: 1.5em;
  border-left: 0.25rem solid #ff8c42;
  font-style: italic;
  color: #9ca3af;
  background: rgba(255, 107, 53, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0.75em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  margin-top: 2.5em;
  margin-bottom: 2.5em;
  border-collapse: collapse;
  font-size: 0.9375rem;
  max-width: 100%;
}

.prose thead {
  border-bottom: 2px solid rgba(255, 107, 53, 0.5);
}

.prose th {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1rem;
  text-align: left;
  border: 1px solid rgba(255, 107, 53, 0.3);
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: #e5e7eb;
  background: rgba(0, 0, 0, 0.3);
}

.prose tbody tr:hover td {
  background: rgba(255, 107, 53, 0.15);
  transition: background 0.2s ease;
}

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

.prose tbody tr:nth-child(even):hover td {
  background: rgba(255, 107, 53, 0.15);
}

.prose code {
  background: rgba(255, 107, 53, 0.1);
  color: #fcd34d;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background: rgba(0, 0, 0, 0.5);
  color: #e5e7eb;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(255, 107, 53, 0.3);
  margin-top: 3em;
  margin-bottom: 3em;
}

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

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

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.table-responsive::-webkit-scrollbar {
  height: 0.625rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.3125rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff6b35, #dc2626);
  border-radius: 0.3125rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #ff8c42, #ef4444);
}

/* Gradient Overlays */
.gradient-overlay-top {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.gradient-overlay-bottom {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

/* Fire Glow Text */
.fire-glow-text {
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.8), 0 0 20px rgba(255, 107, 53, 0.6), 0 0 30px rgba(220, 38, 38, 0.4);
}

/* Burger Menu Animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

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

/* Game Card Hover Effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.4), 0 0 60px rgba(252, 211, 77, 0.2);
}

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #7f1d1d 100%);
  border: 2px solid #fcd34d;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(252, 211, 77, 0.1), transparent);
  animation: spin-slow 8s linear infinite;
}

/* CTA Button Enhancements */
.cta-primary {
  background: linear-gradient(135deg, #ff6b35, #dc2626);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(252, 211, 77, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

.cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

/* Step Number Badge */
.step-badge {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  box-shadow: 0 4px 15px rgba(252, 211, 77, 0.4);
}

/* Provider Cloud Tags */
.provider-tag {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: #ff8c42;
  transform: translateY(-2px);
}
