/* kartify-comments.css — Paket 282
   comments/list.tpl icindeki KOSULSUZ ve STATIK gomulu stil blogu
   (kaynak satir 47-385, 9333 karakter) buraya alindi.
   Tek bir kural silinmedi veya degistirilmedi.
   Bagalanti, kaldirilan blogun TAM yerinde duruyor. */

    /* Sayfa genişliği: diğer sayfalarla aynı ölçüler. */
    @media (min-width: 1200px) and (max-width: 1920px) {
        .breadcrumb-section .custom-container,
        .ofm-cmt-page .custom-container { padding-inline: 10px !important; }
    }

    @media (min-width: 992px) and (max-width: 1199.98px) {
        .breadcrumb-section .custom-container,
        .ofm-cmt-page .custom-container { padding-inline: 5px !important; }
    }

    @media (max-width: 991.98px) {
        .breadcrumb-section .custom-container,
        .ofm-cmt-page .custom-container { padding-inline: 2px !important; }
    }

    /* Kartify başlığı <h2> için ölçülmüş; burada SEO gereği <h1>
       kullanıyoruz, aynı ölçüleri h1'e de veriyoruz. */
    .breadcrumb-section .breadcrumb-contain h1 {
        margin-bottom: 0;
        font-size: calc(18px + 6 * (100vw - 320px) / 1600);
        font-weight: 500;
    }

    /* Global yorum sayfasinin zemini acik gridir. Kartify people-box da gri
       oldugu icin kartlar dogrudan bu zeminde kayboluyordu. Listeyi beyaz bir
       ana yuzeye alarak urun detay sekmesindeki beyaz panel + gri kart
       kontrastini aynen kuruyoruz. */
    .ofm-cmt-surface {
        padding: clamp(18px, 1.55vw, 30px);
        background: #fff;
        border: 1px solid #eceef3;
        border-radius: 8px;
        box-shadow: 0 5px 18px rgba(32, 36, 44, .035);
    }

    @media (max-width: 480px) {
        .breadcrumb-section .breadcrumb-contain h1 {
            margin-bottom: 8px;
            text-align: center;
        }
    }

    /* --- Filtre hapları: ürün sayfasındakiyle aynı dil --- */
    .ofm-cmt-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 0 0 22px;
    }

    .ofm-cmt-filter {
        padding: 8px 20px;
        background: #fff;
        border: 1px solid #e5e7ed;
        border-radius: 100px;
        color: #5e6278;
        font-size: 13.5px;
        font-weight: 500;
        text-decoration: none;
        transition: all .2s ease;
    }

    /* Turuncu ELLE yazıldı: var(--primary-color) demo-2 altında sarı. */
    .ofm-cmt-filter:hover {
        border-color: #ff9900;
        color: #ff9900;
        text-decoration: none;
    }

    .ofm-cmt-filter.aktif {
        background: #ff9900;
        border-color: #ff9900;
        color: #fff;
    }

    /* --- Pazaryeri bilgi notu (ürün sayfasındakinin aynısı) --- */
    .ofm-cmt-note {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
        margin-bottom: 18px;
        background: #f2f3f8;
        border-left: 3px solid #ff9900;
        border-radius: 5px;
        color: #5e6278;
        font-size: 13px;
        line-height: 1.6;
    }

    /* İkonun satır kutusu yazınınkiyle aynı: 13 x 1.6 = 16 x 1.3 = 20.8px
       (Paket 220'de hesaplanmıştı). */
    .ofm-cmt-note i {
        flex-shrink: 0;
        color: #ff9900;
        font-size: 16px;
        line-height: 1.3;
    }

    .ofm-cmt-note b { color: #20242c; font-weight: 600; }

    /* --- Yorum kartı: Kartify .people-box (style.css 4492-4646) ---
       Ölçüler Kartify'nin kendi calc() formülleriyle, Paket 222'deki
       ürün sayfası kartlarıyla birebir aynı. */
    .ofm-cmt-card {
        display: block;
        margin-bottom: calc(14px + 10 * (100vw - 320px) / 1600);
    }

    .ofm-cmt-box {
        display: flex;
        width: 100%;
        padding: calc(15px + 11 * (100vw - 320px) / 1600);
        background: #f2f3f8;
        border: 1px solid #eaecf2;
        border-radius: 6px;
    }

    /* Kartify'de profil fotoğrafı; yorum kaydında kullanıcı görseli
       olmadığı için adın baş harfi. Ölçü aynı. */
    .ofm-cmt-avatar {
        display: flex;
        flex: 0 0 calc(62px + 8 * (100vw - 320px) / 1600);
        width: calc(62px + 8 * (100vw - 320px) / 1600);
        height: calc(62px + 8 * (100vw - 320px) / 1600);
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: #fff;
        border: 1px solid #e5e7ed;
        border-radius: 4px;
        color: #ff9900;
        font-size: calc(22px + 4 * (100vw - 320px) / 1600);
        font-weight: 600;
        line-height: 1;
        text-transform: uppercase;
        -webkit-user-select: none;
        user-select: none;
    }

    .ofm-cmt-body {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 15px;
    }

    .ofm-cmt-name {
        display: block;
        width: 100%;
        padding-right: 92px;
        color: rgba(32, 35, 38, .9);
        font-size: calc(16px + 2 * (100vw - 320px) / 1600);
        font-weight: 600;
        line-height: 1.3;
    }

    /* Pazaryeri rozeti ve fotoğraf simgesi adla aynı satırda ama küçük. */
    .ofm-cmt-name .offer-info-mp {
        color: #5e6278;
        font-size: 12.5px;
        font-weight: 500;
        white-space: nowrap;
    }

    .ofm-cmt-cam {
        width: 13px;
        height: 11px;
        margin-left: 6px;
        vertical-align: baseline;
    }

    .ofm-cmt-stars { margin-top: -1px; line-height: 1; }
    .ofm-cmt-stars .comment-star { font-size: 14px; }

    /* Kartify: .date-time — sağ üstte mutlak konumda. */
    .ofm-cmt-date {
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
        color: #5e6278;
        font-size: 13px;
        line-height: 1.3;
    }

    /* --- Ürün bağlantısı --- */
    .ofm-cmt-product {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        margin-top: 10px;
        padding: 6px 14px 6px 6px;
        background: #fff;
        border: 1px solid #e5e7ed;
        border-radius: 7px;
        color: #20242c;
        font-size: 13.5px;
        font-weight: 500;
        line-height: 1.4;
        text-decoration: none;
        transition: border-color .2s ease, color .2s ease;
    }

    .ofm-cmt-product:hover {
        border-color: #ff9900;
        color: #ff9900;
        text-decoration: none;
    }

    .ofm-cmt-thumb {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        object-fit: contain;
        background: #fff;
        border-radius: 5px;
    }

    .ofm-cmt-text {
        margin-top: 10px;
        width: 97%;
        color: rgba(32, 35, 38, .8);
        font-size: calc(14px + 1 * (100vw - 320px) / 1600);
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .ofm-cmt-text p { margin: 0; }

    @media (max-width: 575.98px) {
        .ofm-cmt-surface {
            padding: 14px 12px;
            border-radius: 6px;
        }

        .ofm-cmt-text { width: 100%; line-height: 1.5; }
    }

    /* Kartify 480px altında kutuyu blok yapıyor, tarih akışa dönüyor. */
    @media (max-width: 480px) {
        .ofm-cmt-box { display: block; }

        .ofm-cmt-body {
            width: 100%;
            padding: 0;
            margin-top: calc(12px + 4 * (100vw - 320px) / 161);
        }

        .ofm-cmt-name { padding-right: 0; }

        .ofm-cmt-date {
            position: relative;
            inset: unset;
            margin-top: 7px;
        }
    }

    /* --- Boş liste --- */
    .ofm-cmt-empty {
        padding: 40px 20px;
        background: #f2f3f8;
        border-radius: 8px;
        color: #5e6278;
        font-size: 14.5px;
        text-align: center;
    }

    /* --- Makale alanı --- */
    .ofm-cmt-article {
        margin-top: 30px;
        color: #5e6278;
        font-size: 14.5px;
        line-height: 1.75;
    }

    .ofm-cmt-article img { max-width: 100%; height: auto; border-radius: 6px; }
    .ofm-cmt-article a { color: #ff9900; text-decoration: underline; }

    /* --- Sayfalama: Kartify .custom-pagination ölçüleri
       (style.css 5661-5725). $page_links "page-item/page-link"
       sınıflarını basmadığı için li/a üzerinden giydirildi.
       li'ye width:auto ŞART: Kartify'nin genel li{display:inline-block}
       kuralı burada da devrede (Paket 221 dersi). --- */
    .ofm-cmt-pager {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .ofm-cmt-pager .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: calc(6px + 7 * (100vw - 320px) / 1600);
        float: none;
        padding: 30px 0 10px;
        margin: 0;
        list-style: none;
    }

    .ofm-cmt-pager .pagination li {
        display: block;
        width: auto;
    }

    .ofm-cmt-pager .pagination li a {
        display: flex;
        width: calc(34px + 6 * (100vw - 320px) / 1600);
        height: calc(34px + 6 * (100vw - 320px) / 1600);
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid #e5e7ed;
        border-radius: calc(3px + 2 * (100vw - 320px) / 1600);
        color: #5e6278;
        font-size: calc(14px + 2 * (100vw - 320px) / 1600);
        line-height: 1;
        text-decoration: none;
        transition: all .2s ease;
    }

    .ofm-cmt-pager .pagination li a:hover {
        border-color: #ff9900;
        color: #ff9900;
        text-decoration: none;
    }

    .ofm-cmt-pager .pagination li.active a {
        background: #ff9900;
        border-color: #ff9900;
        color: #fff;
    }

