/* Luxe Spin Theme - Custom Animations & Prose Styling */

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

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

@keyframes coin-burst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 0 60px rgba(59, 130, 246, 0.5);
  }
}

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

.parallax-float-delayed {
  animation: parallax-float 8s ease-in-out infinite;
  animation-delay: 1s;
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Coin Burst Effect */
.coin-burst {
  animation: coin-burst 2s ease-out infinite;
}

/* Shimmer Effect for CTAs */
.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Glow Pulse for Bonus Badge */
.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Enhanced prose styling for markdown content with better typography and responsive design */
.prose {
  max-width: 100%;
  line-height: 1.75;
  color: #e5e7eb;
}

.prose h2 {
  color: #fbbf24;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h3 {
  color: #fcd34d;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.4;
}

.prose h4 {
  color: #fde68a;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

.prose p {
  margin-bottom: 1.5em;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.prose p:first-of-type {
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  line-height: 1.8;
}

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

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

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

.prose li {
  margin-bottom: 0.625em;
  color: #d1d5db;
  padding-left: 0.375em;
  line-height: 1.7;
}

.prose li::marker {
  color: #fbbf24;
}

.prose ul ul,
.prose ol ul,
.prose ul ol,
.prose ol ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

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

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

.prose a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #93c5fd;
  text-decoration-thickness: 2px;
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  overflow-x: auto;
}

.prose thead {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(59, 130, 246, 0.1));
}

.prose th {
  background: transparent;
  color: #fbbf24;
  padding: 0.875rem 1rem;
  text-align: left;
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-weight: 600;
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #d1d5db;
  vertical-align: top;
}

.prose tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.3);
}

.prose tbody tr:hover {
  background: rgba(251, 191, 36, 0.05);
  transition: background 0.2s ease;
}

.prose blockquote {
  border-left: 0.25rem solid #fbbf24;
  padding-left: 1.5em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin: 2em 0;
  font-style: italic;
  color: #cbd5e1;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0.5em;
}

.prose code {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875em;
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(251, 191, 36, 0.3);
  margin: 3em 0;
}

/* Enhanced Table responsive wrapper with enhanced scrolling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.table-responsive::-webkit-scrollbar {
  height: 0.625rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #fcd34d, #fbbf24);
}

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

  .prose h2 {
    margin-top: 2em;
  }

  .prose h3 {
    margin-top: 1.75em;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.5em;
  }

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

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sapphire Glow */
.sapphire-glow {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), inset 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Amber Glow */
.amber-glow {
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.5), inset 0 0 15px rgba(251, 191, 36, 0.3);
}

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

/* Mobile Menu Transition */
.mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Card Hover Effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button Hover Effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Reel Frame Effect */
.reel-frame {
  border: 3px solid;
  border-image: linear-gradient(135deg, #fbbf24, #3b82f6, #fbbf24) 1;
  position: relative;
}

.reel-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #fbbf24, #3b82f6);
  z-index: -1;
  opacity: 0.3;
  filter: blur(10px);
}
