/* Prism Eclipse Theme - Custom Animations & Overrides */

/* Keyframe Animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

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

@keyframes prismShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
  }
}

/* Parallax Animation Class */
.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

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

.marquee-scroll {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
}

/* Prism Eclipse Color Overrides */
.prism-gradient {
  background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533483);
  background-size: 400% 400%;
  animation: prismShift 8s ease infinite;
}

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

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

.prose h2 {
  color: #a78bfa;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  border-bottom: 2px solid #374151;
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: #06b6d4;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h4 {
  color: #fbbf24;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  text-align: justify;
  hyphens: auto;
}

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

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

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

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

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

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

.prose li::marker {
  color: #8b5cf6;
}

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

.prose thead {
  background: linear-gradient(135deg, #1f2937, #374151);
}

.prose th {
  padding: 1rem 0.75rem;
  border: 1px solid #4b5563;
  color: #a78bfa;
  font-weight: 600;
  text-align: left;
}

.prose td {
  padding: 0.875rem 0.75rem;
  border: 1px solid #374151;
  background-color: rgba(31, 41, 55, 0.3);
}

.prose tr:nth-child(even) td {
  background-color: rgba(55, 65, 81, 0.2);
}

.prose blockquote {
  border-left: 4px solid #8b5cf6;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #cbd5e1;
  background: rgba(139, 92, 246, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}

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

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

.prose a:hover {
  color: #0891b2;
}

.prose code {
  background-color: #374151;
  color: #fbbf24;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose pre {
  background-color: #1f2937;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

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

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

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

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

@media (max-width: 480px) {
  .prose ul,
  .prose ol {
    padding-left: 1.5rem;
  }

  .prose blockquote {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
  }
}

/* Custom Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #374151, #4b5563);
  border: 2px solid #8b5cf6;
}

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

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

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

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

body {
  overflow: auto;
}

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

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