/**
 * File: user-shop.css
 * Description: Kullanıcı Mağazası (docs/design-system.md §7.48). Liste kalıbı
 *              (usr-*) + medya kartı (mc-*) üstüne: durum etiketi, gönderen,
 *              inceleme penceresi (banner + oyun içi görseller | bilgiler).
 *              Hover'da büyüme yok; döngü yalnız "Yayınlanıyor" noktasında.
 */

.ush-hint { flex: 1; min-width: 240px; margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--wf-text-3); }
.ush-grid { padding: 16px; }
.ush-skel { aspect-ratio: 16 / 13; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015) 70%); }
.ush-empty { grid-column: 1 / -1; }

/* Durum: kartın sol üstünde, kendi tonunda */
.ush-state {
  --t: 251, 191, 36;
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 8px;
  border-radius: 7px;
  background: rgba(12, 8, 10, 0.82);
  box-shadow: inset 0 0 0 1px rgba(var(--t), 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgb(var(--t));
  pointer-events: none;
}
.ush-state i { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--t)); }
.ush-state.is-busy { --t: 139, 156, 255; }
.ush-state.is-busy i { animation: ush-pulse 1.2s ease-in-out infinite; }
.ush-state.is-warn { --t: 251, 146, 60; }
.ush-state.is-ok { --t: 52, 211, 153; }
.ush-state.is-bad { --t: 251, 113, 133; }
@keyframes ush-pulse { 50% { opacity: 0.35; } }
.ush-card.is-bad .mc-shot img { opacity: 0.5; filter: grayscale(0.6); }

.ush-meta { gap: 4px 12px; }
.ush-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; overflow: hidden; color: var(--wf-text-3); white-space: nowrap; text-overflow: ellipsis; }
.ush-ava {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wf-text-2);
}
.ush-ava img { width: 100%; height: 100%; object-fit: cover; }
.ush-ava.sm { width: 18px; height: 18px; font-size: 0.56rem; }
.ush-n { display: inline-flex; align-items: center; gap: 4px; }
.ush-n svg { width: 12px; height: 12px; }

/* ── İnceleme penceresi: görseller | bilgiler ── */
.ush-rv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ush-rv-banner {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c, #8b9cff) 8%, rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #8b9cff;
}
/* Görsel bütün görünür: kutunun şekline uymayan resim bulanık kopyasının üstünde */
.ush-rv-banner,
.ush-rv-shot { position: relative; }
/* Güncelleme: kartta etiket, incelemede "mağazadaki kalıyor" notu */
.ush-upd {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(10, 7, 15, 0.86);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  color: #7dd3fc;
}
.ush-upd svg { width: 12px; height: 12px; }
.ush-rv-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(10, 7, 15, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--wf-text-2);
}
.ush-rv-shot.is-live::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(56, 189, 248, 0.5);
  pointer-events: none;
}
.ush-rv-banner img,
.ush-rv-shot img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.ush-rv-banner img.ush-fill,
.ush-rv-shot img.ush-fill { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(18px) brightness(0.45) saturate(1.2); }
.ush-rv-banner > svg,
.ush-rv-shot > svg { width: 28px; height: 28px; opacity: 0.5; }
.ush-rv-sec { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 0.78rem; font-weight: 700; color: var(--wf-text-2); }
.ush-rv-sec em { font-style: normal; font-weight: 600; color: var(--wf-text-4); }
.ush-rv-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ush-rv-shot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #8b9cff;
  cursor: zoom-in;
  transition: box-shadow var(--wf-dur-hover) ease;
}
.ush-rv-muted { margin: 12px 0 0; font-size: 0.8rem; color: var(--wf-text-4); }
.ush-rv-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ush-rv-side .dlg-field + .dlg-field { margin-top: 0; }
.ush-rv-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ush-rv-who > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ush-rv-who b { overflow: hidden; font-size: 0.92rem; color: var(--wf-text-1); white-space: nowrap; text-overflow: ellipsis; }
.ush-rv-who i { overflow: hidden; font-style: normal; font-size: 0.76rem; color: var(--wf-text-3); white-space: nowrap; text-overflow: ellipsis; }
.ush-rv-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.ush-rv-file > svg { width: 18px; height: 18px; flex-shrink: 0; color: #8b9cff; }
.ush-rv-file > span { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.ush-rv-file b { overflow: hidden; font-size: 0.84rem; color: var(--wf-text-1); white-space: nowrap; text-overflow: ellipsis; }
.ush-rv-file i { font-style: normal; font-size: 0.74rem; color: var(--wf-text-3); font-variant-numeric: tabular-nums; }

/* Oyun içi görseli büyüt: pencerenin içinde, dokununca kapanır */
.dlg:has(.ush-rv) { position: relative; }
.ush-lightbox {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 0;
  border-radius: inherit;
  background: rgba(8, 5, 8, 0.92);
  cursor: zoom-out;
  animation: ush-fade 160ms ease-out both;
}
.ush-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
@keyframes ush-fade { from { opacity: 0; } }

.ush-reasons { flex-wrap: wrap; }

@media (hover: hover) and (pointer: fine) {
  .ush-rv-shot:hover { box-shadow: inset 0 0 0 1px rgba(139, 156, 255, 0.55); }
}
@media (max-width: 860px) {
  .ush-rv { grid-template-columns: minmax(0, 1fr); }
  .ush-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ush-state.is-busy i,
  .ush-lightbox { animation: none; }
}
