/* Casoola Casino - Custom CSS */
/* Animation Keyframes & Prose Styling */

/* ==================== CSS Variables ==================== */
:root {
  --bg-dark: #1a1a1f;
  --bg-darker: #0f0f12;
  --bg-card: #252530;
  --bg-card-hover: #2e2e3a;
  --accent-red: #e63946;
  --accent-red-dark: #c1121f;
  --accent-red-glow: rgba(230, 57, 70, 0.5);
  --accent-gold: #ffd700;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --border-color: #3a3a4a;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  --gradient-cta: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
}

/* ==================== Base Styles ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== Prose Styling ==================== */
.prose {
  max-width: 75ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.375rem; }
.prose h4 { font-size: 1.125rem; }

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

.prose a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--accent-gold);
}

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

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

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose blockquote {
  border-left: 4px solid var(--accent-red);
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ==================== Animation Keyframes ==================== */

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

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--accent-red-glow),
                0 0 40px rgba(230, 57, 70, 0.3),
                0 0 60px rgba(230, 57, 70, 0.1);
  }
  50% {
    box-shadow: 0 0 30px var(--accent-red-glow),
                0 0 60px rgba(230, 57, 70, 0.4),
                0 0 90px rgba(230, 57, 70, 0.2);
  }
}

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

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

/* Tilt Hover Animation */
@keyframes tiltIn {
  0% { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); }
  100% { transform: perspective(1000px) rotateX(5deg) rotateY(5deg); }
}

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

/* Scale Pulse */
@keyframes scalePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Gradient Shift */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Particle Float */
@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translate(10px, -20px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translate(-5px, -40px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translate(15px, -20px) rotate(270deg);
    opacity: 1;
  }
}

/* ==================== Animation Classes ==================== */

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

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

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

.animate-tilt {
  transition: transform 0.3s ease;
}

.animate-tilt:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* ==================== Custom Components ==================== */

/* Sticky Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.sticky-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-hero);
  border-radius: 1.5rem;
  margin: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* SVG Pattern Background */
.pattern-bg {
  background-color: var(--bg-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e63946' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Diamond Pattern */
.diamond-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20z' fill='%23e63946' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--gradient-cta);
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-red-glow);
}

.btn-cta-pulse {
  animation: pulseGlow 2s ease-in-out infinite;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Slot Card */
.slot-card {
  background: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
}

.slot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-red);
}

.slot-card-image {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.slot-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-jackpot { background: var(--gradient-gold); color: #000; }
.badge-popular { background: var(--accent-red); color: #fff; }
.badge-rtp { background: #10b981; color: #fff; }
.badge-bonus { background: #8b5cf6; color: #fff; }

/* Feature Card */
.feature-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-red);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Provider Button */
.provider-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.provider-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Winner Card */
.winner-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-card);
}

.winner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

/* Review Card */
.review-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: var(--accent-gold);
}

/* Star Rating */
.star-rating {
  color: var(--accent-gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* Author Card */
.author-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1a2e 50%, var(--bg-dark) 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-red-glow) 0%, transparent 70%);
  opacity: 0.3;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-darker);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 2rem;
  border-left: 1px solid var(--border-color);
}

.mobile-menu.open {
  right: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

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

.marquee-content {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
}

/* Particle Effect Container */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 6s ease-in-out infinite;
}

/* Responsive */
@media (min-width: 640px) {
  .hero-section {
    margin: 1.5rem;
    padding: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    margin: 2rem;
    padding: 4rem;
  }
  
  .prose { font-size: 1.0625rem; }
}

@media (min-width: 1024px) {
  .hero-section {
    margin: 2rem 3rem;
  }
}

/* Footer */
.footer-logo {
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.footer-logo:hover {
  filter: brightness(1);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Selection */
::selection {
  background: var(--accent-red);
  color: white;
}
