/* Custom CSS for FreeSpinza Casino Theme */

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

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

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

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

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

/* Particle Animation */
.particle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ff6b35;
  border-radius: 50%;
  opacity: 0.7;
  animation: float 6s infinite linear;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.particle:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
  animation-duration: 6s;
}

.particle:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
  animation-duration: 10s;
}

.particle:nth-child(4) {
  left: 70%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.particle:nth-child(5) {
  left: 90%;
  animation-delay: 3s;
  animation-duration: 9s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Tilt Animation */
.tilt-animation {
  animation: tilt 3s infinite ease-in-out;
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

/* Marquee Animation for text scrolling */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

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

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

/* Hover effects for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

/* Pulse animation for CTAs */
.pulse-orange {
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
  }
}

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

.prose h1 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.prose h2 {
  color: #ff6b35;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

.prose a {
  color: #ff6b35;
  text-decoration: none;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #e55a2b;
}

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

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

.prose blockquote {
  border-left: 4px solid #ff6b35;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #d1d5db;
}

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

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

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

.prose tr:nth-child(even) {
  background-color: #1f2937;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .particle {
    display: none; /* Hide particles on mobile for performance */
  }

  .tilt-animation {
    animation: none; /* Disable tilt on mobile */
  }
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-casino-dark {
    background-color: #000000;
  }

  .bg-casino-gray {
    background-color: #333333;
  }

  .text-gray-300 {
    color: #ffffff;
  }

  .text-gray-400 {
    color: #cccccc;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .particle {
    animation: none;
  }

  .tilt-animation {
    animation: none;
  }

  .marquee-content {
    animation: none;
  }

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

/* Print styles */
@media print {
  .particle-container,
  .fixed,
  .sticky {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .bg-casino-dark,
  .bg-casino-gray {
    background: white !important;
  }

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