/* ============================================
   Rich Content Styles (Quill WYSIWYG output)
   ============================================ */

.rich-content {
    font-size: 16px;
    line-height: 1.8;
    color: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 700;
    line-height: 1.3;
}

.rich-content h1 { font-size: 2em; }
.rich-content h2 { font-size: 1.6em; }
.rich-content h3 { font-size: 1.3em; }
.rich-content h4 { font-size: 1.1em; }

.rich-content p {
    margin-bottom: 1em;
}

.rich-content strong,
.rich-content b {
    font-weight: 700;
}

.rich-content em,
.rich-content i {
    font-style: italic;
}

.rich-content u {
    text-decoration: underline;
}

.rich-content s {
    text-decoration: line-through;
}

.rich-content a {
    color: #0d6efd;
    text-decoration: underline;
    transition: color 0.2s;
}

.rich-content a:hover {
    color: #0a58ca;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1em;
    padding-left: 1.8em;
}

.rich-content ul {
    list-style-type: disc;
}

.rich-content ol {
    list-style-type: decimal;
}

.rich-content li {
    margin-bottom: 0.35em;
    line-height: 1.7;
}

.rich-content blockquote {
    border-left: 4px solid #0d6efd;
    margin: 1.2em 0;
    padding: 0.8em 1.2em;
    background: rgba(13, 110, 253, 0.05);
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.rich-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1em 1.2em;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1em;
    font-size: 0.9em;
    line-height: 1.6;
}

.rich-content code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.rich-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

.rich-content .ql-video {
    width: 100%;
    min-height: 320px;
    border-radius: 6px;
    margin: 1em 0;
}

.rich-content hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 1.5em 0;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.rich-content table th,
.rich-content table td {
    border: 1px solid #dee2e6;
    padding: 0.6em 0.8em;
    text-align: left;
}

.rich-content table th {
    background: #f8f9fa;
    font-weight: 700;
}

/* Alignment classes from Quill */
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right  { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }

/* Indent classes from Quill */
.rich-content .ql-indent-1 { padding-left: 3em; }
.rich-content .ql-indent-2 { padding-left: 6em; }
.rich-content .ql-indent-3 { padding-left: 9em; }

/* Size classes from Quill */
.rich-content .ql-size-small  { font-size: 0.75em; }
.rich-content .ql-size-large  { font-size: 1.5em; }
.rich-content .ql-size-huge   { font-size: 2.5em; }

/* Clean up empty paragraphs from Quill */
.rich-content p:last-child {
    margin-bottom: 0;
}

/* Light-on-dark variant for sections with dark backgrounds */
.text-light .rich-content,
.bg-gradient .rich-content {
    color: rgba(255, 255, 255, 0.85);
}

.text-light .rich-content a,
.bg-gradient .rich-content a {
    color: #6ea8fe;
}

.text-light .rich-content blockquote,
.bg-gradient .rich-content blockquote {
    border-left-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

