/* Animation Keyframes */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.8), 0 0 60px rgba(255, 20, 147, 0.4);
  }
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: rgba(255, 20, 147, 0.3);
  }
  50% {
    border-color: rgba(255, 20, 147, 0.8);
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow-border {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.6), 0 0 45px rgba(155, 89, 182, 0.4);
  }
}

/* Utility Classes */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.pulse-border {
  animation: pulse-border 2s ease-in-out infinite;
}

.floating-element {
  animation: floating 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

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

/* Prose Styling for Readability */
.prose {
  color: #e2e8f0;
  line-height: 1.75;
}

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

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

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

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

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

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

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

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

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

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

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

.prose code {
  background-color: rgba(148, 163, 184, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #ff1493;
}

.prose pre {
  background-color: rgba(15, 23, 42, 0.8);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

.prose img {
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

.prose th {
  background-color: rgba(148, 163, 184, 0.1);
  font-weight: 600;
}

.prose hr {
  border: none;
  border-top: 1px solid #334155;
  margin: 2rem 0;
}

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

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

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

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

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

/* Details/Summary Styling */
details summary {
  cursor: pointer;
  user-select: none;
}

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

details summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}

details[open] summary::before {
  transform: rotate(90deg);
}

/* Mobile Menu Overlay */
#mobileMenu {
  backdrop-filter: blur(10px);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

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

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .no-print {
    display: none;
  }
}
