/* Custom CSS for Monsieur Lapin Casino Theme */

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

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

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes floatFast {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(-3deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

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

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

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating elements animations */
.floating-card {
  animation: floatSlow 6s ease-in-out infinite;
}

.floating-dice {
  animation: floatFast 4s ease-in-out infinite;
}

.floating-coin {
  animation: float 5s ease-in-out infinite;
}

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

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
  z-index: 1;
}

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

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

/* Marquee effect for payment methods (if needed) */
.marquee {
  animation: marquee 20s linear infinite;
}

/* Pulse animation for CTA buttons */
.pulse-btn {
  animation: pulse 2s ease-in-out infinite;
}

/* Custom gradient backgrounds */
.circus-gradient {
  background: linear-gradient(135deg, #77160e 0%, #a91d1d 50%, #77160e 100%);
}

.magic-gradient {
  background: linear-gradient(45deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
}

/* Backdrop blur effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

::-webkit-scrollbar-track {
  background: #77160e;
}

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

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

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

.prose p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #77160e;
}

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

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

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

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .floating-card,
  .floating-dice,
  .floating-coin {
    display: none;
  }

  .game-card {
    margin-bottom: 1rem;
  }

  .prose {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1023px) {
  .floating-card,
  .floating-dice,
  .floating-coin {
    width: 12px;
    height: 12px;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .container {
    max-width: 1440px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-effect {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
  }

  .game-card {
    border: 2px solid #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .floating-dice,
  .floating-coin,
  .pulse-btn {
    animation: none;
  }

  .game-card {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .floating-card,
  .floating-dice,
  .floating-coin,
  nav,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .prose {
    color: black;
  }
}

/* Custom utility classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.box-shadow-lg {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(45deg, #d4af37, #f4d03f) 1;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: marquee 1.5s infinite;
}

/* Sparkle effect for special elements */
.sparkle::before {
  content: "✨";
  position: absolute;
  top: -10px;
  right: -10px;
  animation: sparkle 2s ease-in-out infinite;
  font-size: 1.2rem;
}

/* Custom button styles */
.btn-magic {
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #77160e;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-magic:hover {
  background: linear-gradient(45deg, #f4d03f, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-magic:active {
  transform: translateY(0);
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .text-4xl {
    font-size: 2rem;
  }

  .text-3xl {
    font-size: 1.75rem;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .prose {
    color: #e5e7eb;
  }

  .prose h2,
  .prose h3 {
    color: #d4af37;
  }
}
