/* Custom CSS for Monsieur Lapin Casino Theme */

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

@media (prefers-reduced-motion: no-preference) {
  .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);
  }
}

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

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

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

/* Duplicate content for seamless loop */
.marquee-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
}

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

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

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

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

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

/* Enhanced prose styling for better markdown readability */
.prose {
  line-height: 1.7;
  max-width: 100%;
  color: #f3f4f6;
}

.prose p {
  margin-bottom: 1.5em;
  text-align: justify;
  font-size: 1.1rem;
}

.prose h2 {
  color: #d4af37;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.2;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.5em;
}

.prose h3 {
  color: #f7e7ce;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

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

.prose li {
  margin-bottom: 0.75em;
  color: #d1d5db;
  line-height: 1.6;
}

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

.prose ol li::marker {
  color: #d4af37;
  font-weight: 600;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table tbody {
  display: table;
  width: 100%;
}

.prose th {
  background-color: #d4af37;
  color: #1f2937;
  padding: 1rem;
  font-weight: 600;
  text-align: left;
  font-size: 0.95rem;
}

.prose td {
  padding: 1rem;
  border-bottom: 1px solid #374151;
  color: #f3f4f6;
  font-size: 0.95rem;
}

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

.prose tr:hover {
  background-color: #374151;
}

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

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

.prose blockquote {
  border-left: 4px solid #d4af37;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #d1d5db;
  background-color: #1f2937;
  padding: 1.5em;
  border-radius: 0 8px 8px 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2em 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.prose em {
  color: #f7e7ce;
}

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

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, #374151 0px, #4b5563 40px, #374151 80px);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Casino-specific animations */
@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(45deg, #d4af37, #f7e7ce, #0f52ba);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive container */
.container-responsive {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-responsive {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-responsive {
    padding: 0 2rem;
  }
}

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