/* Custom CSS for Monsieur Lapin Casino Theme */

/* Enhanced prose styling for markdown content */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #374151;
  font-size: 1rem;
}

.prose h2 {
  color: #1e3a8a;
  font-weight: 700;
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: #1e40af;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.prose strong {
  color: #1e3a8a;
  font-weight: 700;
}

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

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.prose table th {
  color: #d4af37;
  font-weight: 700;
  padding: 1rem;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.prose table td {
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.prose table tr:nth-child(even) td {
  background: #f3f4f6;
}

.prose blockquote {
  border-left: 4px solid #d4af37;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  display: block;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.prose a:hover {
  color: #b8860b;
  text-decoration: none;
}

/* Responsive prose adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 0.95rem;
  }

  .prose h2 {
    font-size: 1.625rem;
  }

  .prose h3 {
    font-size: 1.375rem;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose table th,
  .prose table td {
    padding: 0.75rem 0.5rem;
  }
}

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

.prose-custom p {
  margin-bottom: 1rem;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-custom h1 {
  font-size: 2.25rem;
}

.prose-custom h2 {
  font-size: 1.875rem;
}

.prose-custom h3 {
  font-size: 1.5rem;
}

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

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

.prose-custom a {
  color: #d4af37;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose-custom a:hover {
  color: #b8860b;
}

/* Eiffel Tower Silhouettes */
.eiffel-tower-left,
.eiffel-tower-right {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 20%,
    #d4af37 20%,
    #d4af37 22%,
    transparent 22%,
    transparent 40%,
    #d4af37 40%,
    #d4af37 42%,
    transparent 42%,
    transparent 60%,
    #d4af37 60%,
    #d4af37 80%,
    transparent 80%
  );
  clip-path: polygon(45% 0%, 55% 0%, 60% 100%, 40% 100%);
}

/* Parallax Animation */
.parallax {
  will-change: transform;
}

/* Marquee Animation */
.marquee-container {
  position: relative;
}

.marquee-content {
  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%;
  display: flex;
  align-items: center;
}

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

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Scatter light effects */
.scatter-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.scatter-lights::before,
.scatter-lights::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #1e3a8a;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite alternate;
}

.scatter-lights::before {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.scatter-lights::after {
  top: 60%;
  right: 20%;
  animation-delay: 1s;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

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

  .game-card {
    width: 200px;
  }
}

/* Smooth transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

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

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

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