/* Chat-specific styles for markdown content */

/* Base prose styling - improved spacing for recipes */
.prose {
  line-height: 1.7;
}

.prose p {
  margin-top: 0.875rem;
  margin-bottom: 0.875rem;
}

/* Code blocks */
.prose pre {
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.prose pre code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Inline code */
.prose code {
  font-size: 0.875em;
  font-weight: 500;
}

/* Lists in recipes - more spacious */
.prose ul, .prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin: 0.5rem 0;
  line-height: 1.7;
}

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

/* Nested lists */
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul {
  margin: 0.5rem 0;
}

/* Tables for nutritional info or ingredient lists */
.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
}

.prose th {
  background-color: #f9fafb;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
}

.prose td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
}

/* Blockquotes for tips or notes */
.prose blockquote {
  border-left: 4px solid #f59e0b;
  background-color: #fffbeb;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-style: italic;
  border-radius: 0.375rem;
}

/* Headings in recipe steps - more breathing room */
.prose h1, .prose h2, .prose h3, .prose h4 {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.prose h1:first-child, .prose h2:first-child, .prose h3:first-child, .prose h4:first-child {
  margin-top: 0;
}

.prose h1 { font-size: 1.5rem; }
.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.125rem; }
.prose h4 { font-size: 1rem; }

/* Horizontal rules for recipe sections */
.prose hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* Links */
.prose a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration-style: solid;
}

/* Strong/bold text */
.prose strong {
  font-weight: 600;
}
