/* ============================================
   SPINNY CASINO - CUSTOM STYLES
   Modern Dark Casino + iOS Glass + Medieval England
   ============================================ */

/* === KEYFRAME ANIMATIONS === */

/* Parallax scroll effect */
@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

/* Glow pulse for CTAs */
@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
  }
}

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

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === UTILITY CLASSES === */

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

.parallax-float-delayed {
  animation: parallax-float 6s ease-in-out infinite;
  animation-delay: 1s;
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

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

.glass-card {
  background: rgba(20, 20, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card-light {
  background: rgba(40, 40, 70, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

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

.medieval-border {
  position: relative;
}

.medieval-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #d4af37, #8b7355, #d4af37);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
}

/* === PROSE STYLING FOR READABILITY === */

.prose-casino {
  color: #e5e7eb;
  line-height: 1.7;
}

.prose-casino h2 {
  color: #d4af37;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.prose-casino h3 {
  color: #f3f4f6;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-casino p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

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

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

.prose-casino ul li::marker {
  color: #d4af37;
}

.prose-casino a {
  color: #d4af37;
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  transition: all 0.2s;
}

.prose-casino a:hover {
  color: #f4d03f;
  text-decoration-color: #f4d03f;
}

.prose-casino strong {
  color: #f9fafb;
  font-weight: 600;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-casino th {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose-casino td {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose-casino tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* === MEDIEVAL DECORATIVE ELEMENTS === */

.heraldic-pattern {
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(212, 175, 55, 0.03) 10px,
      rgba(212, 175, 55, 0.03) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(139, 115, 85, 0.03) 10px,
      rgba(139, 115, 85, 0.03) 20px
    );
}

.shield-badge {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, #1e1e3f 0%, #2d2d5f 100%);
  border: 2px solid #d4af37;
}

/* === RESPONSIVE OVERRIDES === */

@media (max-width: 1023px) {
  .prose-casino h2 {
    font-size: 1.75rem;
  }

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

  .prose-casino p {
    font-size: 1rem;
  }
}

/* === SMOOTH SCROLL === */

html {
  scroll-behavior: smooth;
}

/* === CUSTOM SCROLLBAR === */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f0f1e;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f4d03f;
}

/* === FADE IN ANIMATION === */

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in-up-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

/* === GAME CARD HOVER === */

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

/* === BONUS BADGE === */

.bonus-badge {
  position: relative;
  overflow: hidden;
}

.bonus-badge::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: glass-shimmer 3s infinite;
}
