/* Custom animations and styling for SpinLegend Casino */

/* Keyframe animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

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

@keyframes crownGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.8);
  }
}

@keyframes chipFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 1;
  }
}

@keyframes diceRoll {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Crown Spin Theme Variables */
:root {
  --crown-gold: #daa520;
  --ruby-red: #8b0000;
  --velvet-purple: #2d1b69;
  --champagne: #f7e7ce;
  --midnight: #0f0f23;
}

/* Base styling */
body {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--velvet-purple) 100%);
  color: var(--champagne);
  overflow: auto;
}

html {
  overflow: auto;
  scroll-behavior: smooth;
}

/* Parallax elements */
.parallax-crown {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.parallax-dice {
  animation: diceRoll 8s linear infinite;
}

/* Marquee animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

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

/* Crown elements */
.crown-glow {
  animation: crownGlow 3s ease-in-out infinite;
}

/* Chip falling animation */
.chip-fall {
  animation: chipFall 2s ease-out forwards;
}

/* Custom button styling */
.btn-crown {
  background: linear-gradient(45deg, var(--crown-gold), #ffd700);
  border: 2px solid var(--ruby-red);
  color: var(--midnight);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-crown:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
}

.btn-crown::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-crown:hover::before {
  left: 100%;
}

/* Bonus badge styling */
.bonus-badge {
  background: radial-gradient(circle, var(--ruby-red), #4a0000);
  border: 3px solid var(--crown-gold);
  position: relative;
}

.bonus-badge::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--crown-gold), #ffd700, var(--crown-gold));
  z-index: -1;
  border-radius: inherit;
}

/* Game card styling */
.game-card {
  background: rgba(45, 27, 105, 0.8);
  border: 1px solid var(--crown-gold);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #ffd700;
  box-shadow: 0 10px 30px rgba(218, 165, 32, 0.3);
}

/* Step guide styling */
.step-badge {
  background: var(--crown-gold);
  color: var(--midnight);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

/* Payment method table */
.payment-table {
  background: rgba(15, 15, 35, 0.9);
  border: 1px solid var(--crown-gold);
}

.payment-table th {
  background: var(--ruby-red);
  color: var(--champagne);
  border-bottom: 2px solid var(--crown-gold);
}

.payment-table td {
  border-bottom: 1px solid rgba(218, 165, 32, 0.3);
  padding: 1rem;
}

/* Review blocks */
.review-block {
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.9), rgba(139, 0, 0, 0.3));
  border-left: 4px solid var(--crown-gold);
  backdrop-filter: blur(5px);
}

/* Provider cloud */
.provider-tag {
  background: rgba(218, 165, 32, 0.2);
  border: 1px solid var(--crown-gold);
  color: var(--champagne);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(218, 165, 32, 0.4);
  transform: scale(1.05);
}

/* FAQ styling */
.faq-item {
  border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.faq-question {
  background: rgba(45, 27, 105, 0.6);
  border: none;
  color: var(--champagne);
  padding: 1.5rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(45, 27, 105, 0.8);
  color: var(--crown-gold);
}

.faq-answer {
  padding: 1.5rem;
  background: rgba(15, 15, 35, 0.8);
  color: var(--champagne);
  line-height: 1.6;
}

/* Prose styling for readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: var(--champagne);
}

.prose h2 {
  color: var(--crown-gold);
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--ruby-red);
  padding-bottom: 0.5rem;
  position: relative;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--crown-gold);
}

.prose h3 {
  color: var(--crown-gold);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
}

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

.prose li {
  margin-bottom: 0.75rem;
  position: relative;
}

.prose ul li::marker {
  color: var(--crown-gold);
  content: "♦ ";
}

.prose ol li::marker {
  color: var(--crown-gold);
  font-weight: bold;
}

.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: rgba(15, 15, 35, 0.9);
  border: 1px solid var(--crown-gold);
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead {
  background: var(--ruby-red);
}

.prose table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--champagne);
  border-bottom: 2px solid var(--crown-gold);
}

.prose table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(218, 165, 32, 0.3);
  color: var(--champagne);
}

.prose table tbody tr:hover {
  background: rgba(45, 27, 105, 0.3);
}

.prose blockquote {
  border-left: 4px solid var(--crown-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: rgba(45, 27, 105, 0.3);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  border: 2px solid var(--crown-gold);
}

.prose strong {
  color: var(--crown-gold);
  font-weight: 600;
}

.prose em {
  color: #ffd700;
}

.prose a {
  color: var(--crown-gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #ffd700;
}

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

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

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

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

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

/* Mobile burger menu */
.burger-menu {
  background: rgba(15, 15, 35, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--crown-gold);
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .mobile-hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .desktop-hidden {
    display: none;
  }
}

/* Velvet backdrop effect */
.velvet-backdrop {
  background: radial-gradient(ellipse at center, rgba(45, 27, 105, 0.8) 0%, rgba(15, 15, 35, 0.9) 100%);
  position: relative;
}

.velvet-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
