/**
 * Rich Text Content Styling
 * For displaying HTML content in post views
 */

/* Basic styling for post content */
.rich-text-content {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.84);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Headings */
.rich-text-content h1, 
.rich-text-content h2, 
.rich-text-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.rich-text-content h1 {
    font-size: 2.5em;
}

.rich-text-content h2 {
    font-size: 2em;
}

.rich-text-content h3 {
    font-size: 1.5em;
}

/* Paragraphs */
.rich-text-content p {
    margin-bottom: 1.5em;
}

/* Links */
.rich-text-content a {
    color: #03a87c;
    text-decoration: underline;
}

.rich-text-content a:hover {
    color: #028a65;
    text-decoration: underline;
}

/* Blockquotes */
.rich-text-content blockquote {
    border-left: 4px solid #03a87c;
    padding-left: 1em;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5em;
}

/* Images */
.rich-text-content img {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 4px;
}

/* Lists */
.rich-text-content ul,
.rich-text-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.rich-text-content li {
    margin-bottom: 0.5em;
}

/* Code blocks */
.rich-text-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

.rich-text-content pre {
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
    overflow: auto;
    margin-bottom: 1.5em;
}

.rich-text-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Horizontal rules */
.rich-text-content hr {
    border: 0;
    height: 1px;
    background-color: #e6e6e6;
    margin: 2em 0;
}

/* Tables */
.rich-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    overflow-x: auto;
    display: block;
}

.rich-text-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

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

.rich-text-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rich-text-content {
        font-size: 18px;
    }
    
    .rich-text-content h1 {
        font-size: 2em;
    }
    
    .rich-text-content h2 {
        font-size: 1.75em;
    }
    
    .rich-text-content h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    .rich-text-content {
        font-size: 16px;
    }
    
    .rich-text-content h1 {
        font-size: 1.75em;
    }
    
    .rich-text-content h2 {
        font-size: 1.5em;
    }
    
    .rich-text-content h3 {
        font-size: 1.25em;
    }
    
    .rich-text-content blockquote {
        margin-left: 0;
        margin-right: 0;
    }
}