/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-2rem) translateX(1rem);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(2rem) translateX(-1rem);
  }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 10s ease-in-out infinite;
}

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

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

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

.marquee-content > div {
  display: flex;
  gap: 1.5rem;
}

.marquee-content::after {
  content: "";
  display: flex;
  gap: 1.5rem;
}

/* Duplicate content for seamless loop */
.marquee-content > div::after {
  content: "";
  display: flex;
  gap: 1.5rem;
  position: absolute;
  left: 100%;
  top: 0;
}

/* Table Responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Prose Styling */
.prose {
  color: #2D3142;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #FF6B9D;
  font-size: 2em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  color: #2D3142;
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.prose h4 {
  color: #2D3142;
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

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

.prose a {
  color: #FF6B9D;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.prose a:hover {
  color: #6BCF7F;
}

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

.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;
}

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

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

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  .prose table {
    display: table;
  }
}

.prose thead {
  background-color: #FF6B9D;
  color: white;
}

.prose thead th {
  font-weight: 700;
  padding: 0.875em 1em;
  text-align: left;
  border-bottom: 2px solid #FFD93D;
}

.prose tbody tr {
  border-bottom: 1px solid #FFF9F0;
}

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

.prose tbody td {
  padding: 0.875em 1em;
  vertical-align: top;
}

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

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #FFD93D;
  padding-left: 1.5em;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  color: #2D3142;
  background-color: #FFF9F0;
  padding: 1.25em 1.5em;
  border-radius: 0.5rem;
}

.prose blockquote p {
  margin: 0;
}

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

.prose code {
  background-color: #FFF9F0;
  color: #FF6B9D;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-weight: 600;
}

.prose pre {
  background-color: #2D3142;
  color: #FFF9F0;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875em;
  font-weight: 400;
}

.prose hr {
  border: none;
  border-top: 2px solid #FFD93D;
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.75em;
  }
  
  .prose h3 {
    font-size: 1.375em;
  }
  
  .prose h4 {
    font-size: 1.125em;
  }
  
  .prose {
    font-size: 1rem;
  }
}

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

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid #FF6B9D;
  outline-offset: 2px;
}

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

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