/* Custom CSS for SpinLegend Casino Theme */

/* Parallax Background Animation */
.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 {
  position: relative;
}

.marquee-content {
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

@keyframes marqueeScroll {
  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%;
  background: inherit;
}

/* Titan Theme Specific Animations */
@keyframes thunderboltPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.animate-thunderbolt {
  animation: thunderboltPulse 3s ease-in-out infinite;
}

/* Golden Glow Effect */
@keyframes goldenGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  }
}

.golden-glow {
  animation: goldenGlow 2s ease-in-out infinite;
}

/* Marble Column Effects */
.marble-column {
  background: linear-gradient(
    90deg,
    rgba(245, 245, 220, 0.1) 0%,
    rgba(245, 245, 220, 0.2) 50%,
    rgba(245, 245, 220, 0.1) 100%
  );
  position: relative;
}

.marble-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 11px
  );
}

/* Enhanced prose styling for markdown content with responsive design */
.prose {
  max-width: 100%;
  color: #e5e7eb;
  line-height: 1.7;
}

.prose h2 {
  color: #d4af37;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: #fbbf24;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.prose h4 {
  color: #d4af37;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

.prose ul li {
  list-style-type: none;
  position: relative;
}

.prose ul li::before {
  content: "⚡";
  color: #d4af37;
  position: absolute;
  left: -1.5rem;
}

.prose ol li {
  list-style-type: decimal;
  color: #d4af37;
}

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

.prose table thead {
  display: table-header-group;
}

.prose table tbody {
  display: table-row-group;
}

.prose table tr {
  display: table-row;
  border-bottom: 1px solid #374151;
}

.prose table th {
  background: linear-gradient(135deg, #d4af37, #fbbf24);
  color: #000;
  font-weight: 700;
  padding: 1rem;
  text-align: left;
  border: 1px solid #b8860b;
  display: table-cell;
}

.prose table td {
  background-color: rgba(31, 41, 55, 0.8);
  color: #e5e7eb;
  padding: 1rem;
  border: 1px solid #374151;
  display: table-cell;
}

.prose blockquote {
  border-left: 4px solid #d4af37;
  background: rgba(212, 175, 55, 0.1);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #fbbf24;
}

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

.prose em {
  color: #fbbf24;
  font-style: italic;
}

.prose a {
  color: #d4af37;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
}

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

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

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

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

@media (max-width: 480px) {
  .prose {
    font-size: 0.875rem;
  }

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

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

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

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

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

.prose-custom h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}
.prose-custom h2 {
  font-size: 1.875rem;
  line-height: 1.3;
}
.prose-custom h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

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

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

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

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

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

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

.prose-custom code {
  background-color: #374151;
  color: #d4af37;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

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

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

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

.prose-custom th {
  background-color: #d4af37;
  color: #000;
  font-weight: 600;
}

.prose-custom td {
  background-color: #1f2937;
}

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

  .prose-custom h1 {
    font-size: 1.875rem;
  }
  .prose-custom h2 {
    font-size: 1.5rem;
  }
  .prose-custom h3 {
    font-size: 1.25rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .parallax-bg,
  .marquee-content,
  .animate-thunderbolt,
  .golden-glow {
    animation: none;
  }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .text-gray-300,
  .text-gray-400 {
    color: #ffffff;
  }

  .bg-gray-800 {
    background-color: #000000;
    border: 1px solid #ffffff;
  }
}

/* Print Styles */
@media print {
  .parallax-bg,
  .marquee-content,
  .animate-thunderbolt,
  .golden-glow {
    animation: none;
  }

  body {
    background: white;
    color: black;
  }

  .prose-custom {
    color: black;
  }

  .prose-custom h1,
  .prose-custom h2,
  .prose-custom h3,
  .prose-custom h4,
  .prose-custom h5,
  .prose-custom h6 {
    color: black;
  }
}
