/* Bowling Championship Theme - Custom Animations & Styles */

:root {
  --dark-blue: #0a1628;
  --darker-blue: #050b14;
  --neon-yellow: #ffff00;
  --neon-glow: #ffff00;
  --bowling-green: #10b981;
  --strike-red: #ef4444;
}

/* Keyframe Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--neon-yellow), 0 0 40px var(--neon-yellow);
  }
  50% {
    box-shadow: 0 0 30px var(--neon-yellow), 0 0 60px var(--neon-yellow);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes bounce-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Utility Classes */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

.tilt-animation {
  animation: tilt 3s ease-in-out infinite;
}

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

/* Gradient Backgrounds */
.bowling-gradient {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 50%, #0a1628 100%);
}

.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
}

.neon-text {
  color: var(--neon-yellow);
  text-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow), 0 0 30px var(--neon-yellow);
}

/* Custom Buttons */
.btn-neon {
  background: var(--neon-yellow);
  color: #0a1628;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--neon-yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-neon:hover {
  box-shadow: 0 0 30px var(--neon-yellow), 0 0 50px var(--neon-yellow);
  transform: scale(1.05);
}

/* Bowling Pin Pattern */
.bowling-pattern {
  background-color: #0a1628;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

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

/* Prose Styling for Content */
.prose {
  max-width: 65ch;
  color: #e5e7eb;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--neon-yellow);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

.prose a {
  color: var(--neon-yellow);
  text-decoration: underline;
}

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

/* Card Styles */
.game-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 255, 0, 0.3);
}

/* Sticky CTA Banner */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: bounce-in 0.6s ease-out;
}

@media (max-width: 768px) {
  .sticky-cta {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(10px);
  transition: right 0.3s ease;
  z-index: 9999;
}

.mobile-menu.active {
  right: 0;
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  gap: 2rem;
}

/* Wheel of Luck */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 8px solid var(--neon-yellow);
  box-shadow: 0 0 30px var(--neon-yellow);
}

.wheel-spinning {
  animation: spin-slow 4s ease-out;
}

/* Recent Winners Table */
.winners-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.winners-table tr {
  background: rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
}

.winners-table td {
  padding: 1rem;
}

.win-amount {
  color: var(--bowling-green);
  font-weight: 700;
}

.loss-amount {
  color: var(--strike-red);
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .btn-neon {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
}
