/**
 * Global rich text content styles
 * Applied to both the editor content and rendered content
 */
 
.rich-text-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

.rich-text-content p {
    margin: 0 0 1em 0;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5,
.rich-text-content h6 {
    font-weight: bold;
    line-height: 1.2;
    margin: 1em 0 0.5em 0;
}

.rich-text-content h1 { font-size: 2em; }
.rich-text-content h2 { font-size: 1.75em; }
.rich-text-content h3 { font-size: 1.5em; }
.rich-text-content h4 { font-size: 1.25em; }
.rich-text-content h5 { font-size: 1em; }
.rich-text-content h6 { font-size: 0.875em; }

.rich-text-content a {
    color: #007bff;
    text-decoration: underline;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
}

.rich-text-content figure {
    margin: 1em 0;
    display: table;
}

.rich-text-content figure figcaption {
    display: table-caption;
    caption-side: bottom;
    font-size: 0.8em;
    color: #666;
    padding: 0.5em;
    text-align: center;
}

.rich-text-content hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 1em 0;
}

.rich-text-content blockquote {
    border-left: 4px solid #dee2e6;
    margin: 0 0 1em 0;
    padding: 0.5em 1em;
    color: #6c757d;
}

.rich-text-content pre {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.rich-text-content code {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.2em 0.4em;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.rich-text-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.rich-text-content table th,
.rich-text-content table td {
    border: 1px solid #dee2e6;
    padding: 0.5em;
}

.rich-text-content table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.rich-text-content ul,
.rich-text-content ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.rich-text-content ul li,
.rich-text-content ol li {
    margin-bottom: 0.5em;
}

.rich-text-content .text-align-left {
    text-align: left;
}

.rich-text-content .text-align-center {
    text-align: center;
}

.rich-text-content .text-align-right {
    text-align: right;
}

.rich-text-content .text-align-justify {
    text-align: justify;
}