/* =====================================================================
   Destek: talep listesi, yeni talep ve yazisma
   ===================================================================== */

.support-page { max-width: 1100px; }
.sup-head { margin-bottom: 22px; }
.sup-flash { max-width: 640px; }

/* --- Giris yapmamis ziyaretci ------------------------------------------ */
.sup-guest { max-width: 560px; margin: 0 auto; display: grid; justify-items: center; gap: 10px; padding: 30px 26px; text-align: center; }
.sup-mascot { width: 110px; height: 110px; }
.sup-guest h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.sup-guest p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.sup-guest .btn-row { justify-content: center; margin-top: 8px; }
.sup-quick a { color: var(--text); font-weight: 800; }

/* --- Uye: iki sutun ---------------------------------------------------- */
.sup-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.sup-list { position: sticky; top: 104px; display: flex; flex-direction: column; max-height: calc(100vh - 128px); padding: 18px; }
.sup-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sup-list-head h2 { margin: 0; font-size: 22px; }
.sup-tickets { display: grid; align-content: start; gap: 8px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.sup-none { margin: 6px 2px; }
.sup-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    font: inherit;
    color: var(--text);
    background: var(--field);
    border: 2px solid var(--ink-3);
    border-radius: var(--r);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}
.sup-item:hover { border-color: var(--ink); }
.sup-item.active { border-color: var(--ink); background: var(--berry-lt); box-shadow: 0 3px 0 var(--ink); }
.sup-item.unread .sup-item-subject { font-weight: 800; }
.sup-item-top { display: flex; align-items: center; gap: 8px; }
.sup-status { font-size: 11px; }
.sup-new { font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--berry); }
.sup-item-subject { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.sup-item-meta { font-size: 12px; color: var(--ink-2); }

.sup-main { min-height: 420px; padding: 22px; }
.sup-empty { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 360px; text-align: center; color: var(--ink-2); }
.sup-empty p { margin: 0; }
.sup-back { display: none; margin-bottom: 12px; }

/* Yeni talep */
.sup-form h2 { margin: 0 0 14px; font-size: 24px; }
.sup-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sup-order-text { margin-top: 8px; }
.sup-form textarea { min-height: 150px; resize: vertical; }

/* Yazisma */
.sup-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px dashed var(--cream-3); }
.sup-view-head h2 { margin: 0; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.sup-v-meta { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.sup-thread { display: grid; align-content: start; gap: 12px; max-height: 56vh; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 10px; }
.msg { display: flex; align-items: flex-end; gap: 10px; }
.msg.mine { justify-content: flex-end; }
.msg-avatar { flex: none; width: 36px; height: 36px; }
.msg-bubble { max-width: min(560px, 85%); padding: 10px 14px; background: var(--field); border: 2px solid var(--ink); border-radius: 18px; }
.msg.mine .msg-bubble { background: var(--berry-lt); border-bottom-right-radius: 6px; }
.msg.staff .msg-bubble { background: var(--blue-lt); border-bottom-left-radius: 6px; }
.msg-who { margin-bottom: 4px; font-family: var(--display); font-weight: 700; font-size: 14px; }
.msg-who span { margin-left: 6px; font-family: inherit; font-weight: 600; font-size: 12px; color: var(--ink-2); }
.msg-text { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.sup-closed-note { margin: 10px 0 0; }
.sup-reply { display: grid; gap: 8px; margin-top: 14px; }
.sup-reply textarea { resize: vertical; }
.sup-reply-actions { display: flex; justify-content: space-between; gap: 10px; }

/* Telefon: ya liste ya da acik talep */
@media (max-width: 860px) {
    .sup-layout { grid-template-columns: minmax(0, 1fr); }
    .sup-list { position: static; max-height: none; }
    .sup-layout.reading .sup-list { display: none; }
    .sup-layout:not(.reading) .sup-main { display: none; }
    .sup-back { display: inline-flex; }
    .sup-form-grid { grid-template-columns: 1fr; }
    .sup-main { min-height: 0; padding: 18px; }
    .sup-thread { max-height: none; }
    .msg-bubble { max-width: 92%; }
}
