/* Custom CSS for Jokery Casino Theme */

/* Keyframe Animations */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

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

@keyframes slide-up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animation Classes */
.animate-marquee {
  animation: marquee 20s linear infinite;
}

.animate-parallax {
  animation: parallax-float 6s ease-in-out infinite;
}

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

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

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

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

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

::-webkit-scrollbar-thumb {
  background: #ef4444;
  border-radius: 4px;
}

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

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

/* Focus States for Accessibility */
.focus-visible:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Custom Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #ef4444;
  color: #ef4444;
  background: transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-secondary:hover {
  background: #ef4444;
  color: #000;
  transform: translateY(-2px);
}

/* Prose Styling for Content */
.prose {
  max-width: none;
  color: #e5e5e5;
}

.prose h2 {
  color: #ef4444;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #f5f5f5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prose p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose ul li::before {
  content: "▶";
  color: #ef4444;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

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

/* Neon Text Effect */
.neon-text {
  text-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444, 0 0 30px #ef4444;
}

/* Game Grid Hover */
.game-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(239, 68, 68, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 1;
}

/* Responsive Utilities */
@media (max-width: 1023px) {
  .mobile-menu-open {
    overflow: hidden;
  }
}

/* Custom Checkbox for Quiz */
.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ef4444;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.custom-checkbox:checked {
  background: #ef4444;
}

.custom-checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
  font-size: 12px;
}

/* Marquee Container */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
}

/* Island Menu Styles */
.island-menu {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Wagering Calculator */
.calculator-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #ef4444;
  color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
}

.calculator-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Stats Tiles */
.stat-tile {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.3);
  transition: all 0.3s ease;
}

.stat-tile:hover {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #ef4444;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
}
