/**
 * Artifact Viewer Component Styles
 *
 * Styles for markdown artifact rendering including task lists,
 * code blocks, and prose enhancements.
 */

/* ==========================================================================
   Task List Styles
   ========================================================================== */

.task-list-item {
  list-style-type: none;
  margin-left: -1.25rem;
}

.task-checkbox {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  accent-color: #3b82f6;
  cursor: default;
}

.task-marker {
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Prose Enhancements for Artifact Content
   ========================================================================== */

/* Enhanced code block styling */
.artifact-viewer .prose pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  border-radius: 0.375rem;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.5;
}

.artifact-viewer .prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Inline code styling */
.artifact-viewer .prose :not(pre) > code {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Table styling */
.artifact-viewer .prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

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

.artifact-viewer .prose th {
  background-color: #f9fafb;
  font-weight: 600;
}

.artifact-viewer .prose tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Blockquote styling */
.artifact-viewer .prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #4b5563;
  font-style: italic;
}

/* Header styling */
.artifact-viewer .prose h1,
.artifact-viewer .prose h2,
.artifact-viewer .prose h3,
.artifact-viewer .prose h4 {
  color: #111827;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.artifact-viewer .prose h1 {
  font-size: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.375rem;
}

.artifact-viewer .prose h2 {
  font-size: 1rem;
}

.artifact-viewer .prose h3 {
  font-size: 0.875rem;
}

/* List styling */
.artifact-viewer .prose ul,
.artifact-viewer .prose ol {
  padding-left: 1.5rem;
}

.artifact-viewer .prose li {
  margin: 0.25rem 0;
}

/* Link styling */
.artifact-viewer .prose a {
  color: #2563eb;
  text-decoration: underline;
}

.artifact-viewer .prose a:hover {
  color: #1d4ed8;
}

/* Emphasis styling */
.artifact-viewer .prose strong {
  font-weight: 600;
  color: #111827;
}

.artifact-viewer .prose em {
  font-style: italic;
}

/* Horizontal rule */
.artifact-viewer .prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

/* ==========================================================================
   Markdown Badge (for artifact type indicator)
   ========================================================================== */

.artifact-viewer__markdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background-color: #dbeafe;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.artifact-viewer__markdown-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}
