/* HARGE — destek modülü ek stilleri (yalnızca tasarım sistemi değişkenleriyle; koyu + açık tema). */

/* ziyaretçi yerleşiminde (onay bekleyen üye, misafir takip, iletişim) sayfa boşlukları */
.tk-public { padding-top: 36px; padding-bottom: 64px; }
.tk-public-narrow { max-width: 880px; }

/* ---------- talep özeti (başlık altı bilgi satırı) ---------- */
.tk-meta { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.875rem; margin-top: 8px; }
.tk-meta .tk-meta-item { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- yazışma ---------- */
.tk-thread { display: grid; gap: 16px; }
.tk-msg {
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
    padding: 16px 20px; scroll-margin-top: 90px; min-width: 0;
}
.tk-msg:target { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tk-msg.is-staff {
    border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
    background: var(--surface);
}
.tk-msg.is-internal {
    border: 1px dashed color-mix(in srgb, var(--warn) 65%, transparent);
    background: var(--warn-soft);
}
.tk-msg-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tk-msg-head .tk-name { font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere; }
.tk-msg-head .tk-sub { font-size: 0.8125rem; color: var(--muted); }
.tk-msg-head .tk-when { font-size: 0.8125rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.tk-msg-body { overflow-wrap: anywhere; color: var(--text); }
.tk-support-mark {
    width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
    background: var(--surface-2); color: var(--text-2);
}
.tk-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tk-file {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px;
    border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2);
    color: var(--text-2); font-size: 0.8125rem;
}
.tk-file:hover { border-color: var(--primary); color: var(--text); text-decoration: none; }
.tk-file .tk-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.tk-file .tk-file-size { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }

/* ---------- yanıt formu ---------- */
.tk-reply { margin-top: 24px; scroll-margin-top: 90px; }
.tk-reply .textarea { min-height: 130px; }
.tk-counter { font-size: 0.75rem; color: var(--muted); }
.file-drop.tk-drop { padding: 20px 16px; }
/* "İç not" işaretliyken form görsel olarak ayrışır (JS gerektirmez; :has desteklemeyen tarayıcıda yalnızca süs eksilir) */
.tk-internal-hint { display: none; }
.tk-reply:has(.tk-internal-toggle:checked) .card { border-color: color-mix(in srgb, var(--warn) 60%, transparent); border-style: dashed; }
.tk-reply:has(.tk-internal-toggle:checked) .tk-internal-hint { display: flex; }

/* ---------- öncelik işareti ---------- */
.tk-prio { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); opacity: 0.55; }
.tk-prio-high { background: var(--danger); opacity: 1; box-shadow: 0 0 0 3px var(--danger-soft); }
.tk-prio-normal { background: var(--info); opacity: 0.9; }
.tk-prio-low { background: var(--muted); opacity: 0.5; }
.tk-prio-cell { width: 1%; padding-right: 0 !important; }
.tk-subject { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
a.tk-subject:hover { color: var(--primary); text-decoration: none; }
.tk-row-meta { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }

/* ---------- takip bağlantısı kutusu ---------- */
.tk-success-mark { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--success-soft); color: var(--success); }
.tk-link-box { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.tk-link-box .input { flex: 1 1 260px; min-width: 0; font-family: var(--font-mono); font-size: 0.8125rem; }

/* ---------- iletişim sayfası ---------- */
.tk-contact-hero { max-width: 720px; margin-bottom: 28px; }
.tk-contact-hero h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 12px; }
.tk-contact-hero p { color: var(--text-2); font-size: 1rem; margin: 0; }
.tk-contact-list { display: grid; gap: 12px; }
.tk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* bilgi listesi: metin alt satıra geçtiğinde simge küçülmesin */
.tk-checklist .ok, .tk-checklist .fail { flex: none; display: inline-flex; margin-top: 4px; }

/* Sayfa başlığı: .grow (flex: 1 1 0) sıfır tabanla satır kırılmasını engeller; gerçek bir taban
   verilince dar ekranda "Talebi Kapat" / "Yeniden Aç" düğmeleri alt satıra iner, konu sıkışmaz.
   (Bu dosya yalnızca destek/iletişim sayfalarında yüklenir.) */
.page-header > .grow { flex: 1 1 260px; }

/* yan sütundaki küçük yönetim formları */
.tk-side-form + .tk-side-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.tk-side-form label { margin-bottom: 8px; }
.tk-inline { display: flex; gap: 8px; align-items: center; }
.tk-inline .select { min-width: 0; }

@media (max-width: 640px) {
    .tk-public { padding-top: 24px; padding-bottom: 44px; }
    .tk-msg { padding: 12px 16px; }
    .tk-msg-head .tk-when { margin-left: 0; width: 100%; }
    .tk-file .tk-file-name { max-width: 150px; }
}
