﻿.article-content {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 16px;
    line-height: 1.6;
    font-size: 16px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    color: #333;
}

    /* Tüm alt elemanlara genel kontrol */
    .article-content *,
    .article-content *::before,
    .article-content *::after {
        box-sizing: border-box !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* Başlıklar */
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        margin: 1em 0 0.5em;
        font-weight: 600;
        line-height: 1.2;
    }

    /* Paragraflar */
    .article-content p {
        margin-bottom: 1em;
    }

    /* Listeler */
    .article-content ul,
    .article-content ol {
        margin: 0 0 1em 1.5em;
        padding-left: 1.2em;
    }

    /* Linkler */
    .article-content a {
        color: #007bff;
        text-decoration: underline;
        word-break: break-word;
    }

    /* Görseller */
    .article-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0.5em 0;
    }

    /* Tablolar */
    .article-content table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse;
        margin-bottom: 1em;
        background: #fff;
    }

    .article-content th,
    .article-content td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
        vertical-align: top;
        word-break: break-all !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        text-overflow: clip;
        overflow: hidden;
    }

        /* Summernote gibi editörlerden gelen inline stil ezici */
        .article-content td[style],
        .article-content th[style],
        .article-content table[style] {
            width: auto !important;
            max-width: 100% !important;
            white-space: normal !important;
            word-break: break-word !important;
        }

    /* Kod blokları */
    .article-content pre,
    .article-content code {
        font-family: monospace;
        background-color: #f8f9fa;
        padding: 10px;
        margin: 0.5em 0;
        border-radius: 4px;
        display: block;
        overflow-x: auto;
        word-break: break-word;
        white-space: pre-wrap;
    }

    /* Alıntılar */
    .article-content blockquote {
        margin: 1em 0;
        padding: 0.75em 1em;
        background: #f9f9f9;
        border-left: 4px solid #ccc;
        font-style: italic;
    }

    /* Video, iframe, embed gibi medya içerikleri */
    .article-content iframe,
    .article-content embed,
    .article-content video {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 1em 0;
    }

/* Mobil uyum (isteğe bağlı font küçültme) */
@media screen and (max-width: 768px) {
    .article-content {
        font-size: 15px;
        padding: 12px;
    }

        .article-content table {
            font-size: 14px;
        }
}
