/* Enhanced Prose Styles for Blog Content */

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}

.dark .prose {
  color: #374151;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #111827;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4, .dark .prose h5, .dark .prose h6 {
  color: #111827;
}

.prose h2 {
  font-size: 1.875rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

.prose h3 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose h4 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.dark .prose p {
  color: #374151;
}

.prose a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #bfdbfe;
  padding-bottom: 1px;
}

.prose a:hover {
  color: #1d4ed8;
  border-bottom: 1px solid #2563eb;
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: 2px;
}

.dark .prose a {
  color: #2563eb;
  border-bottom: 1px solid #bfdbfe;
}

.dark .prose a:hover {
  color: #1d4ed8;
  border-bottom: 1px solid #2563eb;
  background-color: rgba(37, 99, 235, 0.05);
}

/* External link indicator for blog posts (but not on blog index) */
.prose a[href^="http"]:not([href*="darrenholland.com"])::after {
  content: " ↗";
  font-size: 0.75em;
  color: #6b7280;
  margin-left: 2px;
  font-weight: 400;
}

/* Remove external link arrows from blog index page */
.blog-index .prose a[href^="http"]:not([href*="darrenholland.com"])::after {
  content: none !important;
}

/* Remove prose link styling from headers */
.prose h1 a,
.prose h2 a,
.prose h3 a,
.prose h4 a,
.prose h5 a,
.prose h6 a {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  font-weight: inherit !important;
}

.prose h1 a:hover,
.prose h2 a:hover,
.prose h3 a:hover,
.prose h4 a:hover,
.prose h5 a:hover,
.prose h6 a:hover {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background-color: transparent !important;
}

/* Remove all prose link styling from blog index pages, except tag pills */
.blog-index .prose a:not([class*="bg-gradient-to-r"]) {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  font-weight: inherit !important;
  background-color: transparent !important;
}

.blog-index .prose a:not([class*="bg-gradient-to-r"]):hover {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background-color: transparent !important;
}

/* Ensure tag pills maintain their styling on blog index */
.blog-index .prose a[class*="bg-gradient-to-r"] {
  border-radius: 9999px !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.blog-index .prose a[class*="bg-gradient-to-r"]:hover {
  border-radius: 9999px !important;
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background-color: inherit !important;
}

/* Make "Read more" links blue on blog index */
.blog-index .prose a[href*="/blog/"] {
  color: #2563eb !important;
  font-weight: 500 !important;
}

.blog-index .prose a[href*="/blog/"]:hover {
  color: #1d4ed8 !important;
}


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

.dark .prose strong {
  color: #111827;
}

.prose ul {
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #4b5563;
}

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

.dark .prose ul {
  color: #4b5563;
}

.prose ol {
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #4b5563;
}

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

.dark .prose ol {
  color: #4b5563;
}

.prose li {
  line-height: 1.75;
}

.prose code {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.dark .prose code {
  color: #ffffff;
  background-color: #1f2937;
}

.prose pre {
  background-color: #111827;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.dark .prose pre {
  background-color: #1f2937;
}

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

.prose blockquote {
  border-left: 4px solid #6b7280;
  padding-left: 1.5rem;
  font-style: italic;
  color: #4b5563;
  margin: 1.5rem 0;
}

.dark .prose blockquote {
  border-left-color: #6b7280;
  color: #4b5563;
}

.prose img {
  border-radius: 0.75rem;
  background-color: #f9fafb;
  object-fit: cover;
  margin: 2rem 0;
  width: 100%;
}

.dark .prose img {
  background-color: #1f2937;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
  margin: 2rem 0;
}

.dark .prose table {
  border-color: #4b5563;
}

.prose th {
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.dark .prose th {
  border-color: #4b5563;
  background-color: #1f2937;
  color: #ffffff;
}

.prose td {
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
}

.dark .prose td {
  border-color: #4b5563;
}

.prose hr {
  border-color: #d1d5db;
  margin: 3rem 0;
}

.dark .prose hr {
  border-color: #374151;
}