/*
 * DOSYA YOLU : /module/moderation/assets/md.css   (YENİ DOSYA)
 * AÇIKLAMA   : Moderasyon stilleri (önek: md-): Bildir penceresi (mobilde alttan sheet) ve yönetici paneli.
 *              head.php her sayfada yükler. Sadece core.css / yt.css değişkenlerine (--st-*) bağlıdır.
 */
.md-muted { font-size: 13px; line-height: 19px; color: var(--st-text-2); }
.md-err { min-height: 0; font-size: 13px; color: var(--st-danger); }
.md-err:empty { display: none; }

/* ---------- Bildir penceresi ---------- */
.md-dialog { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; font-family: var(--st-font, system-ui, sans-serif); }
.md-dialog__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.md-dialog.is-open .md-dialog__bg { opacity: 1; }
.md-dialog__box {
  position: relative; display: flex; flex-direction: column; width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 16px 16px 0 0;
  background: var(--yt-pop, var(--st-surface-2)); color: var(--st-text); box-shadow: var(--st-shadow-lg);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, 0, 0, 1); padding-bottom: var(--st-safe-b, 0px);
}
.md-dialog.is-open .md-dialog__box { transform: none; }
.md-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px 20px; }
.md-dialog h2 { font-size: 18px; font-weight: 600; }
.md-dialog__close { width: 38px; height: 38px; border-radius: 50%; font-size: 26px; line-height: 1; color: inherit; }
.md-dialog__close:hover { background: var(--st-surface-3); }
.md-dialog__body { display: flex; flex-direction: column; gap: 10px; padding: 8px 20px 12px; overflow-y: auto; overscroll-behavior: contain; }
.md-opts { display: flex; flex-direction: column; }
.md-opt { display: flex; align-items: center; gap: 14px; min-height: 46px; cursor: pointer; font-size: 14.5px; }
.md-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.md-opt__dot { flex: none; width: 20px; height: 20px; border: 2px solid var(--st-text-3); border-radius: 50%; display: grid; place-items: center; transition: border-color .15s; }
.md-opt input:checked + .md-opt__dot { border-color: var(--st-accent); }
.md-opt input:checked + .md-opt__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--st-accent); }
.md-opt input:focus-visible + .md-opt__dot { box-shadow: var(--st-ring); }
.md-dialog textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--st-border-strong); background: var(--st-bg); color: var(--st-text); font: 16px/1.4 inherit; resize: vertical; outline: 0; }
.md-dialog textarea:focus { border-color: var(--st-accent); box-shadow: 0 0 0 1px var(--st-accent); }
.md-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 16px 16px; }
.md-btn { height: 36px; padding: 0 18px; border-radius: 18px; font-size: 14px; font-weight: 500; }
.md-btn--ghost:hover { background: var(--st-surface-3); }
.md-btn--primary { color: #fff; background: #065fd4; }
.md-btn:disabled { opacity: .5; pointer-events: none; }
@media (min-width: 640px) {
  .md-dialog { align-items: center; padding: 20px; }
  .md-dialog__box { max-width: 460px; border-radius: 12px; opacity: 0; transform: translateY(14px) scale(.97); transition: transform .25s, opacity .2s; padding-bottom: 0; }
  .md-dialog.is-open .md-dialog__box { opacity: 1; transform: none; }
  .md-dialog textarea { font-size: 14px; }
}

/* ---------- Panel ---------- */
.md-page { width: 100%; max-width: 980px; margin: 0 auto; padding: 16px 12px 36px; }
.md-title { margin-bottom: 12px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.md-tabs { display: flex; gap: 4px; margin: 0 -12px 14px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--st-border); }
.md-tabs::-webkit-scrollbar { display: none; }
.md-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--st-text-2); white-space: nowrap; }
.md-tab:hover, .md-tab.is-active { color: var(--st-text); }
.md-tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--st-text); }
.md-tab__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 500; line-height: 20px; text-align: center; color: #fff; background: #cc0000; }
.md-filter { margin-bottom: 14px; }
@media (min-width: 768px) { .md-page { padding: 24px 24px 48px; } .md-tabs { margin: 0 0 18px; padding: 0; } }

.md-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 16px; text-align: center; color: var(--st-text-2); }
.md-empty strong { font-size: 18px; color: var(--st-text); }
.md-empty2 { padding: 28px 20px; text-align: center; font-size: 14px; color: var(--st-text-3); }
.md-list { display: flex; flex-direction: column; gap: 14px; }
.md-card { padding: 16px; border-radius: 12px; background: var(--st-surface); border: 1px solid var(--st-border); transition: opacity .2s; }
.md-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.md-card__head small { margin-left: auto; font-size: 12.5px; color: var(--st-text-3); }
.md-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--st-surface-3); color: var(--st-text-2); }
.md-tag--video { background: rgba(62, 166, 255, .16); color: var(--st-accent); }
.md-tag--comment { background: rgba(249, 171, 0, .16); color: var(--st-warning); }
.md-tag--off { background: rgba(255, 78, 69, .15); color: var(--st-danger); }
.md-count { font-size: 13px; font-weight: 600; color: var(--st-danger); }
.md-target { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 8px; }
.md-target__t { font-size: 15px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
a.md-target__t:hover { color: var(--st-accent); }
.md-target__o { font-size: 13px; color: var(--st-text-2); }
.md-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.md-reason { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; background: var(--st-surface-2); }
.md-det { margin-top: 10px; font-size: 13.5px; }
.md-det summary { cursor: pointer; color: var(--st-accent); font-weight: 500; }
.md-det__i { padding: 8px 0; border-top: 1px solid var(--st-border); margin-top: 8px; }
.md-det__i p { margin-top: 4px; color: var(--st-text-2); overflow-wrap: anywhere; }
.md-det__i small { color: var(--st-text-3); }
.md-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--st-border); }
.md-res { margin-top: 12px; font-size: 13.5px; color: var(--st-text-2); }
.md-res b { color: var(--st-text); }

.md-box { margin-bottom: 18px; padding: 20px; border-radius: 12px; background: var(--st-surface); border: 1px solid var(--st-border); }
.md-box--flush { padding: 0; overflow: hidden; }
.md-box__t { font-size: 17px; font-weight: 600; }
.md-box__t small { font-size: 13px; font-weight: 400; color: var(--st-text-3); }
.md-box__t--pad { padding: 18px 20px 8px; }
.md-box .md-muted { margin: 4px 0 14px; }
.md-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.md-form .st-btn { align-self: flex-start; }
.md-rows { display: flex; flex-direction: column; }
.md-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--st-border); }
.md-row__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.md-row__t strong { font-size: 14.5px; font-weight: 500; }
.md-row__t small { font-size: 12.5px; color: var(--st-text-2); overflow-wrap: anywhere; }