/* Tiptap Editor Styles */
.tiptap {
  outline: none;
}

/* Headings */
.tiptap h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 2.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.tiptap h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.tiptap h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.tiptap p {
  margin-bottom: 1rem;
}

/* Lists */
.tiptap ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.tiptap ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.tiptap li {
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
}

/* Nested lists */
.tiptap ul ul,
.tiptap ol ol,
.tiptap ul ol,
.tiptap ol ul {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Blockquotes */
.tiptap blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #6b7280;
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.25rem;
}

/* Code */
.tiptap code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Inconsolata, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
}

.tiptap pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.tiptap pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Bold and Italic */
.tiptap strong {
  font-weight: 600;
}

.tiptap em {
  font-style: italic;
}

/* Strike through */
.tiptap s {
  text-decoration: line-through;
}

/* Hard breaks */
.tiptap br {
  display: block;
  margin: 0.5rem 0;
  content: "";
}

/* Horizontal rule */
.tiptap hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* Links */
.tiptap a {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tiptap a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Links in editor - more subtle to distinguish from clicked links */
.tiptap.ProseMirror a {
  color: #3b82f6;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.tiptap.ProseMirror a:hover {
  color: #2563eb;
  text-decoration-style: solid;
}