/* ARWY Admin — modüle özel stiller (eski style.css'ten taşındı, 1 Kas 2026).
   Renkler base.css değişkenlerinden. Yeni ortak bileşen buraya DEĞİL base.css'e. */

/* Kullanıcı detayı: sohbetler */
.chat-admin-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.chat-admin-list, .chat-admin-pane { min-height: 540px; margin-bottom: 0; }
#adminChatList { display: flex; flex-direction: column; gap: 6px; max-height: 490px; overflow-y: auto; padding-right: 2px; }
.admin-chat-row {
  display: flex; gap: 10px; align-items: center; padding: 9px 10px;
  border-radius: 10px; background: var(--raised); border: 1px solid transparent;
  cursor: pointer;
}
.admin-chat-row:hover, .admin-chat-row.active { border-color: var(--orange); background: var(--accent-soft); }
.admin-chat-row-body { flex: 1; min-width: 0; }
.admin-chat-row-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.admin-chat-row-head b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-chat-row-sub { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 2px; }
.admin-chat-row-sub span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread {
  flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px;
  background: var(--orange); color: #fff; font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.admin-chat-messages {
  height: 470px; overflow-y: auto; padding: 12px 4px 2px;
  display: flex; flex-direction: column; gap: 8px;
}
.admin-load-older { align-self: center; margin-bottom: 4px; }
.admin-msg-wrap { display: flex; justify-content: flex-start; }
.admin-msg-wrap.mine { justify-content: flex-end; }
.admin-msg-bubble {
  max-width: 78%; border-radius: 16px 16px 16px 4px; padding: 9px 11px;
  background: var(--raised); border: 1px solid var(--border);
}
.admin-msg-wrap.mine .admin-msg-bubble {
  background: var(--orange); border-color: var(--orange); border-radius: 16px 16px 4px 16px;
}
.admin-msg-text { font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.admin-msg-reply {
  border-left: 2px solid rgba(255,255,255,.55); padding-left: 7px; margin-bottom: 6px;
  color: rgba(255,255,255,.82); font-size: 12px; max-height: 38px; overflow: hidden;
}
.admin-msg-meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  margin-top: 4px; font-size: 10px; color: var(--muted);
}
.admin-msg-wrap.mine .admin-msg-meta { color: rgba(255,255,255,.72); }
.admin-msg-ticks.read { color: #53BDEB; font-weight: 900; }
.admin-msg-image-btn {
  position: relative; display: block; border: 0; padding: 0; background: transparent;
  cursor: pointer; border-radius: 12px; overflow: hidden; margin-bottom: 5px;
}
.admin-msg-image {
  display: block; width: 220px; max-width: 100%; height: 260px; object-fit: cover;
  background: var(--raised);
}
.admin-once-badge {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border-radius: 50%; border: 1.5px solid #fff; background: rgba(0,0,0,.55);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px;
}
.admin-image-modal {
  display: flex; align-items: center; justify-content: center; max-height: 72vh;
  background: #000; border-radius: 10px; overflow: hidden;
}
.admin-image-modal img { max-width: 100%; max-height: 72vh; object-fit: contain; }

/* Sohbet medya galerisi (Instagram grid) — sohbet kutusunun ALTINDA */
.admin-media { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.admin-media-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.admin-media-head b { font-size: 13px; }
.admin-media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 3px; max-height: 320px; overflow-y: auto;
}
.admin-media-cell { position: relative; aspect-ratio: 1 / 1; background: var(--raised); border-radius: 4px; overflow: hidden; }
.admin-media-cell img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.admin-media-cell .admin-once-badge { width: 20px; height: 20px; font-size: 10px; top: 5px; left: 5px; right: auto; }
.admin-media-menu-btn {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s;
}
.admin-media-cell:hover .admin-media-menu-btn, .admin-media-menu-btn:focus { opacity: 1; }
.admin-msg-hit .admin-msg-bubble { outline: 2px solid var(--orange); outline-offset: 2px; }
.admin-media-warn {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: 8px; font-size: 12px;
  background: var(--accent-soft); border: 1px solid var(--orange); color: var(--text);
}




/* Yorum moderasyonu */
.comment-list { display: flex; flex-direction: column; gap: 8px; }
.comment-row { background: var(--raised); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-quote { border-left: 2px solid var(--orange); padding-left: 8px; margin: 6px 0; color: var(--muted); font-style: italic; font-size: 12.5px; }
.comment-text { margin-top: 4px; font-size: 13.5px; line-height: 1.5; }
.tr-row { display: flex; align-items: center; gap: 10px; }

/* Kütüphaneler */
.lib-row { background: var(--raised); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.lib-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lib-pop { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mini-input { width: 70px !important; padding: 5px 8px !important; }

/* ── Şikayet kuyruğu ── */
.report-list { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; }
.report-row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.report-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.report-body { display: flex; flex-direction: column; gap: 4px; }
.report-line { font-size: 13px; }
.rlink { color: var(--orange); cursor: pointer; }
.rlink:hover { text-decoration: underline; }
.report-note { border-left: 2px solid var(--border); padding-left: 10px; margin: 6px 0; color: var(--text); font-size: 13px; font-style: italic; }
.report-target { margin: 8px 0; }
.report-target-text { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); border-radius: 8px; padding: 10px 12px; margin-top: 4px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; color: var(--text); }

/* Play Store yorumları */
.rev-stars { color: var(--orange); font-size: 14px; letter-spacing: 1px; }
.rev-reply { margin-top: 8px; padding: 8px 12px; background: rgba(34,197,94,.08); border-left: 2px solid var(--green); border-radius: 6px; font-size: 13px; line-height: 1.5; }

/* Sohbet bağlamı modal (mesaj şikayeti) */
.conv-list { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.conv-msg { background: var(--raised); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.conv-msg.flagged { border-color: var(--red); background: rgba(239,68,68,.1); }
.conv-meta { margin-bottom: 3px; }
.conv-text { font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ── Push composer ── */
.push-wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.push-preview { background: var(--raised); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.push-hist { display: flex; flex-direction: column; gap: 2px; }

/* ── Botlar sekmesi ── */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 6px; }
.bot-card { display: flex; gap: 10px; align-items: center; background: var(--raised); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.bot-pp { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--surface); }
.bot-pp.ph { background: var(--surface); }
.bot-meta { min-width: 0; flex: 1; }
.bot-name { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.bot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.bot-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

/* ── Bot detay paneli (kukla yönetimi) ── */
.bot-pp.sm { width: 38px; height: 38px; }
.bot-detail { width: 100%; max-height: 80vh; display: flex; flex-direction: column; }
.bd-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.bsub-bar { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 10px; }
.bsub { background: none; border: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; }
.bsub.active { background: var(--raised); color: var(--text); }
.bsub-n { background: var(--border); border-radius: 10px; padding: 0 6px; font-size: 10px; }
.bsub-body { max-height: 52vh; overflow-y: auto; }
.bd-row { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.bd-text { font-size: 13px; word-break: break-word; }
.bd-compose { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.bd-input { flex: 1; background: var(--raised); border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 8px 10px; font-size: 13px; resize: vertical; font-family: inherit; }
.bd-chatview { max-height: 44vh; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.bd-msg { display: flex; }
.bd-msg.mine { justify-content: flex-end; }
.bd-bubble { max-width: 78%; background: var(--raised); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.bd-msg.mine .bd-bubble { background: var(--orange); color: #fff; border-color: transparent; }

/* ── Fotoğraf yedekleri galerisi (kullanıcı detay > Galeri) ── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.photo-cell { position: relative; background: var(--raised); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.photo-cell img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--border); }
.photo-meta { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; gap: 4px; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-del:hover { background: var(--red); }

/* ── Gönderi ekleri (görsel · ses · şarkı) ─────────────────────────────────
   Panelde moderasyon kararı verilirken içeriğin tamamı görünmeli. Liste
   kartında görsel KÜÇÜK kalır (satır yüksekliği patlamasın), detayda büyür. */
.post-img-wrap { display:block; margin:8px 0; }
.post-img { max-width:180px; max-height:140px; border-radius:8px; object-fit:cover; display:block; }
.post-img.full { max-width:100%; max-height:420px; object-fit:contain; }
.post-voice { display:flex; align-items:center; gap:8px; margin:8px 0; }
.post-voice audio { height:32px; max-width:260px; }
.post-music { display:flex; align-items:center; gap:8px; margin:8px 0; font-size:13px; }
.post-music-art { width:34px; height:34px; border-radius:6px; object-fit:cover; }

/* ── Sohbet oyunları (Foto/Ses Düellosu) moderasyon görünümü ── */
.admin-duel-card {
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-duel-answer { padding-left: 6px; border-left: 2px solid var(--border, #2a2a2a); }
.admin-duel-img {
  max-width: 160px;
  max-height: 160px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin-top: 4px;
  object-fit: cover;
}
.admin-duel-text { font-size: 13px; line-height: 1.4; margin-top: 2px; white-space: pre-wrap; }

/* Aktivite zaman çizelgesinde kitap/kişi bağlantısı */
.tl-link { color: var(--orange, #ff6600); font-weight: 600; text-decoration: none; }
.tl-link:hover { text-decoration: underline; }

/* Sohbet: sesli mesaj / video / çıkartma (17 Eki 2026) */
.admin-msg-voice { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.admin-msg-voice audio { width: 240px; max-width: 100%; height: 36px; }
.admin-msg-video { display: block; width: 240px; max-width: 100%; max-height: 320px; background: #000; border-radius: 8px; margin: 4px 0; }
.admin-msg-sticker { font-size: 56px; line-height: 1.1; margin: 2px 0; }

/* Sohbet albümü (17 Eki 2026) */
.admin-msg-album { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; max-width: 260px; }
.admin-msg-album .admin-msg-image { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ── Odalar: DM düzeninde oda sohbeti (24 Eki 2026) ── */
.admin-group-msg { gap: 8px; align-items: flex-end; }
.admin-group-msg.grouped { margin-top: -4px; }
.admin-group-av-space { width: 28px; flex-shrink: 0; }
.admin-group-sender { font-size: 12px; font-weight: 700; color: var(--orange); margin-bottom: 2px; cursor: pointer; }
.admin-group-sender .badge { font-size: 10px; padding: 0 5px; margin-left: 4px; }
.admin-group-msg.hidden-msg .admin-msg-bubble { opacity: .55; outline: 1px dashed var(--red); }
.admin-chat-day { align-self: center; font-size: 11px; color: var(--muted); background: var(--card, #fff); border: 1px solid var(--border); border-radius: 10px; padding: 2px 10px; margin: 6px auto; }
.admin-chat-system { align-self: center; text-align: center; font-size: 12px; color: var(--yellow); background: rgba(255,170,0,.12); border-radius: 10px; padding: 4px 10px; margin: 4px auto; max-width: 80%; }
.admin-msg-reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.admin-msg-reacts span { font-size: 12px; background: var(--sunken); border-radius: 10px; padding: 0 6px; }
.admin-msg-actions { display: none; gap: 6px; margin-top: 4px; }
.admin-group-msg:hover .admin-msg-actions { display: flex; }
.admin-msg-actions .admin-msg-actions .danger { color: var(--red); }
.admin-group-pinned { font-size: 12px; background: var(--accent-soft); border-radius: 8px; padding: 6px 10px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#grpList { max-height: 640px; overflow-y: auto; }
.admin-group-msg .admin-msg-reply { border-left-color: var(--orange); color: var(--muted); }
.admin-chat-day { background: var(--raised); }

/* ── Gizli hesap turu: gönderi kitlesi + 18+ (25 Eki 2026) ── */
.post-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.post-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.post-imgs .post-img-wrap { margin: 0; }
video.post-img { background: #000; }
/* Listede 18+ medya bulanık; üstüne gelince açılır (detayda her zaman net). */
.adult-blur { filter: blur(14px); transition: filter .15s ease; }
.adult-blur:hover { filter: none; }

/* ── Destek masası (support.js) ── */
.sp-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.sp-list { position: sticky; top: 0; max-height: calc(100vh - 150px); display: flex; flex-direction: column; margin-bottom: 0; }
.sp-list-head { padding: 12px; border-bottom: 1px solid var(--border); }
.sp-items { overflow-y: auto; flex: 1; }
.sp-item { display: flex; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.sp-item:hover { background: var(--raised); }
.sp-item.active { background: var(--accent-soft); }
.sp-item-body { flex: 1; min-width: 0; }
.sp-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-snip { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.sp-thread { display: flex; flex-direction: column; min-height: 520px; max-height: calc(100vh - 150px); margin-bottom: 0; }
.sp-thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.sp-flag { margin: 10px 14px 0; }
.sp-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sp-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px; border-top: 1px solid var(--border); }
.sp-compose textarea { min-height: 44px; }
.sp-hint { padding: 0 14px 10px; }
.sp-diag .card { margin-bottom: 12px; }
.sp-checks { display: flex; flex-direction: column; gap: 6px; }
.sp-check { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; background: var(--raised); }
.sp-check.bad { background: var(--red-soft); }
.sp-check.warn { background: var(--yellow-soft); }
.sp-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--green); }
.sp-check.bad .sp-dot { background: var(--red); }
.sp-check.warn .sp-dot { background: var(--yellow); }
.sp-check-l { font-size: 13px; font-weight: 600; }
.sp-log { white-space: pre-wrap; word-break: break-word; margin-top: 4px; color: var(--muted); }
@media (max-width: 1250px) { .sp-shell { grid-template-columns: 300px minmax(0, 1fr); } .sp-diag { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; } }
@media (max-width: 900px) { .sp-shell { grid-template-columns: 1fr; } .sp-list { position: static; max-height: 360px; } .sp-thread { max-height: none; } }
