/* =============================================================
   HOLY SCANS — YORUM SİSTEMİ   (Mobil-First Redesign)
   ============================================================= */

/* ── Kapsayıcı ── */
.holy-comments-container {
    background: linear-gradient(160deg, #161616 0%, #111 100%);
    border: 1px solid #232323;
    border-top: 3px solid #d32f2f;
    border-radius: 12px;
    padding: 28px;
    margin-top: 36px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Başlık ── */
.holy-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 16px;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}
.holy-comments-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.holy-comments-title span { color: #d32f2f; }
.holy-comments-sort .sort-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-left: 18px;
    transition: color 0.2s;
    position: relative;
}
.holy-comments-sort .sort-btn:hover  { color: #bbb; }
.holy-comments-sort .sort-btn.active { color: #fff; }
.holy-comments-sort .sort-btn.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0; right: 0;
    height: 2px;
    background: #d32f2f;
    box-shadow: 0 -1px 6px rgba(211,47,47,0.5);
}

/* ── Yorum Yazma Formu ── */
.holy-comment-form-area {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.holy-form-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.holy-user-name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
}
.holy-form-guest-info input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #fff;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.holy-form-guest-info input:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}
#holy-comment-text {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.55;
    resize: vertical;
    min-height: 88px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
#holy-comment-text:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}
#holy-comment-text::placeholder { color: #555; }

/* Gönder butonu */
.holy-btn-submit {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    color: #fff;
    border: none;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(211,47,47,0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.holy-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(211,47,47,0.5);
}
.holy-btn-submit:active { transform: translateY(1px); }
.holy-btn-submit:disabled {
    background: #3a3a3a;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    color: #888;
}

/* ── Yorum Kartı ── */
.holy-comment-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    animation: hc-fade-in 0.3s ease forwards;
}
@keyframes hc-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.holy-c-avatar-box { flex-shrink: 0; }

/* Yanıt girintisi */
.holy-is-reply { margin-left: 40px; }

.holy-c-content-box {
    flex: 1;
    min-width: 0;
    background: linear-gradient(150deg, #1e1e1e 0%, #191919 100%);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #272727;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.holy-c-content-box:hover {
    border-color: #383838;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.45);
}

/* Sabitlenmiş yorum */
.holy-comment-item.is-pinned > .holy-c-content-box {
    border-color: rgba(241,196,15,0.5) !important;
    background: linear-gradient(150deg, #1f1d10 0%, #191700 100%) !important;
    box-shadow: 0 0 20px rgba(241,196,15,0.12) !important;
}

/* Header (isim + seviye + tarih) */
.holy-c-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.holy-c-author {
    font-weight: 700;
    color: #e8e8e8;
    font-size: 15px;
    line-height: 1.2;
}
.holy-c-date {
    color: #555;
    font-size: 12px;
    margin-left: auto;
    white-space: nowrap;
}

/* Yorum metni */
.holy-c-text {
    color: #c5c5c5;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.holy-edit-textarea {
    width: 100%;
    background: #141414;
    color: #e0e0e0;
    border: 1px solid #d32f2f;
    padding: 10px 12px;
    border-radius: 7px;
    min-height: 80px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}
.holy-edit-textarea:focus { box-shadow: 0 0 0 3px rgba(211,47,47,0.15); }

/* Eylem Satırı */
.holy-c-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

/* Oylama */
.holy-c-voting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.35);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 5px 12px;
    flex-shrink: 0;
}
.holy-vote-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}
.holy-vote-btn:hover         { background: rgba(255,255,255,0.07); }
.holy-vote-score {
    font-weight: 700;
    font-size: 14px;
    color: #ccc;
    min-width: 24px;
    text-align: center;
    user-select: none;
}
.holy-upvote:hover,   .holy-upvote.active-vote   { color: #2ecc71; }
.holy-downvote:hover, .holy-downvote.active-vote  { color: #e74c3c; }

/* Sağ butonlar (yanıtla, düzenle, sabitle) */
.holy-c-actions > div:last-child {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.holy-c-reply,
.holy-c-edit,
.holy-c-pin {
    background: transparent !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 5px 8px !important;
    margin: 0 !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: color 0.2s, background 0.2s !important;
    min-height: 32px;
    white-space: nowrap;
}
.holy-c-reply   { color: #7b8ec8 !important; }
.holy-c-edit    { color: #888 !important; }
.holy-c-pin     { color: #888 !important; }
.holy-c-reply:hover  { color: #d32f2f !important; background: rgba(211,47,47,0.08) !important; }
.holy-c-edit:hover   { color: #fff !important;    background: rgba(255,255,255,0.06) !important; }
.holy-c-pin:hover    { color: #f1c40f !important; background: rgba(241,196,15,0.08) !important; }

/* Yanıt Formu (inline) */
.holy-reply-form-wrapper {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
}
.holy-reply-form-wrapper textarea {
    flex: 1;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 72px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.holy-reply-form-wrapper textarea:focus { border-color: #d32f2f; }

/* Boş durum */
#holy-comments-list > p {
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 30px 20px;
    border: 1px dashed #2a2a2a;
    border-radius: 8px;
    margin: 0;
}

/* Yükleniyor */
#holy-comments-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    padding: 30px;
}

/* =============================================================
   TABLET  (≤ 900px)
   ============================================================= */
@media (max-width: 900px) {
    .holy-comments-container { padding: 22px 18px; }
    .holy-comment-item { gap: 12px; }
    .holy-is-reply { margin-left: 30px; }
    .holy-c-content-box { padding: 14px; }
    .holy-c-text { font-size: 14px; }
    .holy-c-author { font-size: 14px; }
}

/* =============================================================
   MOBİL BÜYÜK  (≤ 600px)
   ============================================================= */
@media (max-width: 600px) {
    .holy-comments-container {
        padding: 16px 14px;
        margin-top: 24px;
        border-radius: 8px;
    }

    .holy-comments-title { font-size: 17px; }

    /* Form */
    .holy-comment-form-area { padding: 14px; gap: 12px; }
    #holy-comment-text {
        font-size: 14px;
        padding: 12px 13px;
        min-height: 80px;
    }
    .holy-form-actions-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .holy-btn-submit {
        width: 100%;
        padding: 12px;
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }

    /* Yorum kartı */
    .holy-comment-item { gap: 10px; }
    .holy-is-reply { margin-left: 20px; }
    .holy-c-content-box {
        padding: 12px 11px;
        border-radius: 8px;
    }
    .holy-c-content-box:hover { transform: none; }

    .holy-c-header { gap: 6px; margin-bottom: 8px; }
    .holy-c-author { font-size: 13px; }
    .holy-c-date   { font-size: 11px; }
    .holy-c-text   { font-size: 14px; margin-bottom: 10px; }

    /* Eylemler: oylama solda, butonlar altta */
    .holy-c-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .holy-c-actions > div:last-child { margin-left: 0; gap: 10px; }

    /* Oylama grubu */
    .holy-c-voting { padding: 4px 10px; gap: 6px; }
    .holy-vote-btn { font-size: 13px; padding: 4px 5px; min-width: 30px; min-height: 30px; }
    .holy-vote-score { font-size: 13px; }

    /* Action butonlar */
    .holy-c-reply,
    .holy-c-edit,
    .holy-c-pin { font-size: 12px !important; padding: 5px 7px !important; min-height: 32px; }

    /* Yanıt formu */
    .holy-reply-form-wrapper { flex-direction: column; gap: 10px; padding: 12px; }
    .holy-reply-form-wrapper textarea { min-height: 66px; font-size: 14px; }

    /* Chat avatar küçük */
    .holy-comment-item .chat-avatar {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
    }
}

/* =============================================================
   MOBİL KÜÇÜK  (≤ 380px)
   ============================================================= */
@media (max-width: 380px) {
    .holy-comments-container { padding: 12px 10px; }
    .holy-comment-form-area  { padding: 12px 10px; }
    .holy-is-reply { margin-left: 12px; }
    .holy-c-content-box { padding: 10px; }
    .holy-comments-title { font-size: 15px; }
    .holy-c-header { flex-wrap: wrap; }
    .holy-c-date   { margin-left: 0; width: 100%; }

    /* Derin reply'larda indent çok azalır */
    .holy-comment-item[style*="margin-left"] {
        margin-left: 12px !important;
    }
}

/* Sabitlenmiş buton rengi */
.holy-c-pin.pinned { color: #f1c40f !important; }
