/**
 * "Tum Yorumlar" modali — themes/haber61_v2/actions/comments.blade.php
 *
 * Yapisal stiller (konum, orti, panel, ortalama, kaydirma) Tailwind JIT'e
 * bagli olmasin diye kendi scope'lu CSS'inde tanimli; boylece build
 * durumundan bagimsiz her ortamda dogru gorunur.
 *
 * Eskiden sablonun icinde <style> blogu olarak duruyordu.
 * Degisiklik yaparsan sablondaki ?v= numarasini artir.
 */

.cmodal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.cmodal.is-open {
    display: flex;
}

.cmodal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.cmodal__panel {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 768px;
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cmodal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.cmodal__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #1a1a2e;
    margin: 0;
}

.cmodal__title .bar {
    width: 6px;
    height: 24px;
    background: #e30613;
    border-radius: 9999px;
    display: inline-block;
}

.cmodal__title .count {
    font-size: 16px;
    font-weight: 400;
    color: #9ca3af;
}

.cmodal__close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.cmodal__close:hover {
    background: #e5e7eb;
    color: #1a1a2e;
}

.cmodal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px;
}

.cmodal__body > * + * {
    margin-top: 20px;
}

@media (min-width: 640px) {
    .cmodal {
        align-items: center;
        padding: 24px;
    }

    .cmodal__panel {
        max-height: 85vh;
        border-radius: 28px;
    }

    .cmodal__head {
        padding: 24px 32px;
    }

    .cmodal__title {
        font-size: 24px;
    }

    .cmodal__body {
        padding: 24px 32px;
    }
}
