/* Custom Animations & Styles */

/* Pulse Glow Effect */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 10, 120, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 10, 120, 0.8);
  }
}

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

/* Floating Hero Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Withdrawal Progress Animation */
@keyframes withdrawalProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.withdrawal-progress {
  animation: withdrawalProgress 3s ease-in-out forwards;
}

/* Parallax Background */
body {
  background-attachment: fixed;
  background-size: cover;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #ff0a78, #ff3d9a, #ff70b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Hover Effects */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 10, 120, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #ff0a78;
  border-radius: 5px;
}

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

/* Prose Styling for Readability */
.prose {
  color: #e5e7eb;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25rem;
}

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

.prose h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.prose h3 {
  font-size: 1.5rem;
  line-height: 2rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

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

.prose a {
  color: #ff0a78;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.prose code {
  background: rgba(255, 10, 120, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

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

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

.prose th {
  background: rgba(255, 10, 120, 0.1);
  padding: 0.75rem;
  text-align: left;
  font-weight: 700;
}

.prose td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  color: #ff0a78;
}

/* Marquee Animation (optional) */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee {
  animation: marquee 30s linear infinite;
}

/* Tilt Effect (optional) */
.tilt {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  transition: transform 0.3s ease;
}

.tilt:hover {
  transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
}

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

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

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

/* Particle Background Effect (CSS only) */
@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translate(10px, -10px) rotate(90deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(-5px, -20px) rotate(180deg);
    opacity: 0.3;
  }
  75% {
    transform: translate(-15px, -10px) rotate(270deg);
    opacity: 0.5;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 10, 120, 0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 61, 154, 0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 10, 120, 0.2), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 61, 154, 0.2), transparent);
  background-size: 200% 200%;
  animation: particle-float 20s ease-in-out infinite;
}

/* Ensure content stays above particles */
header,
main,
footer {
  position: relative;
  z-index: 10;
}
