/* Custom CSS for Reelduck Casino Theme */

:root {
  --duck-dark: #1a1a1a;
  --duck-gray: #2d2d2d;
  --duck-yellow: #fbbf24;
  --duck-yellow-dark: #f59e0b;
}

body {
  background-color: var(--duck-dark);
  background-image: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

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

/* Hide Scrollbar for Carousel */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Duck Hunt Title Animation */
@keyframes flicker {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
  }
  50% {
    opacity: 0.95;
    text-shadow: 0 0 30px rgba(251, 191, 36, 1);
  }
}

.duck-hunt-title {
  animation: flicker 3s ease-in-out infinite;
  text-shadow: 2px 2px 0px #000, 0 0 20px rgba(251, 191, 36, 0.6);
}

/* Pulsating Glow for CTAs */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.8);
  }
}

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

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

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

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

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Category Button 3D Effect */
.category-btn {
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(251, 191, 36, 0.4);
}

.category-btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Provider Tag Hover */
.provider-tag {
  transition: all 0.3s ease;
}

/* Glow Border for Featured Images */
@keyframes glow-border {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 1);
  }
}

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

/* Wheel Spin Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.wheel-spin {
  transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Conic Gradient for Wheel */
.bg-gradient-conic {
  background: conic-gradient(
    from 0deg,
    #fbbf24 0deg 60deg,
    #2d2d2d 60deg 120deg,
    #fbbf24 120deg 180deg,
    #2d2d2d 180deg 240deg,
    #fbbf24 240deg 300deg,
    #2d2d2d 300deg 360deg
  );
}

/* Tailwind Extensions */
.bg-gray-750 {
  background-color: #232323;
}

.bg-duck-dark {
  background-color: var(--duck-dark);
}

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

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #fbbf24;
}

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

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

.prose strong {
  color: #ffffff;
}

.prose ul,
.prose ol {
  color: #d1d5db;
}

.prose code {
  background-color: #2d2d2d;
  color: #fbbf24;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
}

.prose pre {
  background-color: #2d2d2d;
  color: #d1d5db;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: " ▼";
  font-size: 0.8em;
  color: var(--duck-yellow);
  float: right;
}

details[open] summary::after {
  content: " ▲";
}

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

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

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .duck-hunt-title {
    font-size: 2rem;
  }

  .floating-hero {
    animation: none;
  }
}

/* Loading Animation */
@keyframes loading {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

.loading {
  animation: loading 1.5s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
  background: var(--duck-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--duck-yellow);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--duck-yellow-dark);
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--duck-yellow);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .no-print {
    display: none;
  }
}
