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

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
  }
}

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

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

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

@keyframes parallax-slow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100px);
  }
}

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

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.parallax-layer {
  will-change: transform;
}

/* Enhanced prose styling for markdown content with responsive units and proper contrast */
.prose {
  max-width: 75ch;
  line-height: 1.7;
  color: #e5e5e5;
}

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

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #ffd700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

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

.prose h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.7em;
  color: #d4af37;
  line-height: 1.5;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  color: #e5e5e5;
}

.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.7;
}

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

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

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

.prose a {
  color: #dc143c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #ff1744;
  text-decoration-thickness: 2px;
}

.prose blockquote {
  border-left: 0.25rem solid #d4af37;
  padding-left: 1.5rem;
  margin: 1.5em 0;
  font-style: italic;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0.25rem;
}

.prose blockquote p {
  color: #d4af37;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em auto;
  display: block;
  border: 2px solid #3d3d3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.prose thead {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
}

.prose th {
  background: transparent;
  color: #1a1a1a;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #8b7500;
  line-height: 1.5;
}

.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid #3d3d3d;
  color: #e5e5e5;
  background: #2d2d2d;
  line-height: 1.6;
}

.prose tbody tr:nth-child(even) td {
  background: #252525;
}

.prose tbody tr:hover td {
  background: #333333;
}

.prose code {
  background: #2d2d2d;
  color: #ffd700;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  border: 1px solid #3d3d3d;
}

.prose pre {
  background: #1a1a1a;
  color: #e5e5e5;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid #3d3d3d;
}

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

.prose hr {
  border: none;
  border-top: 2px solid #3d3d3d;
  margin: 2.5em 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  max-width: 100%;
}

.table-responsive table {
  min-width: 600px;
}

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

.table-responsive::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

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

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

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

/* Ensure proper contrast throughout */
.prose * {
  max-width: 100%;
}

/* Hero Background Overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(139, 0, 0, 0.3) 100%);
}

/* Bonus Badge Glow */
.bonus-badge {
  position: relative;
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2);
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #d4af37, #ffd700);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
}

/* CTA Button Styles */
.cta-primary {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  color: #1a1a1a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary::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;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.cta-secondary {
  background: transparent;
  border: 2px solid #dc143c;
  color: #dc143c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: #dc143c;
  color: #ffd700;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

/* Game Card Styles */
.game-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border: 1px solid #3d3d3d;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #dc143c, #ffd700);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.game-card:hover::before {
  transform: translateX(0);
}

.game-card:hover {
  border-color: #d4af37;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

/* Step Badge */
.step-badge {
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
  border: 3px solid #ffd700;
  color: #ffd700;
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(220, 20, 60, 0.5);
}

/* Provider Cloud */
.provider-tag {
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  color: #d4af37;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  color: #1a1a1a;
  border-color: #ffd700;
  transform: scale(1.05);
}

/* FAQ Accordion */
.faq-item {
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #d4af37;
}

.faq-question {
  cursor: pointer;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #ffd700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq-answer.active {
  max-height: 1000px;
}

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

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

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

/* Sparkle Effect */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}
