/* Parallax Effect */
.parallax-bg {
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    animation: parallax-float 20s ease-in-out infinite;
  }
}

@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0) scale(1.5);
  }
  50% {
    transform: translateY(-30px) scale(1.5);
  }
}

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

.marquee-content {
  display: flex;
  animation: marquee 40s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

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

/* Neon Glow Effects */
@keyframes neon-pulse {
  0%,
  100% {
    text-shadow: 0 0 10px #ffe600, 0 0 20px #ffe600, 0 0 30px #ffe600;
  }
  50% {
    text-shadow: 0 0 20px #ffe600, 0 0 30px #ffe600, 0 0 40px #ffe600, 0 0 50px #9d00ff;
  }
}

/* Scatter Trail Effect */
@keyframes scatter-trail {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(-45deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(100px) rotate(-45deg);
  }
}

/* Spin Burst Effect */
@keyframes spin-burst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

/* Prose Styling for Readability */
.prose-custom {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #e5e7eb;
  max-width: 100%;
}

.prose-custom p {
  margin-bottom: 1.25em;
  color: #d1d5db;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #ffffff;
}

.prose-custom h1 {
  font-size: 2.25rem;
  color: #ffe600;
  text-shadow: 0 0 20px rgba(255, 230, 0, 0.3);
}

.prose-custom h2 {
  font-size: 1.875rem;
  color: #ffe600;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(157, 0, 255, 0.3);
}

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

.prose-custom h4 {
  font-size: 1.25rem;
  color: #f3f4f6;
}

/* Enhanced list styling with better spacing and bullets */
.prose-custom ul,
.prose-custom ol {
  margin-bottom: 1.5em;
  padding-left: 1.75em;
  color: #d1d5db;
}

.prose-custom ul {
  list-style-type: disc;
}

.prose-custom ol {
  list-style-type: decimal;
}

.prose-custom li {
  margin-bottom: 0.75em;
  line-height: 1.7;
}

.prose-custom li::marker {
  color: #9d00ff;
}

/* Link styling with better hover states */
.prose-custom a {
  color: #ffe600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 230, 0, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.prose-custom a:hover {
  color: #9d00ff;
  text-decoration-color: #9d00ff;
  text-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
}

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

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

.prose-custom code {
  background-color: rgba(157, 0, 255, 0.2);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #fbbf24;
  border: 1px solid rgba(157, 0, 255, 0.3);
}

.prose-custom blockquote {
  border-left: 4px solid #ffe600;
  padding-left: 1.5em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  font-style: italic;
  color: #d1d5db;
  margin: 1.5em 0;
  background-color: rgba(157, 0, 255, 0.1);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Comprehensive table styling with responsive behavior */
.prose-custom table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9375rem;
  background-color: rgba(26, 15, 46, 0.6);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-custom thead {
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.3), rgba(255, 230, 0, 0.2));
}

.prose-custom th {
  padding: 1em 1.25em;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 2px solid #9d00ff;
  text-transform: uppercase;
  font-size: 0.875em;
  letter-spacing: 0.05em;
}

.prose-custom td {
  padding: 1em 1.25em;
  border-bottom: 1px solid rgba(157, 0, 255, 0.2);
  color: #d1d5db;
  vertical-align: top;
}

.prose-custom tbody tr {
  transition: background-color 0.2s ease;
}

.prose-custom tbody tr:hover {
  background-color: rgba(157, 0, 255, 0.15);
}

.prose-custom tbody tr:last-child td {
  border-bottom: none;
}

/* Image styling with responsive behavior */
.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(157, 0, 255, 0.2);
  border: 2px solid rgba(255, 230, 0, 0.3);
}

/* Horizontal rule styling */
.prose-custom hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9d00ff, #ffe600, transparent);
  margin: 3em 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(15, 10, 31, 0.5);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #9d00ff;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #ffe600;
}

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

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

::-webkit-scrollbar-track {
  background: #0f0a1f;
}

::-webkit-scrollbar-thumb {
  background: #9d00ff;
  border-radius: 6px;
}

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

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffe600;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
