/* Custom CSS for Casoola Casino Theme */

/* Root Variables */
:root {
  --bg-primary: #1a0a0a;
  --bg-secondary: #2d1515;
  --bg-tertiary: #3d1f1f;
  --accent-gold: #ffd700;
  --accent-red: #dc2626;
  --accent-orange: #f97316;
  --text-primary: #fef3c7;
  --text-secondary: #d4a574;
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
  --glow-red: 0 0 20px rgba(220, 38, 38, 0.4);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Prose Styling for Readability */
.prose {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.prose h2 {
  color: var(--accent-gold);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: var(--glow-gold);
}

.prose h3 {
  color: var(--text-secondary);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

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

.prose ul li::before {
  content: '🎰';
  position: absolute;
  left: -1.75rem;
  font-size: 0.85rem;
}

.prose a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--accent-orange);
  text-shadow: var(--glow-gold);
}

/* Keyframe Animations */

/* Pulsating Glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2);
  }
}

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

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

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

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

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

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

/* Tilt Effect */
@keyframes tilt {
  0%, 100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

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

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* Spin Animation for Icons */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Bounce In */
@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.bounce-in {
  animation: bounce-in 0.6s ease-out;
}

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

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

/* Color Shift */
@keyframes color-shift {
  0%, 100% {
    border-color: var(--accent-gold);
  }
  33% {
    border-color: var(--accent-red);
  }
  66% {
    border-color: var(--accent-orange);
  }
}

.color-shift-border {
  animation: color-shift 4s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradient-text {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-text {
  background: linear-gradient(90deg, #ffd700, #f97316, #dc2626, #ffd700);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-text 4s ease infinite;
}

/* Card Hover Effects */
.card-3d {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Button Styles */
.btn-play {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #dc2626 100%);
  background-size: 200% 200%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-play::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 ease;
}

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

.btn-play:hover {
  background-position: 100% 100%;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Slot Card Styles */
.slot-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.slot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  pointer-events: none;
}

.slot-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.slot-card img {
  transition: transform 0.5s ease;
}

.slot-card:hover img {
  transform: scale(1.1);
}

/* Badge Styles */
.badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-jackpot {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #1a0a0a;
}

.badge-rtp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

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

.badge-popular {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

/* Provider Button Style */
.provider-btn {
  background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), -2px -2px 6px rgba(255, 255, 255, 0.05);
}

.provider-btn:hover {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4), -3px -3px 8px rgba(255, 255, 255, 0.08), 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Table Styles */
.bets-table {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.bets-table tr {
  background: rgba(45, 21, 21, 0.6);
  transition: all 0.3s ease;
}

.bets-table tr:hover {
  background: rgba(61, 31, 31, 0.8);
}

.bets-table td {
  padding: 0.75rem 1rem;
}

.bets-table td:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

.bets-table td:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Win/Loss Colors */
.win-row {
  border-left: 3px solid #22c55e;
}

.lose-row {
  border-left: 3px solid #dc2626;
}

/* Review Card */
.review-card {
  background: linear-gradient(145deg, rgba(45, 21, 21, 0.8), rgba(26, 10, 10, 0.9));
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Star Rating */
.star-rating {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-red));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-orange), var(--accent-red));
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Hero Pattern */
.hero-pattern {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(249, 115, 22, 0.08) 0%, transparent 40%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.2rem;
  }
}

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

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