/* Turbo Surge Theme - Custom Animations & Overrides */

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5), 0 0 40px rgba(255, 107, 53, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 0 60px rgba(255, 107, 53, 0.5);
  }
}

@keyframes neon-flicker {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 165, 0, 0.6);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 165, 0, 0.8);
  }
}

@keyframes spin-reel {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes burst-trail {
  0% {
    transform: scale(0.8) translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.2) translateY(-20px);
    opacity: 0;
  }
}

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

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

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

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

.neon-text {
  animation: neon-flicker 3s ease-in-out infinite;
}

.parallax-layer {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.burst-effect {
  animation: burst-trail 1.5s ease-out infinite;
}

/* Enhanced prose styling for markdown content with better typography and readability */
.prose {
  max-width: 100%;
  line-height: 1.75;
  color: #e5e5e5;
}

.prose p {
  margin-bottom: 1.5em;
  color: #e5e5e5;
  font-size: 1.0625rem;
}

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  color: #ff6b35;
  text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
  line-height: 1.3;
}

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

.prose h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  color: #ffa500;
  line-height: 1.4;
}

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

.prose li {
  margin-top: 0.625em;
  margin-bottom: 0.625em;
  color: #e5e5e5;
  line-height: 1.7;
}

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

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

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

.prose a {
  color: #ff6b35;
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 53, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em auto;
  display: block;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

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

.prose th {
  background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1rem;
  text-align: left;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.prose td {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 107, 53, 0.2);
  background: rgba(26, 26, 26, 0.5);
  color: #e5e5e5;
}

.prose tr:hover td {
  background: rgba(255, 107, 53, 0.15);
  transition: background 0.2s ease;
}

.prose blockquote {
  border-left: 0.25rem solid #ff6b35;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #d4d4d4;
  background: rgba(255, 107, 53, 0.05);
  padding: 1.25em 1.5em;
  border-radius: 0.25rem;
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  background: rgba(255, 107, 53, 0.1);
  color: #ffd700;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}

.prose pre {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin: 2em 0;
}

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

.prose hr {
  border: none;
  border-top: 2px solid rgba(255, 107, 53, 0.3);
  margin: 3em 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

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

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

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

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

/* Glossy Black Surface Effects */
.glossy-surface {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  position: relative;
}

.glossy-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
}

/* Neon Border Effect */
.neon-border {
  border: 2px solid #ff6b35;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5), inset 0 0 10px rgba(255, 107, 53, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff4500, #ff6b35);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff6b35, #ffd700);
}

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

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.95);
}
