/* ============================================================
   SOSYAL SAYFALAR (profil, arkadaşlar, mesajlar)
   ============================================================ */
.s-wrap { max-width: 1080px; margin: 0 auto; padding: 26px 22px 60px; }
.s-wrap.wide { max-width: 1240px; }

.nav-badge {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    margin-left: 2px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    line-height: 16px;
}
.p-nav .links a.on { background: rgba(34,197,94,.14); color: var(--p-active-text); }

.nav-me { gap: 9px; }
.nav-me img, .nav-me .ava-dot {
    width: 24px; height: 24px; border-radius: 8px; object-fit: cover;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800; color: #06121f;
}

.ava-img { display: grid; place-items: center; object-fit: cover; font-weight: 800; color: #06121f; border: 1px solid var(--p-hair-2); }

/* ---------- KARTLAR ---------- */
.s-card {
    background: linear-gradient(180deg, var(--p-surface) 0%, var(--p-surface-deep) 100%);
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
}
.s-title { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.s-sub { color: var(--p-muted); font-size: 13px; }

.s-grid-2 { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .s-grid-2 { grid-template-columns: 1fr; } }

/* ---------- PROFİL BAŞLIĞI ---------- */
.prof-head {
    display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(56,189,248,.10));
    border: 1px solid rgba(34,197,94,.22);
    margin-bottom: 20px;
}
.prof-head .big-ava {
    width: 104px; height: 104px; flex: 0 0 104px;
    border-radius: 24px; object-fit: cover;
    display: grid; place-items: center;
    font-size: 42px; font-weight: 800; color: #06121f;
    border: 2px solid var(--p-hair-2);
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.prof-head .meta { min-width: 0; flex: 1; }
.prof-head .meta h1 { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prof-head .meta .un { color: var(--p-muted); font-size: 14px; font-family: Consolas, monospace; }
.prof-head .meta .st { margin-top: 8px; color: var(--p-text-soft); font-size: 13.5px; font-style: italic; }

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 20px;
    font-size: 11.5px; font-weight: 700;
    background: rgba(148,163,184,.12); color: var(--p-text-soft); border: 1px solid rgba(148,163,184,.2);
}
.pill.green { background: rgba(34,197,94,.14); color: var(--p-green-text); border-color: rgba(34,197,94,.32); }
.pill.sky { background: rgba(56,189,248,.14); color: var(--p-sky-text); border-color: rgba(56,189,248,.32); }
.pill.purple { background: rgba(168,85,247,.14); color: var(--p-purple-text-2); border-color: rgba(168,85,247,.32); }
.pill.warn { background: rgba(245,158,11,.14); color: var(--p-warn-text); border-color: rgba(245,158,11,.32); }

.stat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.stat-chip {
    padding: 10px 14px; border-radius: 12px; min-width: 90px;
    background: var(--p-card-2); border: 1px solid rgba(148,163,184,.16);
}
.stat-chip .v { font-size: 19px; font-weight: 800; color: var(--p-accent); }
.stat-chip .l { font-size: 10.5px; color: var(--p-muted-2); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }

/* ---------- FORM ---------- */
.f-group { margin-bottom: 15px; }
.f-group label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--p-muted); margin-bottom: 7px; }
.f-input, .f-select, .f-area {
    width: 100%; padding: 11px 13px;
    background: var(--p-input); color: var(--p-text);
    border: 1px solid rgba(148,163,184,.28); border-radius: 11px;
    font-family: inherit; font-size: 13.5px;
}
.f-area { min-height: 90px; resize: vertical; }
.f-input:focus, .f-select:focus, .f-area:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.15); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.f-hint { font-size: 11.5px; color: var(--p-muted-2); margin-top: 6px; }
@media (max-width: 640px) { .f-row, .f-row-3 { grid-template-columns: 1fr; } }

.s-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
    font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; text-decoration: none;
    transition: .18s; white-space: nowrap;
}
.s-btn.primary { background: linear-gradient(180deg,#22c55e,#16a34a); color: #04140a; }
.s-btn.primary:hover { filter: brightness(1.08); }
.s-btn.ghost { background: rgba(148,163,184,.1); color: var(--p-text-soft); border-color: rgba(148,163,184,.24); }
.s-btn.ghost:hover { color: var(--p-text-strong); }
.s-btn.sky { background: rgba(56,189,248,.14); color: var(--p-sky-text); border-color: rgba(56,189,248,.4); }
.s-btn.danger { background: rgba(239,68,68,.14); color: var(--p-red-text); border-color: rgba(239,68,68,.4); }
.s-btn.sm { padding: 8px 13px; font-size: 12.5px; border-radius: 9px; }
.s-btn.block { width: 100%; }
.s-btn:disabled { opacity: .5; cursor: not-allowed; }

.alert { padding: 12px 14px; border-radius: 11px; font-size: 13px; margin-bottom: 16px; }
.alert.ok { background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.4); color: var(--p-green-text); }
.alert.err { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.4); color: var(--p-red-text); }
.alert.info { background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.35); color: var(--p-sky-text); }

/* ---------- BİLGİ SATIRLARI ---------- */
.kv-list { display: grid; gap: 10px; }
.kv-list .row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding-bottom: 9px; border-bottom: 1px solid rgba(148,163,184,.08); }
.kv-list .row:last-child { border-bottom: none; }
.kv-list .k { color: var(--p-muted-2); font-weight: 700; }
.kv-list .v { color: var(--p-text-2); text-align: right; word-break: break-word; }

.social-list { display: flex; flex-wrap: wrap; gap: 9px; }
.social-list a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 13px; border-radius: 10px;
    background: rgba(148,163,184,.09); border: 1px solid rgba(148,163,184,.2);
    color: var(--p-text-soft); text-decoration: none; font-size: 12.5px; font-weight: 600;
}
.social-list a:hover { background: rgba(56,189,248,.14); border-color: rgba(56,189,248,.35); color: var(--p-sky-text); }
.social-list span.static { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; background: rgba(148,163,184,.07); border: 1px dashed rgba(148,163,184,.2); color: var(--p-muted); font-size: 12.5px; }

/* ---------- KULLANICI KARTLARI ---------- */
.u-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.u-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; border-radius: 14px;
    background: linear-gradient(180deg,var(--p-surface),var(--p-surface-deep));
    border: 1px solid rgba(148,163,184,.14);
    text-decoration: none; color: inherit;
    transition: .18s;
}
.u-card:hover { border-color: rgba(34,197,94,.35); transform: translateY(-2px); }
.u-card .uc-txt { min-width: 0; flex: 1; }
.u-card .uc-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-card .uc-sub { font-size: 11.5px; color: var(--p-muted-2); }
.u-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- MESAJLAR ---------- */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .msg-layout { grid-template-columns: 1fr; } }
.thread { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.thread:hover { background: rgba(148,163,184,.07); }
.thread.active { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); }
.thread .t-txt { min-width: 0; flex: 1; }
.thread .t-name { font-weight: 700; font-size: 13.5px; }
.thread .t-last { font-size: 11.5px; color: var(--p-muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .t-badge { background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 10px; }

.chat-box { display: flex; flex-direction: column; height: 560px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(148,163,184,.12); margin-bottom: 12px; }
.chat-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: linear-gradient(180deg,#22c55e,#16a34a); color: #04140a; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--p-surface-2); color: var(--p-text-2); border: 1px solid rgba(148,163,184,.16); border-bottom-left-radius: 5px; }
.bubble .t { display: block; font-size: 10px; opacity: .7; margin-top: 4px; }
.chat-form { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(148,163,184,.12); }
.chat-form input { flex: 1; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--p-muted-2); }
.empty-state .big { font-size: 40px; margin-bottom: 10px; opacity: .7; }

/* ---------- SEKME (tab) ---------- */
.s-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.s-tab {
    padding: 9px 15px; border-radius: 10px; text-decoration: none;
    background: rgba(148,163,184,.08); border: 1px solid rgba(148,163,184,.18);
    color: var(--p-text-soft); font-size: 13px; font-weight: 700;
}
.s-tab:hover { color: var(--p-text-strong); }
.s-tab.on { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.4); color: var(--p-active-text); }
.s-tab .n { background: #ef4444; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; margin-left: 5px; }

/* ============================================================
   SOHBET — AVATARLI BALONCUKLAR + MESAJ AKSİYONLARI
   ============================================================ */
.chat-head .ch-name { font-weight: 800; font-size: 15px; color: var(--p-text-strong); }
.chat-head .ch-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.chat-note {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 12px; margin-bottom: 10px; border-radius: 12px;
    background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35);
    color: var(--p-warn-text); font-size: 12.5px;
}
.chat-form.locked {
    padding-top: 12px; border-top: 1px solid var(--p-hair);
    color: var(--p-muted-2); font-size: 13px; text-align: center;
}

.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg.them { flex-direction: row; }
.msg.me   { flex-direction: row-reverse; }
.m-ava { flex: 0 0 34px; }
.m-ava-img {
    width: 34px; height: 34px; border-radius: 11px; object-fit: cover;
    display: grid; place-items: center; font-size: 13px; font-weight: 800;
    color: #06121f; border: 1px solid var(--p-hair-2);
}
.m-main { max-width: 74%; min-width: 0; }
.msg.me .m-main { text-align: right; }
.m-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.msg.me .m-head { justify-content: flex-end; }
.m-name { font-weight: 800; font-size: 12.5px; color: var(--p-text-soft); text-decoration: none; }
.m-name:hover { color: var(--p-active-text); text-decoration: underline; }
.m-meta { font-size: 10.5px; color: var(--p-muted-2); white-space: nowrap; }
.m-text {
    display: inline-block; text-align: left; padding: 10px 14px; border-radius: 14px;
    font-size: 13.5px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap;
}
.msg.them .m-text { background: var(--p-surface-2); color: var(--p-text-2); border: 1px solid var(--p-border); border-bottom-left-radius: 5px; }
.msg.me   .m-text { background: linear-gradient(180deg,#22c55e,#16a34a); color: #04140a; border-bottom-right-radius: 5px; }
.m-text.deleted { font-style: italic; opacity: .75; background: transparent !important; border: 1px dashed var(--p-hair-2) !important; color: var(--p-muted) !important; }
.m-text.muted   { font-style: italic; opacity: .8; background: transparent !important; border: 1px dashed var(--p-hair-2) !important; color: var(--p-muted) !important; }
.m-acts { display: flex; gap: 4px; margin-top: 4px; opacity: .35; transition: opacity .15s; }
.msg.me .m-acts { justify-content: flex-end; }
.msg:hover .m-acts { opacity: 1; }
.m-act {
    border: 1px solid var(--p-border); background: rgba(4,8,16,.4); color: var(--p-text-soft);
    width: 26px; height: 24px; border-radius: 8px; cursor: pointer; font-size: 12px; line-height: 1;
    display: inline-grid; place-items: center; padding: 0;
}
.m-act:hover { border-color: var(--p-accent); color: var(--p-active-text); }
.m-edit { display: flex; flex-direction: column; gap: 6px; }
.m-edit textarea { width: 100%; min-width: 260px; resize: vertical; }
.m-edit-acts { display: flex; gap: 6px; }
@media (hover: none) { .m-acts { opacity: 1; } }

/* ---------- ŞİKAYET MODALI ---------- */
.mc-overlay {
    position: fixed; inset: 0; z-index: 400; display: none;
    align-items: center; justify-content: center; padding: 18px;
    background: var(--p-overlay); backdrop-filter: blur(4px);
}
.mc-overlay.show { display: flex; }
.mc-modal {
    width: 100%; max-width: 520px; border-radius: 18px; overflow: hidden;
    background: linear-gradient(180deg, var(--p-menu-1), var(--p-menu-2));
    border: 1px solid var(--p-hair-2); box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.mc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--p-hair); }
.mc-head h3 { font-size: 15px; font-weight: 800; }
.mc-x { background: transparent; border: 0; color: var(--p-muted); font-size: 16px; cursor: pointer; }
.mc-x:hover { color: var(--p-red-text); }
.mc-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.mc-quote {
    padding: 10px 12px; border-radius: 10px; font-size: 12.5px; max-height: 110px; overflow: auto;
    background: var(--p-card-2); border-left: 3px solid var(--p-warn-text); color: var(--p-text-soft);
    white-space: pre-wrap; word-break: break-word;
}
.mc-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--p-muted); }
.mc-reasons { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-reason {
    padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 12.5px; font-weight: 700;
    background: rgba(148,163,184,.08); border: 1px solid var(--p-border); color: var(--p-text-soft);
}
.mc-reason:hover { border-color: var(--p-accent); }
.mc-reason.on { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.45); color: var(--p-red-text); }
.mc-hint { font-size: 11.5px; color: var(--p-muted-2); }
.mc-foot { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--p-hair); }

/* ---------- TOAST ---------- */
.chat-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
    padding: 11px 18px; border-radius: 12px; font-size: 13px; font-weight: 700;
    background: #16a34a; color: #04140a; opacity: 0; transition: .22s; z-index: 500;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.chat-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ENGELLİ SOHBET İŞARETİ ---------- */
.thread .t-block { font-size: 11px; margin-left: 4px; opacity: .85; }

/* ============================================================
   🔐 GOOGLE İLE GİRİŞ / KAYIT (auth/login.php · auth/register.php)
   ============================================================ */
.g-sep {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; opacity: .7;
}
.g-sep::before, .g-sep::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .22; }

.g-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 11px 16px; border-radius: 12px;
    border: 1px solid rgba(148,163,184,.35);
    background: rgba(148,163,184,.10);
    color: inherit; text-decoration: none; cursor: pointer;
    font-size: 13.5px; font-weight: 700; transition: .18s;
}
.g-btn:hover  { background: rgba(148,163,184,.20); border-color: rgba(148,163,184,.55); }
.g-btn:active { transform: translateY(1px); }

.g-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
    background: #fff; color: #4285F4;
    font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 800;
    box-shadow: 0 1px 3px rgba(0,0,0,.28);
}

/* ---------- 🔒 reCAPTCHA (kayıt · giriş) ---------- */
.g-captcha {
    display: flex; justify-content: center; align-items: center;
    margin: 14px 0 6px; min-height: 78px;
}
.g-captcha .g-recaptcha { transform-origin: center center; }
@media (max-width: 420px) {
    .g-captcha .g-recaptcha { transform: scale(.92); }
}




/* ============================================================
   🔎 CANLI UYGUNLUK KONTROLÜ (kayıt ekranı · register-check.js)
   👤 kullanıcı adı + 📧 e-posta alanları
   ============================================================ */
.f-input.is-ok   { border-color: rgba(34, 197, 94, .65) !important; }
.f-input.is-bad  { border-color: rgba(239, 68, 68, .65) !important; }
.f-input.is-busy { border-color: rgba(148, 163, 184, .55) !important; }

.field-state {
    margin-top: 6px;
    min-height: 15px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    transition: color .15s ease;
}
.field-state.is-checking  { color: #94a3b8; }
.field-state.is-available { color: #4ade80; }
.field-state.is-taken,
.field-state.is-invalid   { color: #fca5a5; }


