
/* Estilos para el editor */
.ProseMirror {
    outline: none !important;
}

.ProseMirror p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: #9ca3af;
    pointer-events: none;
    height: 0;
}

/* Estilos para el contenido del editor */
.prose h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid hsl(var(--primary));
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    background: hsl(var(--base-200));
    padding: 1rem;
    border-radius: 0.5rem;
}

.prose pre {
    background: hsl(var(--base-300));
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    border: 1px solid hsl(var(--base-300));
}

.prose code:not(pre code) {
    background: hsl(var(--base-200));
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: hsl(var(--primary));
    font-weight: 600;
}

.prose ul, .prose ol {
    margin: 1rem 0;
}

.prose li {
    margin: 0.25rem 0;
}

.prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, hsl(var(--base-300)), transparent);
    margin: 2rem 0;
}

.prose p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* Para quitar listas del editor */
.tiptap-editor ol,
.tiptap-editor ul {
    list-style: revert;
    margin: revert;
    padding: revert;
}
