/* Custom animations and overrides */

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.8);
  }
}

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

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

.floating-card {
  animation: float 6s ease-in-out infinite;
}

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

.wheel-container {
  position: relative;
}

#wheel {
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Prose styling for better readability */
.prose-invert {
  color: #d1d5db;
}

.prose-invert h1,
.prose-invert h2,
.prose-invert h3,
.prose-invert h4 {
  color: #ffffff;
  font-weight: 700;
}

.prose-invert h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.prose-invert h2 {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-invert h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-invert p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

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

.prose-invert li {
  margin-bottom: 0.5rem;
}

.prose-invert a {
  color: #ec4899;
  text-decoration: underline;
}

.prose-invert a:hover {
  color: #f472b6;
}

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

.prose-invert code {
  background: #1e293b;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose-invert blockquote {
  border-left: 4px solid #ec4899;
  padding-left: 1rem;
  font-style: italic;
  color: #9ca3af;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(to right, #ec4899, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Parallax effect for background */
@keyframes parallax-bg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  background-size: 200% 200%;
  animation: parallax-bg 20s ease infinite;
}

/* Card hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Slot machine tilt effect */
@keyframes tilt {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

.slot-tilt {
  animation: tilt 2s ease-in-out infinite;
}

/* Responsive font sizing */
@media (max-width: 768px) {
  .prose-invert h1 {
    font-size: 1.875rem;
  }

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

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

/* Focus styles for accessibility */
a:focus,
button:focus,
details:focus {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}

/* Loading animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(to right, #1e293b 0%, #334155 50%, #1e293b 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}
