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

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.6);
  }
}

/* Marquee */
.marquee-content {
  animation: marquee 30s linear infinite;
}

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

/* Particles */
.particle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle-container::before,
.particle-container::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #dc143c;
  border-radius: 50%;
  animation: particle-float 6s ease-in-out infinite;
}

.particle-container::before {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.particle-container::after {
  top: 60%;
  right: 25%;
  animation-delay: 2s;
}

/* Bonus glow effect */
.bonus-glow {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #b8b8b8;
  max-width: 100%;
}

.prose h2 {
  color: #dc143c;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  border-bottom: 2px solid rgba(220, 20, 60, 0.3);
  padding-bottom: 0.5em;
}

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

.prose h4 {
  color: #e8e8e8;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
  color: #b8b8b8;
}

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

.prose a:hover {
  color: #a0101e;
}

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

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

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.75;
  color: #b8b8b8;
}

.prose li::marker {
  color: #dc143c;
}

.prose ul > li::marker {
  color: #dc143c;
}

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

.prose blockquote {
  font-style: italic;
  border-left: 4px solid #dc143c;
  padding-left: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  color: #e8e8e8;
  background: rgba(44, 44, 46, 0.5);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0.25rem;
}

.prose table {
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  max-width: 100%;
}

.prose thead {
  background: #dc143c;
  color: #ffffff;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 2px solid rgba(220, 20, 60, 0.5);
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(44, 44, 46, 1);
  color: #b8b8b8;
}

.prose tbody tr {
  background: rgba(28, 28, 30, 0.5);
  transition: background 0.3s ease;
}

.prose tbody tr:hover {
  background: rgba(44, 44, 46, 0.7);
}

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

.prose code {
  background: rgba(44, 44, 46, 0.8);
  color: #dc143c;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-weight: 500;
}

.prose pre {
  background: rgba(28, 28, 30, 0.9);
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(220, 20, 60, 0.3);
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: #e8e8e8;
}

.prose hr {
  border: 0;
  border-top: 2px solid rgba(220, 20, 60, 0.3);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #dc143c;
  border-radius: 5px;
}

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