/* ==========================================================
   bilgibilimi — Yorum bölümü ek stilleri
   yazi.css'ten SONRA yüklenir.
   ========================================================== */

/* ---------- Başlık sayacı ---------- */
.yorum-sayac {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    margin-left: 8px;
    border-radius: 20px;
    background: var(--mavi-cok-acik);
    color: var(--mavi-koyu);
    font-size: .82rem;
    font-weight: 700;
    vertical-align: middle;
}

/* ---------- Sonuç bildirimi ---------- */
.yorum-bildirim {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    animation: yorumBildirimAcil .3s ease both;
}
@keyframes yorumBildirimAcil {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}
.yb-ikon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}
.yb-govde { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.yb-baslik { font-size: .95rem; font-weight: 700; }
.yb-metin  { font-size: .89rem; line-height: 1.5; }

/* Başarılı */
.yorum-bildirim-ok {
    background: #eefaf2;
    border-color: #bfe6cf;
}
.yorum-bildirim-ok .yb-ikon  { background: linear-gradient(135deg, #22b573, #159c5b); }
.yorum-bildirim-ok .yb-baslik { color: #14764a; }
.yorum-bildirim-ok .yb-metin  { color: #256b4b; }

/* Hata */
.yorum-bildirim-hata {
    background: #fdf0f0;
    border-color: #f2c9c9;
}
.yorum-bildirim-hata .yb-ikon  { background: linear-gradient(135deg, #ef5b6b, #d13a4c); }
.yorum-bildirim-hata .yb-baslik { color: #a52b3b; }
.yorum-bildirim-hata .yb-metin  { color: #8d3b45; }

/* ---------- Hatalı formda ince vurgu ---------- */
.yorum-formu-hatali {
    box-shadow: 0 0 0 2px rgba(239, 91, 107, .18);
}

/* ---------- Bal küpü (görünmez alan) ---------- */
.yorum-tuzak {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ---------- CAPTCHA alanı ---------- */
.captcha-alani { position: relative; }
.captcha-satir {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.captcha-resim {
    flex: 0 0 auto;
    display: block;
    width: 150px;
    height: 50px;
    border: 1px solid var(--kenar);
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
    user-select: none;
}
.captcha-yenile {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--kenar);
    background: #fff;
    color: var(--murekkep-3);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: color .15s, border-color .15s, background .15s;
}
.captcha-yenile:hover {
    color: var(--mavi);
    border-color: var(--mavi);
    background: var(--mavi-cok-acik);
}
.captcha-yenile:active i { transform: rotate(180deg); transition: transform .3s; }

.captcha-satir input[type="text"] {
    flex: 1 1 140px;
    min-width: 130px;
    padding: 12px 14px;
    border: 1px solid var(--kenar);
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .18em;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.captcha-satir input[type="text"]:focus {
    border-color: var(--mavi);
    box-shadow: 0 0 0 3px rgba(64, 129, 237, .15);
}

.captcha-bilgi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: .78rem;
    color: var(--murekkep-3);
}

/* Captcha hatalıysa kırmızı vurgu */
.captcha-hatali .captcha-resim,
.captcha-hatali .captcha-satir input[type="text"] {
    border-color: #ef5b6b;
}
.captcha-hatali .captcha-satir input[type="text"] {
    box-shadow: 0 0 0 3px rgba(239, 91, 107, .14);
}
.captcha-hatali .captcha-bilgi { color: #b23b4a; }

/* ---------- Yorum kartı avatarı ---------- */
.yorum-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mavi), var(--mavi-koyu));
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}
.yorum-yazar { display: inline-flex; align-items: center; }

/* ---------- Gönder butonu ---------- */
.yorum-gonder-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Mobil ---------- */
@media (max-width: 520px) {
    .captcha-satir input[type="text"] { flex-basis: 100%; }
    .yorum-bildirim { padding: 14px; gap: 11px; }
    .yb-ikon { width: 34px; height: 34px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    .yorum-bildirim { animation: none; }
}