/*
 * Styles for rendered Markdown content
 * Used in changelog and other markdown-rendered views
 */

.markdown-content {
  color: #475569; /* slate-600 */
  line-height: 1.75;
}

.markdown-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b; /* slate-800 */
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0; /* slate-200 */
}

.markdown-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b; /* slate-800 */
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0; /* slate-200 */
}

.markdown-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #334155; /* slate-700 */
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155; /* slate-700 */
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.markdown-content p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.markdown-content ul,
.markdown-content ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
}

.markdown-content li::marker {
  color: #94a3b8; /* slate-400 */
}

.markdown-content a {
  color: #2563eb; /* blue-600 */
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content code {
  font-size: 0.875rem;
  background-color: #f1f5f9; /* slate-100 */
  color: #334155; /* slate-700 */
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.markdown-content pre {
  background-color: #1e293b; /* slate-800 */
  color: #f1f5f9; /* slate-100 */
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.markdown-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.8125rem;
}

.markdown-content blockquote {
  border-left: 4px solid #e2e8f0; /* slate-200 */
  padding-left: 1rem;
  margin-left: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #64748b; /* slate-500 */
  font-style: italic;
}

.markdown-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0; /* slate-200 */
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid #e2e8f0; /* slate-200 */
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.markdown-content th {
  background-color: #f8fafc; /* slate-50 */
  font-weight: 600;
  color: #334155; /* slate-700 */
}

.markdown-content strong {
  font-weight: 600;
  color: #334155; /* slate-700 */
}

.markdown-content em {
  font-style: italic;
}

.markdown-content del {
  text-decoration: line-through;
  color: #94a3b8; /* slate-400 */
}

.markdown-content mark {
  background-color: #fef08a; /* yellow-200 */
  padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
}

/* First h1 should have no top margin */
.markdown-content > h1:first-child {
  margin-top: 0;
}

/* Spacing adjustment for version headers [x.x.x] */
.markdown-content h2:not(:first-child) {
  margin-top: 2.5rem;
}
