/* Custom CSS for Upspinz Casino Theme */

/* CSS Variables for consistent theming */
:root {
  --color-primary: #8b5cf6; /* Purple */
  --color-secondary: #10b981; /* Neon Green */
  --color-accent: #06ffa5; /* Bright Neon Green */
  --color-dark: #0f0f0f;
  --color-darker: #000000;
  --color-light: #f8fafc;
  --color-gray: #64748b;
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-dark: linear-gradient(135deg, #1a1a1a, #2d1b69);
  --shadow-neon: 0 0 20px rgba(16, 185, 129, 0.3);
  --shadow-purple: 0 0 30px rgba(139, 92, 246, 0.2);
}

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

/* Body styling */
body {
  background: var(--color-darker);
  color: var(--color-light);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

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

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

@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 5px var(--color-secondary), 0 0 10px var(--color-secondary), 0 0 15px var(--color-secondary);
  }
  50% {
    box-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent), 0 0 30px var(--color-accent);
  }
}

@keyframes queenFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.02);
  }
}

@keyframes cardFlip {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Animation Classes */
.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

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

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

.queen-float {
  animation: queenFloat 4s ease-in-out infinite;
}

.card-flip {
  animation: cardFlip 8s ease-in-out infinite;
}

/* Custom Components */
.neon-border {
  border: 2px solid var(--color-secondary);
  box-shadow: var(--shadow-neon);
}

.purple-glow {
  box-shadow: var(--shadow-purple);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.queen-card {
  background: linear-gradient(135deg, #2d1b69, #1a1a1a);
  border: 2px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.queen-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  z-index: -1;
  border-radius: inherit;
}

/* Prose styling for readability */
.prose {
  max-width: none;
  color: var(--color-light);
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--color-light);
}

.prose h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.prose p {
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.prose a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 10px var(--color-accent);
}

/* Button Styles */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-darker);
  box-shadow: var(--shadow-neon);
}

/* Responsive utilities */
@media (max-width: 1024px) {
  .prose h1 {
    font-size: 2rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Marquee container */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: rgba(139, 92, 246, 0.1);
  padding: 12px 0;
}

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

/* Game grid hover effects */
.game-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-purple);
}

.game-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
  transition: left 0.5s;
}

.game-card:hover::after {
  left: 100%;
}

/* Bonus calculator styling */
.calculator {
  background: var(--gradient-dark);
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  padding: 24px;
}

.calculator input {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-light);
  padding: 8px 12px;
  border-radius: 6px;
  width: 100%;
}

.calculator input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Stats tiles */
.stat-tile {
  background: var(--gradient-dark);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-tile:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-neon);
}

/* Payment methods strip */
.payment-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon);
}

/* Sidebar styling */
.sidebar {
  background: var(--gradient-dark);
  border-right: 1px solid var(--color-primary);
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--color-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 4px 8px;
}

.sidebar-item:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--color-secondary);
}

.sidebar-item svg {
  margin-right: 8px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 15s;
  }

  .game-card {
    margin-bottom: 16px;
  }

  .stat-tile {
    padding: 16px;
  }
}
