/* WYSIWYG Editor Styles */

/* Typography styles for content inside editor */
.format h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; margin-top: 1.5rem; }
.format h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.875rem; margin-top: 1.25rem; }
.format h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; margin-top: 1rem; }
.format h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.625rem; margin-top: 0.875rem; }
.format h5 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; margin-top: 0.75rem; }
.format h6 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; margin-top: 0.75rem; }

.format p { margin-bottom: 1rem; line-height: 1.75; }
.format strong { font-weight: 600; }
.format em { font-style: italic; }
.format u { text-decoration: underline; }
.format s { text-decoration: line-through; }

.format ul { list-style-type: disc; margin-left: 1.5rem; margin-bottom: 1rem; }
.format ol { list-style-type: decimal; margin-left: 1.5rem; margin-bottom: 1rem; }
.format li { margin-bottom: 0.5rem; line-height: 1.75; }

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

.format a {
  color: #3b82f6;
  text-decoration: underline;
}

.format a:hover {
  color: #1d4ed8;
}

.format code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
}

.format hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* Dark mode styles */
.dark .format blockquote {
  border-left-color: #4b5563;
  color: #9ca3af;
}

.dark .format code {
  background-color: #374151;
  color: #e5e7eb;
}

.dark .format hr {
  border-top-color: #4b5563;
}

.dark .format a {
  color: #60a5fa;
}

.dark .format a:hover {
  color: #93c5fd;
}

/* Editor button states */
.ProseMirror-focused {
  outline: none;
}

/* Button active states */
button.is-active {
  background-color: #3b82f6 !important;
  color: white !important;
}

.dark button.is-active {
  background-color: #60a5fa !important;
  color: #1f2937 !important;
}

/* Editor clickable area */
.ProseMirror {
  min-height: 120px;
  padding: 8px;
  cursor: text;
  outline: none;
}

.ProseMirror:focus {
  outline: none;
}

/* Ensure editor is clickable */
[data-wysiwyg-target="editor"] {
  cursor: text;
  min-height: 120px;
}

[data-wysiwyg-target="editor"] .ProseMirror {
  cursor: text;
}