/* ZuluSpins Custom Styles - South African Casino Vibe */

:root {
  --deep-green: #0a2e1a;
  --forest-green: #134d2a;
  --emerald: #1a6b3d;
  --vivid-yellow: #ffd700;
  --bright-gold: #ffed4e;
  --accent-orange: #ff6b35;
  --warm-red: #e63946;
}

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

/* Background patterns */
body {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--forest-green) 50%, var(--emerald) 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Parallax effect */
.parallax-slow {
  transform: translateY(var(--scroll-y, 0));
  transition: transform 0.1s ease-out;
}

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

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

/* Shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--vivid-yellow), var(--accent-orange), var(--bright-gold));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* CTA styles */
.cta-primary {
  background: linear-gradient(135deg, var(--vivid-yellow), var(--bright-gold));
  color: var(--deep-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before {
  width: 300px;
  height: 300px;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

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

/* Card styles */
.casino-card {
  background: rgba(19, 77, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.casino-card:hover {
  transform: translateY(-5px);
  border-color: var(--vivid-yellow);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Game grid item */
.game-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.game-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.game-item img {
  transition: transform 0.3s ease;
}

.game-item:hover img {
  transform: scale(1.1);
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-jackpot {
  background: linear-gradient(135deg, #ff6b35, #f72585);
  color: white;
}

.badge-rtp {
  background: linear-gradient(135deg, #06ffa5, #00d4ff);
  color: #0a2e1a;
}

.badge-bonus {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #0a2e1a;
}

/* Countdown animation */
@keyframes countdown-fade {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.countdown-text {
  animation: countdown-fade 1s ease-in-out;
}

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

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

/* Prose styling for readability */
.prose {
  color: #e5e7eb;
  line-height: 1.75;
}

.prose h2 {
  color: var(--vivid-yellow);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

.prose strong {
  color: var(--vivid-yellow);
  font-weight: 600;
}

.prose a {
  color: var(--vivid-yellow);
  text-decoration: underline;
  transition: color 0.2s;
}

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

/* Table styles */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(19, 77, 42, 0.4);
  border-radius: 12px;
  overflow: hidden;
}

.styled-table th {
  background: rgba(255, 215, 0, 0.2);
  color: var(--vivid-yellow);
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.styled-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  color: #e5e7eb;
}

.styled-table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

/* Winner/loser rows */
.win-row {
  background: rgba(6, 255, 165, 0.1);
  border-left: 3px solid #06ffa5;
}

.loss-row {
  background: rgba(230, 57, 70, 0.1);
  border-left: 3px solid #e63946;
}

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

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

/* Review card */
.review-card {
  background: rgba(19, 77, 42, 0.5);
  border-left: 4px solid var(--vivid-yellow);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.review-card:hover {
  background: rgba(19, 77, 42, 0.7);
  transform: translateX(5px);
}

/* Star rating */
.star-rating {
  color: var(--vivid-yellow);
  font-size: 1.2rem;
}

/* Sticky elements */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 46, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sticky-cta-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(135deg, var(--vivid-yellow), var(--accent-orange));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta-banner.visible {
  transform: translateY(0);
}

/* Alert/Banner styles */
.alert-danger {
  background: rgba(230, 57, 70, 0.2);
  border-left: 4px solid var(--warm-red);
  padding: 1rem;
  border-radius: 8px;
  color: #fee;
}

/* Responsible gaming section */
.responsible-gaming {
  background: rgba(230, 57, 70, 0.15);
  border: 2px solid var(--warm-red);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

/* Feature highlights */
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Category button */
.category-btn {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid var(--vivid-yellow);
  color: var(--vivid-yellow);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-btn:hover {
  background: var(--vivid-yellow);
  color: var(--deep-green);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Carousel */
.carousel-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--vivid-yellow) rgba(255, 215, 0, 0.1);
}

.carousel-container::-webkit-scrollbar {
  height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: var(--vivid-yellow);
  border-radius: 10px;
}

.carousel-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* South African decorative patterns */
.zulu-pattern {
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 215, 0, 0.03) 10px,
      rgba(255, 215, 0, 0.03) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255, 107, 53, 0.03) 10px,
      rgba(255, 107, 53, 0.03) 20px
    );
}
