/* Royal Slotwright Custom Animations & Prose */

:root {
  --royal-ruby: #8B0000;
  --royal-gold: #FFD700;
  --royal-cream: #FFF8DC;
  --velvet-purple: #4B0082;
  --shadow-gold: rgba(255, 215, 0, 0.3);
}

/* Parallax Hero Animation */
@keyframes parallaxFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

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

/* Marquee Animation for Game Providers */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
}

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

/* Crown SVG Pattern Background */
.crown-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 15l5 10h10l-8 6 3 10-10-7-10 7 3-10-8-6h10z' fill='%23FFD700' opacity='0.08'/%3E%3C/svg%3E");
}

/* Velvet Texture Overlay */
.velvet-texture {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.9) 0%, rgba(139, 0, 0, 0.85) 100%);
  position: relative;
}

.velvet-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 215, 0, 0.03) 2px,
      rgba(255, 215, 0, 0.03) 4px
    );
  pointer-events: none;
}

/* Gold Shimmer Effect */
@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.gold-shimmer {
  background: linear-gradient(
    90deg,
    var(--royal-gold) 0%,
    #FFF 50%,
    var(--royal-gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 3s linear infinite;
}

/* Ruby Glow Buttons */
.btn-royal {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-gold);
  transition: all 0.3s ease;
}

.btn-royal::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;
}

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

.btn-royal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--shadow-gold);
}

/* Bonus Badge Pulse */
@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
  }
}

.bonus-badge {
  animation: badgePulse 2s ease-in-out infinite;
}

/* Step Number Badges */
.step-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--royal-ruby), var(--velvet-purple));
  border: 3px solid var(--royal-gold);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

/* Game Card Hover */
.game-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--royal-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.game-card:hover::after {
  opacity: 1;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

/* Enhanced prose styling for markdown content with better typography and visual hierarchy */
.prose {
  max-width: 100%;
  line-height: 1.75;
  color: #1a1a1a;
  font-size: 1.0625rem;
}

.prose > * {
  margin-bottom: 1.25em;
}

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

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

.prose h2 {
  color: var(--royal-ruby);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 3px solid var(--royal-gold);
  letter-spacing: -0.02em;
}

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

.prose h3 {
  color: var(--velvet-purple);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

.prose p {
  margin-bottom: 1.5em;
  line-height: 1.75;
  color: #2d2d2d;
}

.prose strong {
  color: var(--royal-ruby);
  font-weight: 700;
}

.prose em {
  font-style: italic;
  color: var(--velvet-purple);
}

.prose a {
  color: var(--royal-ruby);
  text-decoration: underline;
  text-decoration-color: var(--royal-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.prose a:hover {
  color: var(--royal-gold);
  text-decoration-color: var(--royal-ruby);
}

.prose ul {
  list-style-type: none;
  padding-left: 0;
  margin: 1.5em 0;
}

.prose ul li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
  line-height: 1.7;
}

.prose ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--royal-gold);
  font-size: 0.875em;
  top: 0.125em;
}

.prose ol {
  counter-reset: list-counter;
  list-style: none;
  padding-left: 0;
  margin: 1.5em 0;
}

.prose ol li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.75em;
  counter-increment: list-counter;
  line-height: 1.7;
}

.prose ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: var(--royal-ruby);
  font-weight: 700;
  font-size: 1.125em;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2em 0;
  font-size: 0.9375rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prose thead {
  background: linear-gradient(135deg, var(--royal-ruby) 0%, var(--velvet-purple) 100%);
}

.prose th {
  color: var(--royal-cream);
  padding: 1em 1.25em;
  text-align: left;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.prose th:first-child {
  padding-left: 1.5em;
}

.prose th:last-child {
  padding-right: 1.5em;
}

.prose td {
  padding: 1em 1.25em;
  border-bottom: 1px solid rgba(139, 0, 0, 0.1);
  color: #2d2d2d;
  vertical-align: top;
}

.prose td:first-child {
  padding-left: 1.5em;
  font-weight: 500;
}

.prose td:last-child {
  padding-right: 1.5em;
}

.prose tbody tr {
  background: #ffffff;
  transition: background-color 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: rgba(255, 215, 0, 0.03);
}

.prose tbody tr:hover {
  background: rgba(255, 215, 0, 0.08);
}

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

.prose blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  background: rgba(255, 215, 0, 0.05);
  border-left: 4px solid var(--royal-gold);
  font-style: italic;
  color: var(--velvet-purple);
  border-radius: 0 8px 8px 0;
}

.prose blockquote p {
  margin: 0;
  color: inherit;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2em auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.prose hr {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
  border: none;
  margin: 3em 0;
}

.prose code {
  background: rgba(75, 0, 130, 0.08);
  color: var(--velvet-purple);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

.prose pre {
  background: rgba(75, 0, 130, 0.05);
  padding: 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }
  
  .prose h2 {
    font-size: 1.625rem;
    margin-top: 2em;
  }
  
  .prose h3 {
    font-size: 1.375rem;
    margin-top: 1.75em;
  }
  
  .prose ul li,
  .prose ol li {
    padding-left: 1.75em;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.75em 1em;
  }
  
  .prose th:first-child,
  .prose td:first-child {
    padding-left: 1em;
  }
  
  .prose th:last-child,
  .prose td:last-child {
    padding-right: 1em;
  }
  
  .prose blockquote {
    padding: 1.25em 1.5em;
  }
}

/* Prose Wrapper with Proper Spacing */
.prose-wrapper {
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .prose-wrapper {
    padding: 3rem 2rem;
  }
}

@media (min-width: 1024px) {
  .prose-wrapper {
    padding: 4rem 0;
  }
}

/* Prose Content */
.prose-content {
  line-height: 1.7;
  color: #2d2d2d;
}

.prose-content h2 {
  color: var(--royal-ruby);
  border-bottom: 2px solid var(--royal-gold);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-content h3 {
  color: var(--velvet-purple);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.prose-content li {
  margin: 0.5rem 0;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-content th {
  background: linear-gradient(135deg, var(--royal-ruby), var(--velvet-purple));
  color: var(--royal-cream);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.prose-content td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}

.prose-content tr:hover {
  background-color: rgba(255, 215, 0, 0.05);
}

.prose-content a {
  color: var(--royal-ruby);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.prose-content a:hover {
  color: var(--royal-gold);
}

.prose-content strong {
  color: var(--royal-ruby);
  font-weight: 700;
}

/* Mobile Burger Menu */
.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 60;
}

.burger-line {
  width: 28px;
  height: 3px;
  background: var(--royal-gold);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--velvet-purple) 0%, var(--royal-ruby) 100%);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  padding-top: 80px;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

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

/* Provider Tag Cloud */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--royal-gold);
  border-radius: 20px;
  margin: 0.25rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.provider-tag:hover {
  background: var(--royal-gold);
  color: var(--royal-ruby);
  transform: scale(1.05);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  padding: 1.25rem;
  background: rgba(255, 215, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: rgba(255, 215, 0, 0.1);
}

.faq-question::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.25rem;
}

.faq-answer.active {
  max-height: 500px;
  padding: 1.25rem;
}

/* Disclaimer Text */
.disclaimer-text {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
}

/* Royal Divider */
.royal-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
  margin: 2rem 0;
}
