/* Custom CSS for Spin Legend Casino Theme */

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

/* Parallax Background Effect */
.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

@media (min-width: 768px) {
  .parallax-bg {
    animation: parallaxFloat 20s ease-in-out infinite;
  }
}

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

/* Floating Casino Elements */
.floating-element {
  animation: float 6s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  50% {
    transform: translateY(-20px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

/* Marquee Animation for Payment Methods */
.marquee-container {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  padding-left: 100%;
}

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

/* Island Navigation Styling */
.island-nav {
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Hover Effects for Game Cards */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

/* Glowing Button Effect */
.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.glow-button:hover::before {
  left: 100%;
}

/* Pulse Animation for Bonus Badge */
.bonus-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* Prose Styling for Better Readability */
.prose {
  color: #e5e7eb;
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

.prose a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.prose a:hover {
  color: #7c3aed;
  text-decoration: underline;
}

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

.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin: 0.5rem 0;
  color: #d1d5db;
}

.prose blockquote {
  border-left: 4px solid #8b5cf6;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #9ca3af;
}

.prose code {
  background-color: #374151;
  color: #f9fafb;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

.prose th,
.prose td {
  border: 1px solid #374151;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: #8b5cf6;
  color: #ffffff;
  font-weight: 600;
}

.prose td {
  color: #d1d5db;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 20s;
  }

  .floating-element {
    display: none;
  }

  .parallax-bg {
    animation: none;
  }
}

/* Loading Animation */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .bg-casino-purple {
    background-color: #6d28d9;
  }

  .text-casino-purple {
    color: #a855f7;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .parallax-bg,
  .floating-element,
  .marquee-content {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Print Styles */
@media print {
  .sticky,
  .fixed,
  .island-nav {
    position: static !important;
  }

  .bg-black,
  .bg-gray-900,
  .bg-gray-800 {
    background: white !important;
    color: black !important;
  }

  .text-white {
    color: black !important;
  }
}
