/* Jackpika Casino Theme - Custom CSS */

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

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

.animate-shimmer {
  animation: shimmer 2s linear infinite;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
  background-size: 1000px 100%;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

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

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

/* Card Game Pattern Background */
.bg-casino-pattern {
  background-color: #1a1a1a;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(34, 197, 94, 0.05) 35px,
    rgba(34, 197, 94, 0.05) 70px
  );
}

/* Gradient Backgrounds */
.bg-gradient-radial {
  background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #1a1a1a 100%);
}

.bg-gradient-casino {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a3a2a 50%, #1a1a1a 100%);
}

/* Glass Effect */
.glass-effect {
  background: rgba(42, 42, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

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

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

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.5rem;
}
.prose h2 {
  font-size: 2rem;
}
.prose h3 {
  font-size: 1.5rem;
}
.prose h4 {
  font-size: 1.25rem;
}

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

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

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

.prose a {
  color: #22c55e;
  text-decoration: none;
  transition: color 0.2s;
}

.prose a:hover {
  color: #16a34a;
}

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

.prose code {
  background: #2a2a2a;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose blockquote {
  border-left: 4px solid #22c55e;
  padding-left: 1rem;
  font-style: italic;
  color: #a3a3a3;
  margin: 1.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  border: 1px solid #404040;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background: #2a2a2a;
  font-weight: 600;
  color: #ffffff;
}

/* Button Enhancements */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-3d:hover {
  transform: translateY(-2px);
}

.btn-3d:active {
  transform: translateY(0);
}

/* Card Hover Effects */
.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

/* Floating Banner */
.floating-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transform: translateY(0);
  transition: transform 0.3s;
}

.floating-banner.hidden {
  transform: translateY(100%);
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Badge Styles */
.badge-premium {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.badge-hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-weight: 700;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose h1 {
    font-size: 2rem;
  }
  .prose h2 {
    font-size: 1.5rem;
  }
  .prose h3 {
    font-size: 1.25rem;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(34, 197, 94, 0.3);
  border-top: 3px solid #22c55e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin-slow 1s linear infinite;
}

/* Parallax Effect */
.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

/* Star Rating */
.star-rating {
  color: #fbbf24;
  font-size: 1.25rem;
}

/* Custom Checkbox */
.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #22c55e;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.custom-checkbox:checked {
  background: #22c55e;
}

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