/* Quill Editor Content Styles */
/* Diese Styles werden sowohl im Frontend als auch im Backend verwendet */

/* Editor Container Styles */
.ql-editor {
    min-height: 300px;
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

.ql-toolbar.ql-snow {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.ql-container.ql-snow {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    min-height: 300px;
}

/* Content Styles - Applied to both editor and frontend display */
.blog-content img,
.quill-content img,
.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.blog-content p,
.quill-content p,
.ql-editor p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-content h1,
.quill-content h1,
.ql-editor h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.blog-content h2,
.quill-content h2,
.ql-editor h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.blog-content h3,
.quill-content h3,
.ql-editor h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.blog-content h4,
.quill-content h4,
.ql-editor h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.blog-content h5,
.quill-content h5,
.ql-editor h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.blog-content h6,
.quill-content h6,
.ql-editor h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.blog-content ul,
.blog-content ol,
.quill-content ul,
.quill-content ol,
.ql-editor ul,
.ql-editor ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Frontend list styles - NOT for Quill editor */
.blog-content ul li,
.quill-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.blog-content ol li,
.quill-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Let Quill handle its own list styling - only add spacing */
.ql-editor ul li,
.ql-editor ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}



.blog-content blockquote,
.quill-content blockquote,
.ql-editor blockquote {
    border-left: 4px solid #9333ea;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
}

.blog-content a,
.quill-content a,
.ql-editor a {
    color: #9333ea;
    text-decoration: underline;
}

.blog-content a:hover,
.quill-content a:hover,
.ql-editor a:hover {
    color: #7c3aed;
}

.blog-content pre,
.quill-content pre,
.ql-editor pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-content code,
.quill-content code,
.ql-editor code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: Monaco, Consolas, 'Lucida Console', monospace;
    font-size: 0.875rem;
}

.blog-content pre code,
.quill-content pre code,
.ql-editor pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.blog-content strong,
.quill-content strong,
.ql-editor strong {
    font-weight: 700;
}

.blog-content em,
.quill-content em,
.ql-editor em {
    font-style: italic;
}

.blog-content u,
.quill-content u,
.ql-editor u {
    text-decoration: underline;
}

.blog-content s,
.quill-content s,
.ql-editor s {
    text-decoration: line-through;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .blog-content h1, 
    .quill-content h1 { 
        font-size: 1.75rem; 
    }
    
    .blog-content h2, 
    .quill-content h2 { 
        font-size: 1.375rem; 
    }
    
    .blog-content h3, 
    .quill-content h3 { 
        font-size: 1.125rem; 
    }
    
    .blog-content ul, 
    .blog-content ol, 
    .quill-content ul, 
    .quill-content ol { 
        margin-left: 1rem; 
    }
}
