/* ===== status row: one game per horizontal line ===== */

/* container: keep 1 card per row */
.status-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }

/* row card layout: STATUS | THUMB | INFO | ACTIONS */
.status-card {
  display: grid;
  grid-template-columns: auto 84px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;

  background: linear-gradient(180deg, rgba(12,10,22,0.92), rgba(8,6,14,0.92));
  border: 1px solid rgba(139,92,246,0.06);
  box-shadow: 0 10px 36px rgba(0,0,0,0.6);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.status-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.72);
  border-color: rgba(139,92,246,0.12);
}

/* STATUS indicator on left */
.status-indicator { display:flex; align-items:center; justify-content:center; min-width:54px; }
.status-indicator .indicator {
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  letter-spacing:0.2px;
  color:#fff;
  white-space:nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* indicator colors */
.indicator.undetect { background: linear-gradient(90deg, #ff6fb1, #c77dff); color:#fff; }
.indicator.in { background: rgba(34,197,94,0.12); color:#84ffa8; }
.indicator.low { background: rgba(249,115,22,0.10); color:#ffb085; }
.indicator.out { background: rgba(255,255,255,0.04); color:#f0f0f5; }
.indicator.unlimited { background: transparent; color: rgba(200,200,220,0.75); }

/* THUMB (image) */
.status-thumb { width:84px; height:56px; border-radius:8px; overflow:hidden; background: rgba(255,255,255,0.02); flex:0 0 84px; display:flex; align-items:center; justify-content:center; }
.status-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* CENTER: info (name + badges) */
.status-info { display:flex; flex-direction:column; gap:6px; min-width:0; }
.status-main { display:flex; flex-direction:column; gap:4px; }
.status-name { font-size:16px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.status-sub { font-size:13px; color: rgba(230,220,255,0.72); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* badges row (small) */
.status-badges { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.status-badges .badge { font-size:12px; padding:6px 8px; border-radius:8px; color:#fff; opacity:0.95; }

/* RIGHT: price + actions */
.status-actions-wrap { display:flex; align-items:center; gap:12px; justify-self:end; min-width: 160px; }
.status-price-compact { font-weight:700; color: rgba(230,220,255,0.95); text-align:right; min-width:80px; }

/* action buttons */
.status-actions { display:flex; gap:8px; align-items:center; }
.btn.small { padding:8px 12px; border-radius:10px; font-weight:700; border:0; cursor:pointer; font-size:13px; }
.btn-view { background: transparent; color: rgba(220,210,240,0.9); border: 1px solid rgba(255,255,255,0.04); }
.btn-buy { background: linear-gradient(135deg,#8b5cf6,#ec4899); color:#fff; text-decoration:none; display:inline-flex; align-items:center; }

/* disabled */
.btn-disabled { opacity:.55; cursor:not-allowed; }

/* MOBILE: keep one card per row but stack internal columns */
@media (max-width: 720px) {
  .status-card { grid-template-columns: auto 72px 1fr auto; gap:12px; padding:10px; }
  .status-thumb { width:72px; height:48px; flex:0 0 72px; }
}
@media (max-width: 520px) {
  .status-card { grid-template-columns: 1fr; gap:8px; align-items:start; }
  .status-indicator { order: 1; }
  .status-thumb { order: 0; width:100%; height:140px; }
  .status-info { order: 2; }
  .status-actions-wrap { order: 3; justify-self:stretch; display:flex; justify-content:space-between; }
  .status-price-compact { text-align:left; min-width: auto; }
}

/* ===== Controls (search / filters / sort) styled pro ===== */
.status-header { display:flex; flex-direction:column; gap:12px; margin-bottom:14px; }
.status-title h1 { margin:0; font-size:28px; color:#fff; }
.status-controls { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

/* search */
.search-wrap { display:flex; align-items:center; background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.04); padding:6px 10px; border-radius:10px; }
.search-wrap input[type="search"] {
  background: transparent; border: none; outline: none; color:#fff; font-size:14px; width:220px;
}
.search-icon { margin-right:8px; opacity:0.9; }

/* filter pills */
.filters { display:flex; gap:8px; }
.filter-btn {
  padding:8px 12px; border-radius:999px; background:transparent; border:1px solid rgba(255,255,255,0.04); color:#ddd; font-weight:700; cursor:pointer;
  transition: all .12s ease;
}
.filter-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.45); }
.filter-btn.active {
  background: linear-gradient(90deg,#8b5cf6,#ec4899); color:#fff; border-color:transparent; box-shadow: 0 8px 28px rgba(139,92,246,0.14);
}

/* sort select */
#statusSort { padding:8px 10px; border-radius:8px; background: rgba(255,255,255,0.02); color:#fff; border:1px solid rgba(255,255,255,0.04); }

/* tiny helpers */
.sr-only { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }


.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
}

/* generic label used when product.status_text (keeps inline color) */
.status-indicator .label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: inherit;                   /* respect le color inline fourni */
  background: var(--label-bg);      /* subtle violet/pink wash */
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);

  /* subtle depth + tint using the label color if present */
  box-shadow:
    0 6px 18px rgba(0,0,0,0.45),
    0 0 18px rgba(139,92,246,0.04);

  /* ensure contrast (outline) — uses currentColor fallback when inline color exists */
  outline: 1px solid rgba(255,255,255,0.012);
  white-space: nowrap;
  -webkit-font-smoothing:antialiased;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

/* small glow that borrows the label color (if inline color exists) without forcing it */
.status-indicator .label::after{
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
  filter: blur(8px);
  opacity: 0.12;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink));
}


.status-indicator .label[style=""] ,
.status-indicator .label:not([style]) {
  color: white;
  background: linear-gradient(90deg, rgba(139,92,246,0.18), rgba(236,72,153,0.12));
  border: 1px solid rgba(139,92,246,0.14);
}


.indicator.in    { background: rgba(139,92,246,0.10); color: #bfe9c8; border: 1px solid rgba(139,92,246,0.08); padding:6px 10px; border-radius:999px; font-weight:700; }
.indicator.low   { background: rgba(236,72,153,0.08); color: #ffd0c9; border: 1px solid rgba(236,72,153,0.08); padding:6px 10px; border-radius:999px; font-weight:700; }
.indicator.out   { background: rgba(255,255,255,0.03); color: #f0f0f5; border: 1px solid rgba(255,255,255,0.04); padding:6px 10px; border-radius:999px; font-weight:700; }
.indicator.unlimited { background: transparent; color: rgba(200,200,220,0.78); padding:6px 10px; border-radius:999px; font-weight:700; }


@media (max-width:520px) {
  .status-indicator { min-width: 56px; justify-content:flex-start; }
  .status-indicator .label { font-size:12px; padding:6px 10px; }
  .status-indicator .label::after { opacity: 0.08; filter: blur(6px); }
}