/* ========================================
   SUPABET SUPERNOVA SPIN CUSTOM STYLES
   ======================================== */

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

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
  }
  50% { 
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8), 0 0 60px rgba(255, 215, 0, 0.5);
  }
}

@keyframes starburst {
  0% { transform: rotate(0deg) scale(1); opacity: 1; }
  100% { transform: rotate(360deg) scale(1.2); opacity: 0; }
}

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

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

@keyframes nova-burst {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes coin-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

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

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

.starburst-bg {
  position: relative;
  overflow: hidden;
}

.starburst-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
  animation: starburst 4s linear infinite;
  pointer-events: none;
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

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

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

.shimmer-effect {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0) 0%,
    rgba(255, 215, 0, 0.3) 50%,
    rgba(255, 215, 0, 0) 100%
  );
  background-size: 2000px 100%;
  animation: shimmer 3s infinite;
}

.nova-burst {
  animation: nova-burst 0.6s ease-out;
}

.coin-spin {
  animation: coin-spin 2s linear infinite;
}

/* Gradient Backgrounds */
.cosmic-gradient {
  background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 25%, #4a2c6b 50%, #2d1b4e 75%, #1a0033 100%);
}

.supernova-gradient {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.9) 0%, rgba(75, 0, 130, 0.9) 50%, rgba(255, 215, 0, 0.6) 100%);
}

.gold-violet-gradient {
  background: linear-gradient(90deg, #ffd700 0%, #8a2be2 50%, #ffd700 100%);
}

/* Parallax Layers */
.parallax-wrapper {
  perspective: 1px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.parallax-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.parallax-base {
  transform: translateZ(0);
}

.parallax-back {
  transform: translateZ(-1px) scale(2);
}

.parallax-deep {
  transform: translateZ(-2px) scale(3);
}

/* Prose Styling for Readability */
.prose {
  max-width: 100%;
  color: #e0d4f7;
  line-height: 1.7;
}

.prose h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #ffd700;
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.prose h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #d4a5ff;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

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

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

.prose a {
  color: #ba86fc;
  text-decoration: underline;
  text-decoration-color: rgba(186, 134, 252, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #ffd700;
  text-decoration-color: rgba(255, 215, 0, 0.5);
}

.prose ul,
.prose ol {
  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;
  padding-left: 0.375em;
  line-height: 1.7;
  color: #e0d4f7;
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  background: rgba(25, 10, 45, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 215, 0, 0.2));
}

.prose th {
  padding: 1em;
  text-align: left;
  font-weight: 600;
  color: #ffd700;
  border-bottom: 2px solid rgba(186, 134, 252, 0.3);
}

.prose td {
  padding: 0.875em 1em;
  border-bottom: 1px solid rgba(186, 134, 252, 0.15);
  color: #e0d4f7;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:hover {
  background: rgba(138, 43, 226, 0.15);
}

.prose blockquote {
  margin: 1.75em 0;
  padding: 1.25em 1.5em;
  border-left: 4px solid #ba86fc;
  background: rgba(138, 43, 226, 0.15);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #d4a5ff;
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2em 0;
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
}

.prose code {
  background: rgba(138, 43, 226, 0.2);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #ba86fc;
}

.prose pre {
  background: rgba(25, 10, 45, 0.8);
  padding: 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.75em 0;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  margin: 1.75em 0;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(26, 0, 51, 0.5);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #8a2be2, #ffd700);
  border-radius: 4px;
}

/* Cosmic Background Pattern */
.cosmic-stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffd700, transparent),
    radial-gradient(2px 2px at 60px 70px, #da70d6, transparent),
    radial-gradient(1px 1px at 50px 50px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, #ffd700, transparent),
    radial-gradient(2px 2px at 90px 10px, #da70d6, transparent);
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* CTA Button Enhancement */
.cta-supernova {
  position: relative;
  overflow: hidden;
  transform: perspective(1000px);
  transition: transform 0.3s ease;
}

.cta-supernova::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-supernova:hover::before {
  width: 300px;
  height: 300px;
}

.cta-supernova:hover {
  transform: perspective(1000px) translateZ(10px);
}

/* Badge Glow Effect */
.badge-glow {
  box-shadow: 
    0 0 20px rgba(138, 43, 226, 0.6),
    0 0 40px rgba(255, 215, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  background: linear-gradient(180deg, rgba(26, 0, 51, 0.98) 0%, rgba(45, 27, 78, 0.98) 100%);
  backdrop-filter: blur(10px);
}

/* Feature Card Hover Effect */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(138, 43, 226, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
}

/* Adding mobile-specific prose adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }
  
  .prose h2 {
    margin-top: 1.5em;
  }
  
  .prose h3 {
    margin-top: 1.25em;
  }
  
  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.75em;
  }
}
