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

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

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

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

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

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

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

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
  25% { transform: translate(10px, -10px) rotate(90deg); opacity: 0.6; }
  50% { transform: translate(-5px, -20px) rotate(180deg); opacity: 0.9; }
  75% { transform: translate(-15px, -10px) rotate(270deg); opacity: 0.6; }
}

@keyframes countdown {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(0.9); }
}

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

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

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

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

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

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

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

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

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Chinese Neko Pattern */
.neko-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
}

/* Chinese Red Button */
.btn-chinese-red {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  position: relative;
  overflow: hidden;
}

.btn-chinese-red::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-chinese-red:hover::before {
  left: 100%;
}

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

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.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 strong {
  font-weight: 600;
  color: #111827;
}

.prose a {
  color: #dc2626;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #991b1b;
}

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

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient Backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, #fef3c7 0%, #fca5a5 50%, #dc2626 100%);
}

.gradient-neko {
  background: linear-gradient(to bottom right, #fee2e2, #fef3c7, #fed7aa);
}

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

::-webkit-scrollbar-track {
  background: #f6faff;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #991b1b;
}

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

/* Particle Effects */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.3;
}

/* Countdown Animation */
.countdown-text {
  animation: countdown 1s ease-in-out;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Rating Stars */
.star-rating {
  color: #fbbf24;
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-jackpot {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
}

.badge-high-rtp {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #064e3b;
}

.badge-bonus-buy {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
}

/* Games Grid for Content Pages */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.games-grid > p {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
  margin: 0;
}

.games-grid > p:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.games-grid > p strong {
  display: block;
  padding: 1rem 1rem 0.5rem;
  font-size: 1.125rem;
  color: #111827;
}

.games-grid > p img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 0;
  display: block;
}

.games-grid > p br {
  display: none;
}

.games-grid > p a {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 0.75rem 1rem;
  margin: 1rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.games-grid > p a:hover {
  transform: scale(1.05);
}

/* Content Page Prose Improvements */
.content-page table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.content-page table th {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

.content-page table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.content-page table tr:last-child td {
  border-bottom: none;
}

.content-page table tr:hover {
  background: #fef2f2;
}

