/* Cyber Mirage Strip Theme - Custom Animations & Overrides */

/* Particle Animation Background */
.cyber-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.6;
  }
}

/* Cyber Glow Effects */
.cyber-glow {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.1);
  animation: cyberPulse 2s ease-in-out infinite alternate;
}

@keyframes cyberPulse {
  0% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.1);
  }
  100% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5), 0 0 60px rgba(6, 182, 212, 0.3), inset 0 0 30px rgba(6, 182, 212, 0.2);
  }
}

/* Bonus Badge Animation */
.cyber-bonus-badge {
  animation: holographicShimmer 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.cyber-bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmerSweep 4s ease-in-out infinite;
}

@keyframes holographicShimmer {
  0%,
  100% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.02);
    filter: hue-rotate(10deg);
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

/* Step Badge Glow */
.cyber-step-badge {
  animation: stepGlow 2s ease-in-out infinite alternate;
}

@keyframes stepGlow {
  0% {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
  }
  100% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.8);
  }
}

/* Game Card Hover Effects */
.cyber-game-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cyber-game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
  transition: left 0.5s ease;
}

.cyber-game-card:hover::before {
  left: 100%;
}

.cyber-game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3), 0 0 20px rgba(147, 51, 234, 0.2);
}

/* Review Block Effects */
.cyber-review-block {
  transition: all 0.3s ease;
  position: relative;
}

.cyber-review-block:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.6);
}

/* Promo Card Effects */
.cyber-promo-card {
  transition: all 0.3s ease;
  position: relative;
}

.cyber-promo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

/* FAQ Item Effects */
.cyber-faq-item {
  transition: all 0.3s ease;
}

.cyber-faq-item:hover {
  border-color: rgba(6, 182, 212, 0.5);
  background-color: rgba(30, 41, 59, 0.7);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #8b5cf6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0891b2, #7c3aed);
}

/* Prose Styling for Readability */
.prose {
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1.25em;
  color: rgba(203, 213, 225, 0.9);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h1 {
  font-size: 2.25em;
  line-height: 1.1;
}

.prose h2 {
  font-size: 1.875em;
  line-height: 1.2;
}

.prose h3 {
  font-size: 1.5em;
  line-height: 1.3;
}

.prose a {
  color: #06b6d4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #0891b2;
  text-decoration: underline;
}

.prose ul,
.prose ol {
  margin: 1.25em 0;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.5em 0;
  color: rgba(203, 213, 225, 0.9);
}

.prose blockquote {
  border-left: 4px solid #06b6d4;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: rgba(203, 213, 225, 0.8);
}

.prose code {
  background-color: rgba(30, 41, 59, 0.5);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #06b6d4;
}

.prose pre {
  background-color: rgba(15, 23, 42, 0.8);
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose th,
.prose td {
  border: 1px solid rgba(71, 85, 105, 0.5);
  padding: 0.75em;
  text-align: left;
}

.prose th {
  background-color: rgba(30, 41, 59, 0.5);
  color: #06b6d4;
  font-weight: 600;
}

.prose td {
  color: rgba(203, 213, 225, 0.9);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .cyber-bonus-badge {
    padding: 1rem;
  }

  .cyber-game-card {
    margin-bottom: 1rem;
  }

  .prose {
    font-size: 0.9rem;
  }

  .prose h1 {
    font-size: 1.875rem;
  }

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cyber-particles {
    display: none;
  }

  .cyber-glow {
    box-shadow: none;
    border: 2px solid #06b6d4;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cyber-particles,
  .cyber-glow,
  .cyber-bonus-badge,
  .cyber-step-badge {
    animation: none;
  }

  .cyber-game-card:hover,
  .cyber-review-block:hover,
  .cyber-promo-card:hover {
    transform: none;
  }
}
