/* Bowling Theme Animations */
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Bowling Hero Pattern */
.bowling-hero {
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

.bowling-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
  animation: spin-slow 30s linear infinite;
  pointer-events: none;
  z-index: -1;
}

/* Game Cards */
.game-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.game-card:nth-child(1) {
  animation-delay: 0.1s;
}
.game-card:nth-child(2) {
  animation-delay: 0.2s;
}
.game-card:nth-child(3) {
  animation-delay: 0.3s;
}
.game-card:nth-child(4) {
  animation-delay: 0.4s;
}
.game-card:nth-child(5) {
  animation-delay: 0.5s;
}
.game-card:nth-child(6) {
  animation-delay: 0.6s;
}
.game-card:nth-child(7) {
  animation-delay: 0.7s;
}
.game-card:nth-child(8) {
  animation-delay: 0.8s;
}

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

/* Wheel Rotation */
.wheel-container {
  transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

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

.prose h2 {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  color: #fbbf24;
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

.prose ul {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

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

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

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

.prose a:hover {
  color: #93c5fd;
}

.prose blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1em;
  font-style: italic;
  color: #d1d5db;
}

.prose code {
  color: #fbbf24;
  background-color: rgba(59, 130, 246, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
}

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

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

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    to right,
    rgba(59, 130, 246, 0) 0%,
    rgba(59, 130, 246, 0.3) 50%,
    rgba(59, 130, 246, 0) 100%
  );
  background-size: 1000px 100%;
}

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

  .prose h2 {
    font-size: 1.3em;
  }

  .prose h3 {
    font-size: 1.15em;
  }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

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