/* PyroFlux Theme - Custom Animations & Overrides */

/* Flame Animation Keyframes */
@keyframes flameFlicker {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    transform: scale(1.05) rotate(1deg);
    filter: hue-rotate(10deg) brightness(1.1);
  }
  50% {
    transform: scale(0.98) rotate(-1deg);
    filter: hue-rotate(-5deg) brightness(0.9);
  }
  75% {
    transform: scale(1.02) rotate(0.5deg);
    filter: hue-rotate(15deg) brightness(1.05);
  }
}

@keyframes fireGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6);
  }
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(5px) rotate(-0.5deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.8), 0 0 35px rgba(255, 215, 0, 0.4);
  }
}

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

/* Base Overrides */
html,
body {
  overflow: auto !important;
  scroll-behavior: smooth;
}

/* Flame Background Animation */
.flame-bg {
  background: linear-gradient(45deg, #000000, #1a0000, #330000);
  position: relative;
  overflow: hidden;
}

.flame-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  animation: flameFlicker 4s ease-in-out infinite;
  pointer-events: none;
}

/* CTA Button Styles */
.cta-primary {
  background: linear-gradient(135deg, #ff4500, #ffd700);
  animation: pulseGlow 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 69, 0, 0.9), 0 0 50px rgba(255, 215, 0, 0.6);
}

.cta-secondary {
  border: 2px solid #ff4500;
  background: rgba(255, 69, 0, 0.1);
  animation: fireGlow 3s ease-in-out infinite;
}

/* Parallax Elements */
.parallax-element {
  animation: parallaxFloat 6s ease-in-out infinite;
}

/* Game Cards */
.game-card {
  background: rgba(255, 69, 0, 0.05);
  border: 1px solid rgba(255, 69, 0, 0.2);
  transition: all 0.3s ease;
}

.game-card:hover {
  background: rgba(255, 69, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 69, 0, 0.3);
}

/* Marquee Animation */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 20s linear infinite;
}

/* Prose Styling for Readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #e5e5e5;
  font-size: 1rem;
}

.prose h2 {
  color: #ffd700;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.prose h3 {
  color: #ff4500;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.5rem;
  color: #cccccc;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.prose li {
  margin-bottom: 0.75rem;
  color: #cccccc;
  line-height: 1.6;
}

.prose ul li::marker {
  color: #ff4500;
}

.prose ol li::marker {
  color: #ffd700;
  font-weight: 600;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table tbody {
  display: table;
  width: 100%;
}

.prose th,
.prose td {
  padding: 1rem 0.75rem;
  border: 1px solid rgba(255, 69, 0, 0.3);
  text-align: left;
  white-space: normal;
}

.prose th {
  background: rgba(255, 69, 0, 0.15);
  color: #ffd700;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.prose td {
  background: rgba(0, 0, 0, 0.3);
}

.prose blockquote {
  border-left: 0.25rem solid #ff4500;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #ffd700;
  background: rgba(255, 69, 0, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 10px 25px rgba(255, 69, 0, 0.2);
}

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

.prose em {
  color: #ff4500;
}

.prose code {
  background: rgba(255, 69, 0, 0.1);
  color: #ffd700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

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

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

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

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

  .prose th,
  .prose td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .prose {
    font-size: 0.875rem;
  }

  .prose h2 {
    font-size: 1.375rem;
  }

  .prose h3 {
    font-size: 1.125rem;
  }
}

/* Bonus Badge Glow */
.bonus-badge {
  background: linear-gradient(135deg, #ff4500, #ffd700);
  animation: fireGlow 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
}

/* Step Numbers */
.step-number {
  background: linear-gradient(135deg, #ff4500, #ffd700);
  animation: pulseGlow 3s ease-in-out infinite;
}

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

.provider-tag:hover {
  background: rgba(255, 69, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
}

/* Mobile Navigation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Responsive Utilities */
@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}
