/* Sunburst Royale Custom Animations & Overrides */

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

@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.5), 0 0 40px rgba(255, 127, 80, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 127, 80, 0.5);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Marquee Animation */
.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;
}

/* Parallax Layers */
.parallax-wrapper {
  position: relative;
  overflow: hidden;
}

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

/* Sunburst Gradient Backgrounds */
.sunburst-gradient {
  background: linear-gradient(135deg, #ff7f50 0%, #ffd700 50%, #ff6b9d 100%);
}

.sunburst-radial {
  background: radial-gradient(circle at center, #ffd700 0%, #ff7f50 50%, #1a1a1a 100%);
}

.coral-glow {
  box-shadow: 0 4px 20px rgba(255, 127, 80, 0.4);
}

.gold-glow {
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.neon-teal {
  text-shadow: 0 0 10px rgba(64, 224, 208, 0.8), 0 0 20px rgba(64, 224, 208, 0.5);
}

.neon-pink {
  text-shadow: 0 0 10px rgba(255, 107, 157, 0.8), 0 0 20px rgba(255, 107, 157, 0.5);
}

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

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

/* Sparkle Effect */
.sparkle {
  position: relative;
}

.sparkle::before,
.sparkle::after {
  content: "✨";
  position: absolute;
  animation: sparkle 2s ease-in-out infinite;
  font-size: 1.5rem;
}

.sparkle::before {
  top: -10px;
  left: -10px;
  animation-delay: 0.5s;
}

.sparkle::after {
  bottom: -10px;
  right: -10px;
  animation-delay: 1s;
}

/* Spinning Reel Effect */
.spin-reel {
  animation: spin-slow 20s linear infinite;
}

/* Enhanced Prose Styling for Markdown Content Readability */
.prose {
  max-width: 75ch;
  line-height: 1.75;
  color: #e5e5e5;
  font-size: 1rem;
}

.prose > * {
  margin-top: 0;
  margin-bottom: 0;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: #e5e5e5;
  font-size: 1em;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.875em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #ffd700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

.prose h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  color: #ff7f50;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.prose h4 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #40e0d0;
  line-height: 1.5;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  list-style-position: outside;
}

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #e5e5e5;
  line-height: 1.75;
  padding-left: 0.375em;
}

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

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

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

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

.prose a {
  color: #40e0d0;
  text-decoration: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.125em;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.prose a:hover {
  color: #ff6b9d;
  text-decoration-color: #ff6b9d;
}

.prose blockquote {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1.5em;
  padding-top: 0.75em;
  padding-bottom: 0.75em;
  border-left: 0.25em solid #ff7f50;
  background: rgba(255, 127, 80, 0.08);
  font-style: italic;
  color: #f0f0f0;
  quotes: "" " " "" "'" "'";
}

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

.prose blockquote p:first-child {
  margin-top: 0;
}

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

.prose code {
  color: #ff6b9d;
  background: rgba(255, 107, 157, 0.1);
  padding: 0.125em 0.375em;
  border-radius: 0.25em;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  padding: 1.25em 1.5em;
  background: rgba(26, 26, 26, 0.8);
  border: 0.0625em solid #333;
  border-radius: 0.5em;
  overflow-x: auto;
  line-height: 1.7;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5em;
  box-shadow: 0 0.25rem 1.25rem rgba(255, 215, 0, 0.2);
}

.prose figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose figure img {
  margin-top: 0;
  margin-bottom: 0;
}

.prose figcaption {
  margin-top: 0.75em;
  font-size: 0.875em;
  color: #b0b0b0;
  text-align: center;
  font-style: italic;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.9375em;
  line-height: 1.6;
}

.prose thead {
  border-bottom: 0.125em solid #ffd700;
}

.prose th {
  background: linear-gradient(135deg, #ff7f50 0%, #ffd700 100%);
  color: #1a1a1a;
  font-weight: 600;
  padding: 0.75em 1em;
  text-align: left;
  border: 0.0625em solid #ffd700;
  vertical-align: middle;
}

.prose td {
  padding: 0.75em 1em;
  border: 0.0625em solid #333;
  color: #e5e5e5;
  background: rgba(26, 26, 26, 0.5);
  vertical-align: top;
}

.prose tbody tr {
  border-bottom: 0.0625em solid #2a2a2a;
}

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

.prose tr:hover td {
  background: rgba(255, 127, 80, 0.15);
  transition: background 0.2s ease;
}

.prose hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border: none;
  border-top: 0.0625em solid #333;
  background: linear-gradient(90deg, transparent, #ff7f50, #ffd700, #ff7f50, transparent);
  height: 0.125em;
}

/* Table Responsive Wrapper with overflow-x auto */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 0.5em;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
}

.table-responsive table {
  margin: 0;
  min-width: 100%;
}

/* Responsive typography adjustments */
@media (max-width: 1024px) {
  .prose {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .prose h2 {
    font-size: 1.75em;
  }

  .prose h3 {
    font-size: 1.375em;
  }

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

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

  .prose h2 {
    font-size: 1.5em;
    margin-top: 1.75em;
  }

  .prose h3 {
    font-size: 1.25em;
    margin-top: 1.5em;
  }

  .prose h4 {
    font-size: 1.125em;
  }

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

  .prose blockquote {
    padding-left: 1em;
    padding-right: 0.5em;
  }

  .prose table {
    font-size: 0.8125em;
  }

  .prose th,
  .prose td {
    padding: 0.5em 0.75em;
  }
}

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

  .prose th,
  .prose td {
    padding: 0.5em;
  }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff7f50 0%, #ffd700 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd700 0%, #ff7f50 100%);
}

/* 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.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

/* Burger Menu Animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Slide */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Badge Styles */
.bonus-badge {
  position: relative;
  background: linear-gradient(135deg, #ffd700 0%, #ff7f50 100%);
  border: 3px solid #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.bonus-badge::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #ff7f50, #ffd700, #40e0d0, #ff6b9d);
  border-radius: inherit;
  z-index: -1;
  animation: spin-slow 10s linear infinite;
  opacity: 0.7;
}

/* Step Number Badge */
.step-badge {
  background: linear-gradient(135deg, #ff7f50 0%, #ffd700 100%);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

/* Game Provider Cloud */
.provider-tag {
  background: rgba(255, 127, 80, 0.2);
  border: 1px solid #ff7f50;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(255, 215, 0, 0.3);
  border-color: #ffd700;
  transform: scale(1.05);
}

/* Disclaimer Box */
.disclaimer {
  background: rgba(255, 127, 80, 0.1);
  border-left: 4px solid #ff7f50;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #e5e5e5;
}
