/* ============================================
   SpinJam Custom Styles
   Dutch Jam Flux Theme - Orange/Blue Vibrant
   ============================================ */

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

@keyframes neonPulse {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8));
  }
  50% {
    opacity: 0.85;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 1));
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

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

/* Utility Classes */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

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

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

.gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

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

.scatter-pulse {
  animation: scatterPulse 3s ease-in-out infinite;
}

/* Gradient Backgrounds */
.bg-jam-gradient {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 25%, #3b82f6 75%, #2563eb 100%);
}

.bg-jam-gradient-reverse {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 25%, #ea580c 75%, #f97316 100%);
}

.bg-jam-radial {
  background: radial-gradient(circle at 30% 50%, rgba(249, 115, 22, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 50%);
}

/* Text Gradients */
.text-jam-gradient {
  background: linear-gradient(135deg, #f97316 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Prose Styling for Readability */
.prose-spinjam {
  line-height: 1.75;
  color: #1f2937;
}

.prose-spinjam h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.prose-spinjam h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.prose-spinjam p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.prose-spinjam ul,
.prose-spinjam ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose-spinjam li {
  margin-bottom: 0.5rem;
}

.prose-spinjam strong {
  font-weight: 600;
  color: #0f172a;
}

.prose-spinjam a {
  color: #f97316;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-spinjam a:hover {
  color: #ea580c;
}

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

.prose-spinjam thead {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.prose-spinjam th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

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

.prose-spinjam tbody tr:hover {
  background-color: #fef3c7;
}

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: 3px solid #fbbf24;
  box-shadow: 0 10px 40px rgba(249, 115, 22, 0.4), 0 0 20px rgba(251, 191, 36, 0.6) inset;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* CTA Button Styles */
.cta-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.cta-primary:hover::after {
  width: 300px;
  height: 300px;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.5);
}

.cta-secondary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
}

/* Game Card Hover Effects */
.game-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.75rem;
}

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

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Step Cards */
.step-card {
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-number {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Payment Icons */
.payment-icon {
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.payment-icon:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

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

/* FAQ Accordion Styles */
.faq-item {
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-left-color: #f97316;
  background-color: #fef3c7;
}

.faq-question {
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

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

/* Provider Cloud */
.provider-tag {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* SVG Pattern Backgrounds */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(249, 115, 22, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image: linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

/* Responsive Typography */
@media (max-width: 640px) {
  .prose-spinjam h2 {
    font-size: 1.5rem;
  }

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

  .prose-spinjam p {
    font-size: 1rem;
  }
}

/* Enhanced prose styling for markdown content pages */

/* Main Prose Container */
.prose {
  max-width: 100%;
  color: #1f2937;
  line-height: 1.75;
  font-size: 1.0625rem;
}

/* Headings with optimal hierarchy */
.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: #0f172a;
  line-height: 1.3;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 0.75rem;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, #f97316 0%, #3b82f6 100%);
  border-radius: 0.125rem;
}

.prose h3 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
  line-height: 1.4;
}

.prose h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #334155;
}

/* Paragraphs with optimal spacing */
.prose p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 1.8;
  color: #374151;
}

.prose p:first-of-type {
  font-size: clamp(1.0625rem, 2.2vw, 1.125rem);
  line-height: 1.75;
}

/* Strong emphasis */
.prose strong {
  font-weight: 600;
  color: #0f172a;
}

/* Links with brand colors */
.prose a {
  color: #f97316;
  text-decoration: underline;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.1875rem;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #ea580c;
  text-decoration-thickness: 0.1875rem;
}

.prose a:focus {
  outline: 0.125rem solid #f97316;
  outline-offset: 0.125rem;
  border-radius: 0.125rem;
}

/* Lists with proper spacing */
.prose ul,
.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

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

.prose ul ul {
  list-style-type: circle;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

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

.prose ol ol {
  list-style-type: lower-alpha;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose li {
  margin-bottom: 0.625rem;
  padding-left: 0.375rem;
  line-height: 1.75;
}

.prose li > p {
  margin-bottom: 0.625rem;
  margin-top: 0.625rem;
}

.prose li::marker {
  color: #f97316;
  font-weight: 600;
}

/* Blockquotes */
.prose blockquote {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 0.25rem solid #f97316;
  font-style: italic;
  color: #4b5563;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.05) 0%, transparent 100%);
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-right: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

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

/* Tables with full responsiveness */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.prose thead {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.prose th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid #e5e7eb;
  vertical-align: top;
}

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

.prose tbody tr:hover {
  background-color: #fef3c7;
}

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

/* Table responsiveness wrapper */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.prose .table-responsive::-webkit-scrollbar {
  height: 0.5rem;
}

.prose .table-responsive::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 0.25rem;
}

.prose .table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f97316 0%, #3b82f6 100%);
  border-radius: 0.25rem;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Horizontal rule */
.prose hr {
  border: none;
  height: 0.125rem;
  background: linear-gradient(90deg, transparent 0%, #f97316 20%, #3b82f6 80%, transparent 100%);
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Code blocks */
.prose code {
  background-color: #f3f4f6;
  color: #ea580c;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9375em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border-left: 0.25rem solid #f97316;
}

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

/* First letter drop cap effect (optional styling) */
.prose-intro p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 3rem;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, #f97316 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
  }

  .prose h2::after {
    width: 3rem;
    height: 0.1875rem;
  }

  .prose h3 {
    margin-top: 1.5rem;
  }

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

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

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

  .prose blockquote {
    padding-left: 1rem;
    padding-right: 0.75rem;
  }
}

/* Print styles for better readability */
@media print {
  .prose {
    color: #000;
  }

  .prose a {
    color: #000;
    text-decoration: underline;
  }

  .prose h2,
  .prose h3 {
    page-break-after: avoid;
  }

  .prose table {
    page-break-inside: avoid;
  }
}

/* Parallax Elements */
.parallax {
  transition: transform 0.1s ease-out;
}

/* Loading Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
