/* ============================================
   STAKEBOSS SOVEREIGN LUXE PULSE THEME
   Royal purple, soft gold halo edges
   ============================================ */

/* === CUSTOM ANIMATIONS === */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 1.5rem rgba(168, 85, 247, 0.4), 0 0 3rem rgba(217, 179, 95, 0.2);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(168, 85, 247, 0.6), 0 0 4rem rgba(217, 179, 95, 0.3);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
}

@keyframes particle {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(3rem) scale(0.3);
    opacity: 0;
  }
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === UTILITY ANIMATIONS === */

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    rgba(217, 179, 95, 0.1) 0%,
    rgba(217, 179, 95, 0.4) 50%,
    rgba(217, 179, 95, 0.1) 100%
  );
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.animate-pulseGlow {
  animation: pulseGlow 3s ease-in-out infinite;
}

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

/* === PARTICLE EFFECT === */

.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: radial-gradient(circle, rgba(217, 179, 95, 0.8), transparent);
  border-radius: 50%;
  animation: particle linear infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 15s;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  left: 25%;
  animation-duration: 18s;
  animation-delay: 2s;
}
.particle:nth-child(3) {
  left: 40%;
  animation-duration: 20s;
  animation-delay: 4s;
}
.particle:nth-child(4) {
  left: 55%;
  animation-duration: 16s;
  animation-delay: 1s;
}
.particle:nth-child(5) {
  left: 70%;
  animation-duration: 19s;
  animation-delay: 3s;
}
.particle:nth-child(6) {
  left: 85%;
  animation-duration: 17s;
  animation-delay: 5s;
}

/* === PARALLAX ELEMENTS === */

.parallax-layer {
  transition: transform 0.1s ease-out;
}

/* === CUSTOM GRADIENTS === */

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

.gradient-gold {
  background: linear-gradient(135deg, #d9b35f 0%, #f4d799 50%, #d9b35f 100%);
}

.gradient-luxe {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.9) 0%,
    rgba(124, 58, 237, 0.8) 50%,
    rgba(217, 179, 95, 0.6) 100%
  );
}

/* === GOLD HALO EFFECT === */

.gold-halo {
  position: relative;
}

.gold-halo::before {
  content: "";
  position: absolute;
  inset: -0.125rem;
  background: linear-gradient(45deg, #d9b35f, #f4d799, #d9b35f);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
  filter: blur(0.5rem);
}

/* === PROSE STYLING FOR MARKDOWN CONTENT === */

.prose {
  max-width: 100%;
  color: #e5e7eb;
  line-height: 1.7;
}

.prose h2 {
  color: #f4d799;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f4d799 0%, #d9b35f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h3 {
  color: #c4b5fd;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

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

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

.prose a {
  color: #f4d799;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 0.0625rem solid rgba(244, 215, 153, 0.3);
}

.prose a:hover {
  color: #fde68a;
  border-bottom-color: #f4d799;
}

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

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

.prose ul > li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
}

.prose ul > li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #d9b35f;
  font-size: 0.75em;
  top: 0.3em;
}

.prose ol {
  list-style-type: none;
  counter-reset: list-counter;
}

.prose ol > li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
}

.prose ol > li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: #d9b35f;
  font-weight: 600;
  font-size: 1em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-size: clamp(0.875rem, 2vw, 1rem);
  background: rgba(30, 27, 75, 0.4);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.6), rgba(124, 58, 237, 0.4));
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #f4d799;
  text-transform: uppercase;
  font-size: 0.875em;
  letter-spacing: 0.05em;
  border-bottom: 0.125rem solid rgba(217, 179, 95, 0.3);
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(139, 92, 246, 0.2);
  color: #e5e7eb;
}

.prose tbody tr:hover {
  background: rgba(124, 58, 237, 0.1);
}

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

.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1.5em;
  border-left: 0.25rem solid #d9b35f;
  font-style: italic;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.05);
  padding: 1em 1em 1em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
}

.prose code {
  background: rgba(107, 33, 168, 0.3);
  color: #f4d799;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Courier New", monospace;
}

/* === TABLE RESPONSIVE WRAPPER === */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* === CUSTOM BUTTON STYLES === */

.btn-royal {
  background: linear-gradient(135deg, #6b21a8 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-royal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-royal:hover::before {
  opacity: 1;
}

.btn-royal span {
  position: relative;
  z-index: 1;
}

.btn-gold {
  background: linear-gradient(135deg, #d9b35f 0%, #f4d799 100%);
  color: #1e1b4b;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0.25rem 1rem rgba(217, 179, 95, 0.3);
}

.btn-gold:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(217, 179, 95, 0.5);
}

/* === RESPONSIVE UTILITIES === */

@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

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

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

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

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