/* Custom animations and overrides */
@keyframes emeraldPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
  }
}

@keyframes diceGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    transform: rotate(0deg);
  }
  25% {
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    transform: rotate(90deg);
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
    transform: rotate(180deg);
  }
  75% {
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.9));
    transform: rotate(270deg);
  }
}

@keyframes neonHaze {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.5), 0 0 20px rgba(147, 51, 234, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(147, 51, 234, 0.8), 0 0 40px rgba(147, 51, 234, 0.5);
  }
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

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

@keyframes shakeReels {
  0%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-2px);
  }
  20% {
    transform: translateX(2px);
  }
  30% {
    transform: translateX(-2px);
  }
  40% {
    transform: translateX(2px);
  }
  50% {
    transform: translateX(-1px);
  }
  60% {
    transform: translateX(1px);
  }
  70% {
    transform: translateX(-1px);
  }
  80% {
    transform: translateX(1px);
  }
  90% {
    transform: translateX(-1px);
  }
}

/* Utility classes */
.emerald-pulse {
  animation: emeraldPulse 2s ease-in-out infinite;
}

.dice-glow {
  animation: diceGlow 3s linear infinite;
}

.neon-haze {
  animation: neonHaze 2.5s ease-in-out infinite;
}

.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.marquee-scroll {
  animation: marqueeScroll 20s linear infinite;
}

.shake-reels {
  animation: shakeReels 0.5s ease-in-out;
}

/* Custom prose styling for readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #374151;
  font-size: 1rem;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
  line-height: 1.3;
  border-bottom: 2px solid #10b981;
  padding-bottom: 0.5rem;
}

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

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

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

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

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

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

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

.prose table tbody {
  display: table;
  width: 100%;
}

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

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

.prose tr:nth-child(even) {
  background-color: #f9fafb;
}

.prose blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.prose em {
  font-style: italic;
}

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

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

/* Responsive prose adjustments */
@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.75rem 0.5rem;
  }
}

/* Custom overrides */
.bg-gradient-lucky {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.bg-gradient-neon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #10b981, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .mobile-menu-bg {
    background: rgba(0, 0, 0, 0.95) !important;
  }
}

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

body {
  overflow: auto;
}
