/* ===========================
   KEYFRAMES & ANIMATIONS
   =========================== */

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

@keyframes tilt-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(0.5deg); }
  75% { transform: rotate(-0.5deg); }
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 1.25rem rgba(218, 165, 32, 0.4); }
  50% { box-shadow: 0 0 2.5rem rgba(218, 165, 32, 0.8); }
}

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

.tilt-animate {
  animation: tilt-shake 4s ease-in-out infinite;
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

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

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

.prose {
  max-width: 100%;
  color: #e8e8e8;
  line-height: 1.6;
}

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

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

.prose h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: #B8860B;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: #d4d4d4;
}

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

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

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

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

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

.prose li {
  margin-bottom: 0.5em;
  color: #d4d4d4;
  line-height: 1.6;
}

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

.prose a {
  color: #DAA520;
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.prose blockquote {
  border-left: 0.25rem solid #8B0000;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #C8A2C8;
  background: rgba(139, 0, 0, 0.1);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0.25rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  overflow-x: auto;
  display: block;
}

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

.prose th {
  padding: 0.875em 1em;
  text-align: left;
  font-weight: 600;
  color: #DAA520;
  border-bottom: 0.125rem solid #DAA520;
}

.prose td {
  padding: 0.75em 1em;
  border-bottom: 0.0625rem solid rgba(218, 165, 32, 0.2);
  color: #d4d4d4;
}

.prose tbody tr:nth-child(odd) {
  background: rgba(139, 0, 0, 0.1);
}

.prose tbody tr:hover {
  background: rgba(139, 0, 0, 0.2);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em 0;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.5);
}

.prose code {
  background: rgba(139, 0, 0, 0.2);
  color: #C8A2C8;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: rgba(0, 0, 0, 0.5);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}

/* ===========================
   SMOOTH SCROLL
   =========================== */

html {
  scroll-behavior: smooth;
}

/* ===========================
   CUSTOM OVERRIDES
   =========================== */

body {
  background: linear-gradient(135deg, #1a0a0a 0%, #0d0d0d 50%, #1a0a0a 100%);
  min-height: 100vh;
}

.btn-primary {
  background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 1.875rem rgba(220, 20, 60, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  color: #0d0d0d;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 1.875rem rgba(218, 165, 32, 0.4);
}

.nav-sticky {
  backdrop-filter: blur(0.625rem);
  background: rgba(13, 13, 13, 0.95);
  box-shadow: 0 0.25rem 1.875rem rgba(139, 0, 0, 0.3);
}

.mobile-menu-bg {
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(0.625rem);
}

.bonus-badge {
  background: linear-gradient(135deg, #8B0000 0%, #4B0000 100%);
  border: 0.125rem solid #DAA520;
  box-shadow: 0 0 2.5rem rgba(218, 165, 32, 0.5);
}

.game-card {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(75, 0, 0, 0.2) 100%);
  border: 0.0625rem solid rgba(218, 165, 32, 0.3);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.9375rem 2.5rem rgba(218, 165, 32, 0.3);
  border-color: #DAA520;
}

.step-badge {
  background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
  color: #0d0d0d;
  font-weight: 700;
}

.review-block {
  background: rgba(139, 0, 0, 0.15);
  border-left: 0.25rem solid #8B0000;
  padding: 1.875rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.provider-tag {
  background: rgba(218, 165, 32, 0.1);
  border: 0.0625rem solid rgba(218, 165, 32, 0.3);
  color: #DAA520;
  padding: 0.5em 1em;
  border-radius: 1.25rem;
  display: inline-block;
  margin: 0.25em;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(218, 165, 32, 0.2);
  border-color: #DAA520;
}

.faq-item {
  background: rgba(139, 0, 0, 0.1);
  border: 0.0625rem solid rgba(218, 165, 32, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #DAA520;
  background: rgba(139, 0, 0, 0.15);
}

.promo-card {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(75, 0, 0, 0.3) 100%);
  border: 0.0625rem solid rgba(218, 165, 32, 0.2);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: scale(1.02);
  border-color: #DAA520;
  box-shadow: 0 0.625rem 2.5rem rgba(218, 165, 32, 0.2);
}

@media (max-width: 1024px) {
  .prose {
    font-size: 1rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
}
