/* Quill content styling for public view */
.ql-container {
    border: none !important;
    font-size: 1rem;
    line-height: 1.42;
}

.ql-editor {
    padding: 0 !important;
    min-height: auto !important;
}

.ql-editor h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem 0;
}

.ql-editor h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.ql-editor h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
}

.ql-editor p {
    margin: 0;
    padding: 0;
}

.ql-editor strong {
    font-weight: 700;
}

.ql-editor em {
    font-style: italic;
}

.ql-editor ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.ql-editor ol {
    list-style-type: decimal;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.ql-editor li {
    margin-bottom: 0.5rem;
}

.ql-editor a {
    color: #7c3aed;
    text-decoration: underline;
}

.ql-editor blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Dark mode support */
.dark .ql-editor {
    color: #cbd5e1;
}

.dark .ql-editor h1,
.dark .ql-editor h2,
.dark .ql-editor h3 {
    color: #f1f5f9;
}

.dark .ql-editor blockquote {
    border-left-color: #475569;
    color: #94a3b8;
}

/* Remove empty or whitespace-only paragraphs */
.ql-editor p:empty,
.ql-editor p:has(> br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
}
