/* ══════════════════════════════════════════════════════════
   SANAT PAZARI GÖRÜNÜM İYİLEŞTİRMESİ + ŞABLON MODERATÖRÜ
   2026-07-22 — oyunun "saha karargâhı" diline sadık: çentikli
   köşe yok ama aynı --accent/--fac renkleri, Chakra Petch
   başlıklar, mono sayılar.
   ══════════════════════════════════════════════════════════ */

/* ── Eser kartı: derinlik + hover ── */
.am-card-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(var(--surf2-rgb),.96), rgba(var(--surf-rgb),.99));
  border: 1px solid var(--bdr2);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.am-card-item:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 14px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(var(--accent-rgb),.14);
}

/* Görsel: piksel sanatı BULANIKLAŞMASIN */
.am-card-item .am-img-wrap img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: transform .25s ease;
}
.am-card-item:hover .am-img-wrap img { transform: scale(1.04); }
.am-card-item .am-img-wrap {
  position: relative;
  background:
    repeating-conic-gradient(rgba(255,255,255,.045) 0% 25%, transparent 0% 50%) 50%/16px 16px;
}

/* ── Öne çıkarılmış eser ── */
.am-card-item.pinned {
  border-color: rgba(245,166,35,.55);
  box-shadow: 0 0 0 1px rgba(245,166,35,.18), 0 10px 26px rgba(0,0,0,.4);
}
.am-pin-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(20,14,4,.9);
  border: 1px solid rgba(245,166,35,.6);
  color: #f5a623;
  border-radius: 999px; padding: 3px 9px;
  font-size: .6rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ── Mod/şikâyet butonları (kart üstünde, hover'da belirir) ── */
.am-mod-row {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; gap: 4px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.am-card-item:hover .am-mod-row,
.am-mod-row:focus-within { opacity: 1; transform: none; }
@media (hover: none) { .am-mod-row { opacity: 1; transform: none; } }

.am-mod-btn {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(10,10,20,.82);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.75);
  font-size: .72rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s, color .15s, border-color .15s;
}
.am-mod-btn:hover { background: rgba(var(--accent-rgb),.28); color: #fff; border-color: rgba(var(--accent-rgb),.6); }
.am-mod-btn.on { background: rgba(245,166,35,.25); border-color: rgba(245,166,35,.65); color: #f5a623; }
.am-mod-btn.danger:hover { background: rgba(240,74,74,.3); border-color: rgba(240,74,74,.7); color: #ff8f8f; }

/* ── Fiyat / başlık okunurluğu ── */
.am-price { font-family: var(--font-mono, monospace); font-weight: 800; }
.am-author { font-size: .68rem; color: var(--muted); }

/* ══ Şikâyet penceresi ══ */
#artreport-modal, #tplmod-modal {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(0,0,0,.75);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  animation: amFade .16s ease both;
}
@keyframes amFade { from { opacity: 0 } to { opacity: 1 } }

.ar-card, .tm-card {
  width: min(420px, 94vw);
  background: linear-gradient(160deg, rgba(var(--surf2-rgb),.99), rgba(var(--surf-rgb),1));
  border: 1px solid var(--bdr2); border-radius: 16px;
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .65rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.65);
  max-height: 86vh;
}
.ar-title, .tm-title {
  font-family: var(--font-display, sans-serif);
  font-weight: 800; font-size: .95rem; color: var(--fg);
}
.ar-sub { font-size: .74rem; color: var(--muted); }
#ar-reason {
  background: rgba(var(--surf-rgb),.9); border: 1px solid var(--bdr2);
  border-radius: 10px; padding: .6rem .7rem; color: var(--fg);
  font-size: .82rem; resize: vertical; font-family: inherit;
}
#ar-reason:focus { border-color: var(--accent); outline: none; }
.ar-btns, .tm-add { display: flex; gap: .5rem; }
.ar-btns { justify-content: flex-end; }
.ar-btns button, .tm-add button, .tm-del {
  border-radius: 9px; padding: .45rem .9rem; font-size: .78rem;
  font-weight: 700; cursor: pointer; border: 1px solid var(--bdr2);
  background: rgba(var(--surf-rgb),.9); color: var(--fg);
}
.ar-send { background: var(--accent) !important; color: #06121f !important; border-color: transparent !important; }
.ar-btns button:hover, .tm-add button:hover, .tm-del:hover { filter: brightness(1.14); }
.ar-hint, .tm-hint { font-size: .64rem; color: var(--muted); }

/* ══ Moderatör listesi ══ */
.tm-head { display: flex; align-items: center; justify-content: space-between; }
.tm-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.tm-x:hover { color: var(--fg); }
.tm-add input {
  flex: 1; min-width: 0;
  background: rgba(var(--surf-rgb),.9); border: 1px solid var(--bdr2);
  border-radius: 9px; padding: .45rem .6rem; color: var(--fg); font-size: .76rem;
}
.tm-add input:focus { border-color: var(--accent); outline: none; }
#tm-uid { font-family: var(--font-mono, monospace); font-size: .7rem; }
.tm-list { display: flex; flex-direction: column; gap: .4rem; overflow-y: auto; }
.tm-row {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(var(--surf-rgb),.7); border: 1px solid var(--bdr2);
  border-radius: 10px; padding: .5rem .7rem;
}
.tm-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-row-main b { font-size: .8rem; }
.tm-uid { font-family: var(--font-mono, monospace); font-size: .62rem; color: var(--muted); }
.tm-note { font-size: .68rem; color: var(--muted); }
.tm-del { border-color: rgba(240,74,74,.4) !important; color: #f04a4a !important; }
.tm-empty { color: var(--muted); font-size: .76rem; text-align: center; padding: .8rem; }

/* Moderatör rozeti (gövdede sınıf varsa pazarda göster) */
body.is-tplmod .am-card-item:hover { border-color: rgba(245,166,35,.45); }

/* ══ YETKİLİ ROZETLERİ (owner / admin / şablon modu) ══ */
.pf-staff-name { display: inline-flex; align-items: center; gap: 5px; }
.pf-staff {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: .52rem; font-weight: 900; letter-spacing: .08em;
  line-height: 1; padding: 2px 5px; border-radius: 4px;
  vertical-align: middle; flex-shrink: 0;
  border: 1px solid transparent;
}
.pf-staff-owner {
  background: linear-gradient(135deg, #f5a623, #ff7a3d);
  color: #1a1004; border-color: rgba(255,200,120,.5);
  box-shadow: 0 0 8px rgba(245,166,35,.35);
}
.pf-staff-admin {
  background: rgba(240,74,74,.18); color: #ff8f8f;
  border-color: rgba(240,74,74,.55);
}
.pf-staff-tplmod {
  background: rgba(79,140,255,.18); color: #8fb6ff;
  border-color: rgba(79,140,255,.55);
}

/* ══ VIP ÇAKIŞMASI — OWNER > VIP ══════════════════════════════
   vip.js, VIP adlara `color: transparent !important` +
   `-webkit-text-fill-color: transparent` uyguluyor (altın gradyan
   metne kırpılıyor). Rozet o adın İÇİNDE bir <span> olduğu için bu
   şeffaflığı MİRAS ALIYOR ve "OWNER" yazısı görünmez oluyordu.
   Aşağıdaki kurallar rozeti VIP stilinden tamamen yalıtır.

   Ayrıca yetki VIP'ten ÜSTÜNDÜR: yetkili birinin adında VIP parıltısı
   uygulanmaz (ikisi de altın olduğu için okunmuyordu) ve ikinci bir
   altın VIP rozeti çıkmaz — kimliği yetki rozeti taşır. */

.pf-staff {
  -webkit-text-fill-color: currentColor !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  animation: none !important;
  filter: none !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}
.pf-staff-owner  { color: #1a1004 !important; -webkit-text-fill-color: #1a1004 !important; }
.pf-staff-admin  { color: #ff8f8f !important; -webkit-text-fill-color: #ff8f8f !important; }
.pf-staff-tplmod { color: #8fb6ff !important; -webkit-text-fill-color: #8fb6ff !important; }

/* Yetkili adında VIP parıltısı YOK — ad düz ve okunur kalır */
.pf-vip-name.pf-staff-name {
  background: none !important;
  background-image: none !important;
  color: var(--fg) !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
  filter: none !important;
}
/* Owner adı yine de ayrıcalıklı görünsün: sıcak altın, ama DÜZ renk */
.pf-staff-name:has(.pf-staff-owner) { color: #ffcf6b !important; -webkit-text-fill-color: #ffcf6b !important; }

/* Yetkili birinde ikinci (altın) VIP rozeti gösterme — çift rozet olmasın */
.pf-staff-name .pf-vip-badge,
.pf-staff-name + .pf-vip-badge { display: none !important; }
