/* Custom Animations & Styles */

/* Pulsating glow animation */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.8);
  }
}

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

/* Scale pulse for CTAs */
@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

.floating-hero {
  animation: float 6s ease-in-out infinite;
}

/* Fade pulse for countdown */
@keyframes fade-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.fade-pulse {
  animation: fade-pulse 0.5s ease-in-out;
}

/* Egyptian pattern background */
.egyptian-pattern {
  background-image: linear-gradient(45deg, rgba(236, 72, 153, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(236, 72, 153, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(236, 72, 153, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(236, 72, 153, 0.05) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Game card hover effect */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  box-shadow: 0 20px 25px -5px rgba(236, 72, 153, 0.3), 0 10px 10px -5px rgba(236, 72, 153, 0.2);
}

/* Parallax effect */
@keyframes parallax {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.parallax-bg {
  animation: parallax 20s linear infinite;
}

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

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

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

.marquee {
  animation: marquee 30s linear infinite;
}

/* Smooth transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease;
}

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

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

::-webkit-scrollbar-thumb {
  background: #ec4899;
  border-radius: 6px;
}

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

/* Prose styling for readability */
.prose-custom {
  line-height: 1.6;
}

.prose-custom p {
  margin-bottom: 1rem;
}

.prose-custom ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-custom ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

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

.prose-custom a {
  color: #ec4899;
  text-decoration: underline;
}

.prose-custom a:hover {
  color: #db2777;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.prose-custom strong {
  font-weight: 700;
}

.prose-custom code {
  background-color: #374151;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Banner show animation */
.cta-banner-show {
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Wheel rotation */
#luckyWheel {
  transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}

/* Responsive typography */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .cta-banner {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-gray-900 {
    background-color: #000;
  }

  .text-gray-300 {
    color: #fff;
  }
}
