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

/* Keyframe Animations */
@keyframes neon-pulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.8), 0 0 20px rgba(255, 69, 0, 0.6), 0 0 30px rgba(255, 69, 0, 0.4);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 69, 0, 1), 0 0 30px rgba(255, 69, 0, 0.8), 0 0 40px rgba(255, 69, 0, 0.6);
  }
}

@keyframes streak-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
}

@keyframes glow-border {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5), inset 0 0 15px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.8), inset 0 0 25px rgba(255, 107, 53, 0.4);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.neon-text {
  animation: neon-pulse 2s ease-in-out infinite;
}

.streak-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 53, 0.3) 50%, transparent 100%);
  animation: streak-slide 3s ease-in-out infinite;
  pointer-events: none;
}

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

.marquee-container {
  overflow: hidden;
  position: relative;
}

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

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

/* Parallax Layers */
.parallax-layer {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Metallic Gradient */
.metallic-bg {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #404040 50%, #2d2d2d 75%, #1a1a1a 100%);
}

.metallic-text {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #a8a8a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Neon Borders */
.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);
}

.neon-border-orange {
  border: 2px solid #ffa500;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.5), inset 0 0 10px rgba(255, 165, 0, 0.2);
}

/* Enhanced prose styling with relative units and responsive design */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #e8e8e8;
  font-size: 1.0625rem;
}

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

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
  color: #ffa500;
  text-shadow: 0 0 0.5rem rgba(255, 165, 0, 0.2);
}

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  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-underline-offset: 0.2em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.prose a:hover {
  color: #ffa500;
  text-shadow: 0 0 0.5rem rgba(255, 165, 0, 0.4);
}

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

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

.prose blockquote p {
  margin: 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9375em;
  overflow: hidden;
  border-radius: 0.5rem;
}

.prose thead {
  background: rgba(255, 107, 53, 0.2);
}

.prose th {
  padding: 0.875em 1em;
  text-align: left;
  font-weight: 600;
  color: #ffd700;
  border: 0.0625rem solid rgba(255, 107, 53, 0.3);
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border: 0.0625rem solid rgba(255, 107, 53, 0.2);
  color: #e8e8e8;
}

.prose tbody tr:nth-child(even) {
  background: rgba(255, 107, 53, 0.05);
}

.prose tbody tr:hover {
  background: rgba(255, 107, 53, 0.1);
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

.table-responsive table {
  margin: 0;
}

/* Additional prose elements for better content structure */
.prose hr {
  margin: 2.5em 0;
  border: none;
  border-top: 0.125rem solid rgba(255, 107, 53, 0.3);
}

.prose code {
  background: rgba(255, 107, 53, 0.1);
  color: #ffa500;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

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

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

/* Button Enhancements */
.btn-turbo {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-turbo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-turbo:hover::after {
  width: 300px;
  height: 300px;
}

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

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

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

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Spinning Badge */
.spin-badge {
  animation: spin-slow 20s linear infinite;
}

/* Heat Trail Effect */
.heat-trail {
  position: relative;
}

.heat-trail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 69, 0, 0.4) 0%, transparent 100%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}

.heat-trail:hover::after {
  opacity: 1;
}

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

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

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

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

  .prose th,
  .prose td {
    padding: 0.625em 0.75em;
    font-size: 0.875em;
  }

  .prose img {
    margin: 1.5em auto;
  }
}

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

  .prose th,
  .prose td {
    padding: 0.5em 0.625em;
    font-size: 0.8125em;
  }
}
