/* Racing Theme Animations & Custom Styles */

/* Checkered Background Pattern */
.checkered-bg {
  background-image: linear-gradient(45deg, rgba(255, 215, 0, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 215, 0, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 215, 0, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 215, 0, 0.03) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Floating Hero Animation */
.floating-hero {
  animation: float 6s ease-in-out infinite;
}

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

/* Racing Text Effect */
.racing-text {
  text-shadow: 3px 3px 0 rgba(220, 20, 60, 0.5), -2px -2px 0 rgba(255, 215, 0, 0.3);
  letter-spacing: 0.05em;
}

/* Pulse Glow Animation */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
  }
}

/* Parallax Scroll Effect (applied via JS) */
@keyframes parallax-scroll {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Marquee Animation for Providers */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Tilt Effect on Hover */
.tilt-on-hover {
  transition: transform 0.3s ease;
}

.tilt-on-hover:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

/* Custom Prose Styling for Readability */
.prose {
  color: #d1d5db;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #ffd700;
  font-weight: 700;
}

.prose h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.prose h2 {
  font-size: 2em;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose h3 {
  font-size: 1.5em;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.7;
}

.prose a {
  color: #ffd700;
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

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

.prose li {
  margin-bottom: 0.5em;
}

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

.prose blockquote {
  border-left: 4px solid #ffd700;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #9ca3af;
  font-style: italic;
}

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

.prose th,
.prose td {
  border: 1px solid #374151;
  padding: 0.75em;
  text-align: left;
}

.prose th {
  background: #2a2a2a;
  color: #ffd700;
  font-weight: 600;
}

.prose img {
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

/* Racing Stripes Animation */
.racing-stripes {
  position: relative;
  overflow: hidden;
}

.racing-stripes::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 215, 0, 0.1) 10px,
    rgba(255, 215, 0, 0.1) 20px
  );
  animation: racing-stripes-move 20s linear infinite;
}

@keyframes racing-stripes-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

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

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

/* Details/Summary Styling */
details summary {
  transition: color 0.2s;
}

details summary:hover {
  color: #ffd700;
}

details[open] summary {
  color: #ffd700;
  margin-bottom: 1rem;
}

/* Button Hover Effects */
button,
a {
  transition: all 0.3s ease;
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Grid Hover Effect */
.grid > * {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Racing Speed Lines Effect */
.speed-lines {
  position: relative;
  overflow: hidden;
}

.speed-lines::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  animation: speed-line 3s ease-in-out infinite;
}

@keyframes speed-line {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  .racing-text {
    text-shadow: 2px 2px 0 rgba(220, 20, 60, 0.5), -1px -1px 0 rgba(255, 215, 0, 0.3);
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
