/* Astromania Casino - Custom Styles */

:root {
  --purple-deep: #1a0a2e;
  --purple-mid: #2d1b4e;
  --purple-light: #4a2c6d;
  --gold-mystic: #ffd700;
  --gold-accent: #ff6b35;
  --white-pure: #ffffff;
  --gray-light: #e5e7eb;
  --gray-dark: #1f2937;
}

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

/* Hypnotic Background Pattern */
body {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-mid) 50%, var(--purple-deep) 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
  animation: hypnoticRotate 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hypnoticRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Particle Animation */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-mystic);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(2n) {
  background: var(--gold-accent);
  animation-duration: 10s;
}

.particle:nth-child(3n) {
  background: rgba(255, 255, 255, 0.6);
  animation-duration: 12s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) scale(1);
    opacity: 0;
  }
}

/* Pulsating CTA Effect */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
  }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

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

.glow {
  animation: glow 3s infinite;
}

/* Spiral Pattern */
.spiral-pattern {
  position: relative;
  overflow: hidden;
}

.spiral-pattern::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 215, 0, 0.03) 5deg,
    transparent 10deg
  );
  transform: translate(-50%, -50%);
  animation: spiralSpin 30s linear infinite;
  pointer-events: none;
}

@keyframes spiralSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

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

.float {
  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, rgba(255, 255, 255, 0) 0%, rgba(255, 215, 0, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Prose Styling */
.prose {
  color: var(--gray-light);
  line-height: 1.6;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--white-pure);
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 2rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

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

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

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

.prose a {
  color: var(--gold-mystic);
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

/* Mobile Menu Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-mystic) 0%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

::-webkit-scrollbar-track {
  background: var(--purple-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-mystic);
}

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

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

  .prose h3 {
    font-size: 1.25rem;
  }
}

/* Z-index Management */
.z-content {
  position: relative;
  z-index: 10;
}
