/* ============================================
   Citrus Rush Theme - Custom Animations & Styles
   ============================================ */

/* Citrus Gradient Text */
.citrus-gradient {
  background: linear-gradient(135deg, #b2ff59 0%, #ffeb3b 50%, #ff9800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Citrus Text Glow */
.citrus-text-glow {
  color: #ffeb3b;
  text-shadow: 0 0 20px rgba(178, 255, 89, 0.5), 0 0 40px rgba(255, 235, 59, 0.3), 0 0 60px rgba(255, 152, 0, 0.2);
}

/* Animated Citrus Overlay */
.citrus-overlay {
  background: linear-gradient(135deg, transparent 0%, rgba(178, 255, 89, 0.1) 25%, transparent 50%),
    linear-gradient(-45deg, transparent 0%, rgba(255, 152, 0, 0.1) 25%, transparent 50%),
    linear-gradient(45deg, transparent 0%, rgba(0, 188, 212, 0.1) 25%, transparent 50%);
  background-size: 200% 200%;
  animation: citrusFlow 15s ease infinite;
}

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

/* Parallax Background */
.parallax-bg {
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-bg img {
    animation: parallaxMove 30s ease-in-out infinite;
  }
}

@keyframes parallaxMove {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

/* Pulse Glow Effect */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(178, 255, 89, 0.5), 0 0 40px rgba(255, 235, 59, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(178, 255, 89, 0.8), 0 0 80px rgba(255, 235, 59, 0.5), 0 0 120px rgba(255, 152, 0, 0.3);
  }
}

/* Step Badge Animation */
.step-badge {
  animation: stepFloat 3s ease-in-out infinite;
}

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

/* Marquee Animation for Providers */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

.marquee-content {
  display: flex;
  gap: 2rem;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

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

.provider-tag {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(178, 255, 89, 0.1), rgba(255, 152, 0, 0.1));
  border: 2px solid rgba(178, 255, 89, 0.3);
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.125rem;
  color: #b2ff59;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: linear-gradient(135deg, rgba(178, 255, 89, 0.2), rgba(255, 152, 0, 0.2));
  border-color: rgba(178, 255, 89, 0.6);
  transform: scale(1.05);
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #b2ff59, #cddc39);
  color: #000;
  font-weight: bold;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(178, 255, 89, 0.4);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #cddc39, #ffeb3b);
  box-shadow: 0 6px 30px rgba(178, 255, 89, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #b2ff59;
  font-weight: bold;
  border: 2px solid #b2ff59;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(178, 255, 89, 0.1);
  border-color: #ffeb3b;
  color: #ffeb3b;
  transform: translateY(-2px);
}

.btn-small {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ff9800, #ffeb3b);
  color: #000;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-small:hover {
  background: linear-gradient(135deg, #ffeb3b, #b2ff59);
  transform: scale(1.05);
}

/* Game Card Hover */
.game-card {
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
}

/* Prose Styling for Readability */
.prose-custom {
  color: #e5e5e5;
  line-height: 1.7;
}

.prose-custom h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose-custom h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose-custom p {
  margin-bottom: 1rem;
}

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

.prose-custom a:hover {
  color: #ffeb3b;
}

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

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

.prose-custom code {
  background: rgba(178, 255, 89, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #b2ff59;
}

/* Responsive Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(178, 255, 89, 0.1);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(178, 255, 89, 0.3);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(178, 255, 89, 0.5);
}

/* ============================================
   Prose Styling for Markdown Content
   ============================================ */

/* Adding comprehensive prose styling for markdown pages */
.prose {
  max-width: 100%;
  color: #e0f7e0;
  line-height: 1.7;
  font-size: 1rem;
}

.prose h2 {
  color: #d4ff00;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(212, 255, 0, 0.3);
}

.prose h3 {
  color: #ffd700;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

.prose a {
  color: #00e5ff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #d4ff00;
  text-decoration-color: rgba(212, 255, 0, 0.5);
  text-shadow: 0 0 10px rgba(212, 255, 0, 0.4);
}

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

.prose ul,
.prose ol {
  margin-top: 1em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
  color: #e0f7e0;
}

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.6;
  padding-left: 0.3em;
}

.prose li::marker {
  color: #00e5ff;
}

.prose blockquote {
  border-left: 0.25rem solid #00e5ff;
  padding-left: 1em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #c0e0c0;
  background: rgba(0, 229, 255, 0.05);
  padding-top: 0.75em;
  padding-bottom: 0.75em;
  padding-right: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(212, 255, 0, 0.2);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, rgba(212, 255, 0, 0.15), rgba(255, 165, 0, 0.15));
  border-bottom: 2px solid rgba(212, 255, 0, 0.3);
}

.prose thead th {
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  color: #d4ff00;
  text-transform: uppercase;
  font-size: 0.875em;
  letter-spacing: 0.05em;
}

.prose tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

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

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

.prose tbody td {
  padding: 0.75em 1em;
  color: #e0f7e0;
  line-height: 1.5;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 1rem;
  border: 2px solid rgba(212, 255, 0, 0.2);
  box-shadow: 0 10px 40px rgba(212, 255, 0, 0.15), 0 0 30px rgba(0, 229, 255, 0.1);
}

.prose code {
  background: rgba(212, 255, 0, 0.1);
  color: #ffd700;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
  border: 1px solid rgba(212, 255, 0, 0.2);
}

.prose pre {
  background: rgba(18, 18, 18, 0.8);
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(212, 255, 0, 0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  border: none;
  color: #e0f7e0;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .citrus-text-glow {
    font-size: 2rem;
  }

  .bonus-badge {
    transform: scale(0.9);
  }

  .provider-tag {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .prose {
    font-size: 0.9375rem;
  }

  .prose h2 {
    margin-top: 1.5em;
  }

  .prose h3 {
    margin-top: 1.3em;
  }

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

  .prose thead th,
  .prose tbody td {
    padding: 0.5em 0.75em;
  }
}

/* Print-friendly styles for prose content */
@media print {
  .prose {
    color: #000;
  }

  .prose h2,
  .prose h3 {
    color: #000;
    text-shadow: none;
  }

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

  .prose table {
    border: 1px solid #000;
  }
}

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

/* Prevent horizontal overflow globally */
html,
body {
  overflow-x: clip;
  max-width: 100vw;
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
