/* Custom animations and overrides */

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
  }
}

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes particle-float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Animation classes */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

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

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

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: particle-float 4s linear infinite;
}

/* Parallax effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

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

/* Prose styling for readability */
.prose {
  max-width: none;
  color: #e5e7eb;
}

.prose h1 {
  color: #ffd700;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.prose h2 {
  color: #f3f4f6;
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #f3f4f6;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #d1d5db;
}

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

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

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

.prose a {
  color: #ffd700;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #ffc107;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.prose th,
.prose td {
  border: 1px solid #374151;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: #1f2937;
  color: #f9fafb;
  font-weight: 600;
}

.prose td {
  background-color: #111827;
  color: #d1d5db;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

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

/* Gradient backgrounds */
.gradient-crypto {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

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

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

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

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #000;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #ffd700;
  border: 2px solid #ffd700;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-2px);
}
