/* Electric Mirage Custom Animations & Styling */

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.3);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4), 0 0 40px rgba(0, 217, 255, 0.2);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(0, 217, 255, 0.4);
    filter: brightness(1.2);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  75% {
    opacity: 0.95;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

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

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

@keyframes heat-wave {
  0%,
  100% {
    transform: skewX(0deg) translateX(0);
    opacity: 0.6;
  }
  25% {
    transform: skewX(1deg) translateX(2px);
    opacity: 0.8;
  }
  75% {
    transform: skewX(-1deg) translateX(-2px);
    opacity: 0.7;
  }
}

/* Glass morphism effects */
.glass-panel {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.glass-panel-cyan {
  background: rgba(0, 217, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Neon text effects */
.neon-orange {
  color: #ff6b35;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.8), 0 0 20px rgba(255, 107, 53, 0.4);
}

.neon-cyan {
  color: #00d9ff;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.8), 0 0 20px rgba(0, 217, 255, 0.4);
}

.neon-gold {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 69, 0, 0.4);
}

/* Animated gradient backgrounds */
.gradient-electric {
  background: linear-gradient(135deg, #ff6b35 0%, #00d9ff 50%, #ff4500 100%);
  background-size: 200% 200%;
  animation: shimmer 4s ease-in-out infinite;
}

.gradient-mirage {
  background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  background-size: 200% 100%;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, #00d9ff, #00b8d4);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #00b8d4, #00d9ff);
  box-shadow: 0 6px 25px rgba(0, 217, 255, 0.6);
  transform: translateY(-2px);
}

/* Parallax container */
.parallax-container {
  position: relative;
  overflow: hidden;
}

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

/* Marquee animation */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  gap: 2rem;
  min-width: 100%;
  animation: marquee 30s linear infinite;
}

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

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

.table-responsive table {
  min-width: 600px;
}

/* Prose styling for readability */
.prose {
  color: #e5e5e5;
  line-height: 1.65;
  max-width: 100%;
}

.prose h2 {
  color: #ff6b35;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.prose h3 {
  color: #00d9ff;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.2);
}

.prose p {
  margin-bottom: 1.25em;
  color: #d1d1d1;
  font-size: clamp(0.9375rem, 2vw, 1rem);
}

.prose ul,
.prose ol {
  margin-left: 1.5em;
  margin-bottom: 1.25em;
  color: #d1d1d1;
  padding-left: 0.5em;
}

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

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

.prose li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

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

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

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

.prose a {
  color: #00d9ff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 217, 255, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #ff6b35;
  text-decoration-color: rgba(255, 107, 53, 0.6);
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em auto;
  display: block;
  border: 1px solid rgba(0, 217, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  overflow-x: auto;
  display: block;
}

.prose thead {
  background: rgba(255, 107, 53, 0.15);
}

.prose th {
  background: rgba(255, 107, 53, 0.2);
  color: #ffd700;
  padding: 0.875em 1em;
  text-align: left;
  border: 1px solid rgba(255, 107, 53, 0.3);
  font-weight: 600;
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border: 1px solid rgba(0, 217, 255, 0.2);
  color: #d1d1d1;
  background: rgba(10, 10, 10, 0.5);
}

.prose tr:nth-child(even) td {
  background: rgba(0, 217, 255, 0.05);
}

.prose tr:hover td {
  background: rgba(0, 217, 255, 0.1);
  transition: background 0.2s ease;
}

.prose blockquote {
  border-left: 0.25em solid #ff6b35;
  padding-left: 1.5em;
  margin: 1.5em 0;
  color: #b8b8b8;
  font-style: italic;
  background: rgba(255, 107, 53, 0.05);
  padding: 1em 1.5em;
  border-radius: 0.25rem;
}

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

.prose code {
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}

.prose pre {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 0.5rem;
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  padding: 0;
  color: #e5e5e5;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(255, 107, 53, 0.3);
  margin: 2.5em 0;
}

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

.animate-flicker {
  animation: flicker 3s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-heat {
  animation: heat-wave 2s ease-in-out infinite;
}

/* Card hover effects */
.card-electric {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.card-electric:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3), 0 0 20px rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.5);
}

/* Badge styles */
.badge-bonus {
  background: linear-gradient(135deg, #ffd700, #ff4500);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Scatter effect for decorative elements */
.scatter-coin {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd700, #ff4500);
  opacity: 0.6;
  animation: float 4s ease-in-out infinite;
}

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

  .prose h2 {
    margin-top: 2em;
  }

  .prose h3 {
    margin-top: 1.5em;
  }

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

  .prose th,
  .prose td {
    padding: 0.625em 0.75em;
  }
}

@media (max-width: 480px) {
  .prose ul,
  .prose ol {
    margin-left: 1em;
    padding-left: 0.25em;
  }

  .prose blockquote {
    padding-left: 1em;
    padding-right: 0.5em;
  }
}

@media (max-width: 1023px) {
  .burger-menu {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }
}

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