/* TinyMCE / zengin metin — vitrinde editör önizlemesine yakın görünüm */
.blog_text.rich-content,
.rich-content {
    line-height: 1.75;
    color: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-content > *:first-child {
    margin-top: 0;
}

.rich-content > *:last-child {
    margin-bottom: 0;
}

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

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.rich-content h1 { font-size: 2rem; }
.rich-content h2 { font-size: 1.65rem; }
.rich-content h3 { font-size: 1.4rem; }
.rich-content h4 { font-size: 1.2rem; }
.rich-content h5 { font-size: 1.05rem; }
.rich-content h6 { font-size: 1rem; }

.rich-content ul,
.rich-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.rich-content li {
    margin-bottom: 0.35rem;
}

.rich-content ul ul,
.rich-content ol ol,
.rich-content ul ol,
.rich-content ol ul {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.rich-content img,
.rich-content video,
.rich-content iframe {
    max-width: 100%;
    height: auto;
}

.rich-content img {
    display: inline-block;
    vertical-align: middle;
    margin: 0.5rem 0;
}

.rich-content figure {
    margin: 1rem 0;
    max-width: 100%;
}

.rich-content figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.35rem;
}

.rich-content table {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
}

.rich-content th,
.rich-content td {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
}

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

.rich-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--main-color, #0d6efd);
    background: #f8f9fa;
}

.rich-content pre {
    margin: 1rem 0;
    padding: 1rem;
    background: #f4f4f4;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.rich-content code {
    padding: 0.15rem 0.35rem;
    background: #f4f4f4;
    border-radius: 3px;
    font-size: 0.92em;
}

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

.rich-content hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

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

.rich-content .align-left,
.rich-content [style*="text-align: left"],
.rich-content [style*="text-align:left"] {
    text-align: left;
}

.rich-content .align-center,
.rich-content [style*="text-align: center"],
.rich-content [style*="text-align:center"] {
    text-align: center;
}

.rich-content .align-right,
.rich-content [style*="text-align: right"],
.rich-content [style*="text-align:right"] {
    text-align: right;
}

.rich-content .align-justify,
.rich-content [style*="text-align: justify"],
.rich-content [style*="text-align:justify"] {
    text-align: justify;
}

.rich-content::after {
    content: "";
    display: table;
    clear: both;
}
