/* ── Product List Search ── */

/* ─── VARIATION 03: Scanner Drop — Header "Buscar Lista de Cartas" ─── */
.ls-header-charge {
  position: relative;
  overflow: hidden;
  border-left: 3px solid rgba(170, 0, 255, 0.2);
  border-radius: 16px 8px 8px 16px;
}
.ls-header-charge::before {
  content: '';
  position: absolute;
  left: -2px; top: -20%;
  width: 3px; height: 30%;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, transparent, #aa00ff, transparent);
  filter: drop-shadow(0 0 6px #aa00ff);
  animation: ls-scan 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes ls-scan {
  0%   { top: -30%; opacity: 0; }
  10%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* ─── VARIATION 12: Holo Shift — Cards with listings (available) ─── */
.ls-card-block {
  position: relative;
  overflow: hidden;
  border-left: none;
  border-radius: 4px;
  transition: box-shadow 0.2s;
}
/* Override storm-card ::after (corner triangle) — use it for left border instead */
.ls-card-block.storm-card {
  border-radius: 16px 8px 8px 16px !important;
}
.ls-card-block.storm-card::after {
  top: 0 !important; right: auto !important; left: 0 !important; bottom: 0 !important;
  width: 4px !important; height: auto !important;
  background: #dee2e6 !important;
  opacity: 1 !important;
  border-radius: 16px 0 0 16px !important;
}
.ls-card-block.ls-status-available.storm-card::after {
  background: linear-gradient(180deg,
    #18d2ff 0%, #aa00ff 25%, #6200ea 50%, #aa00ff 75%, #18d2ff 100%
  ) !important;
  background-size: 100% 200% !important;
  animation: ls-holo-shift 3s linear infinite !important;
  box-shadow: 0 0 8px rgba(170, 0, 255, 0.25);
}
@keyframes ls-holo-shift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}

/* ─── VARIATION 06 dimmed: Gradient Fade — No stock (yellow) ─── */
.ls-card-block.ls-status-nostock {
  opacity: 0.85;
}
.ls-card-block.ls-status-nostock.storm-card::after {
  background: linear-gradient(180deg, #ffc107, #e0a800, rgba(255, 193, 7, 0.15), transparent) !important;
  width: 3px !important;
  border-radius: 16px 0 0 16px !important;
}

/* ─── VARIATION 06 dimmed: Gradient Fade — Not found (red, muted) ─── */
.ls-card-block.ls-status-notfound {
  opacity: 0.6;
}
.ls-card-block.ls-status-notfound.storm-card::after {
  background: linear-gradient(180deg, #dc3545, #c82333, rgba(220, 53, 69, 0.15), transparent) !important;
  width: 3px !important;
  border-radius: 16px 0 0 16px !important;
}

/* ─── Card layout ─── */
.ls-card-thumb {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.ls-listing-row {
  border-bottom: 1px solid oklch(0.5 0.06 285 / 0.18);
  padding-left: 0.5rem;
}
.ls-listing-row:last-child {
  border-bottom: none;
}
.ls-listing-row:hover {
  background: oklch(0.55 0.08 290 / 0.1);
}

.ls-listing-price {
  min-width: 80px;
  color: #34c98a;
  font-size: 0.95rem;
}

.ls-listing-details {
  min-width: 120px;
}

.ls-listing-stock {
  min-width: 70px;
}

.ls-listing-actions {
  flex-shrink: 0;
}

/* Mobile: stack listing rows vertically */
@media (max-width: 575.98px) {
  .ls-listing-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }
  .ls-listing-actions {
    margin-left: 0 !important;
    width: 100%;
    justify-content: flex-end;
  }
  .ls-card-header {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .ls-card-thumb {
    width: 32px;
    height: 44px;
  }
}

/* Stats bar */
#ls-stats {
  border-radius: 8px;
}

.ls-stat-value {
  font-family: var(--font-tech, 'Rajdhani', sans-serif);
  font-weight: 700;
  color: var(--gold, #e9b949);
}

/* ── Form colapsado pós-busca (por CLASSE — sem medições que o rewrite do CF invalida) ── */
#ls-input-section.ls-collapsed {
  display: none;
}

/* ── Bloco de preços de referência ── */
.ls-ref-listings {
  border-top: 1px dashed oklch(0.5 0.06 285 / 0.35);
}
.ls-ref-title {
  font-family: var(--font-tech, 'Rajdhani', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--ink-3, #8f8da8);
}
.ls-ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid oklch(0.55 0.13 292 / 0.55);
  background: oklch(0.5 0.08 290 / 0.12);
  color: #cebcff;
  font-size: 0.74rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.ls-ref-chip:hover {
  background: var(--arcane, #7c4ddb);
  color: #fff;
  text-decoration: none;
}
.ls-ref-chip i {
  font-size: 0.68rem;
}
.ls-ref-chip--plain {
  opacity: 0.7;
}
.ls-ref-row .ls-listing-price {
  font-size: 0.85rem;
}

/* Textarea */
#ls-text {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
}

/* Add all button animation */
#ls-add-all .spinner-border {
  width: 14px;
  height: 14px;
  border-width: 2px;
}


/* [Valuation] linha/preço usado na precificação do deck (página vinda de um deck) */
.ls-val-used {
  outline: 1px dashed rgba(255, 193, 7, 0.5);
  outline-offset: 2px;
  border-radius: 8px;
}
.ls-val-star {
  color: #ffc107;
  font-size: .8rem;
  line-height: 1;
}
.ls-val-chip {
  font-size: .68rem;
  color: #ffc107;
  border: 1px dashed rgba(255, 193, 7, 0.5);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: middle;
}
.ls-val-legend {
  display: block;
  margin-top: 2px;
  color: #ffc107;
  opacity: .85;
  font-size: .72rem;
}


/* [badge amarela legivel] o tema escuro força texto claro nos badges — amarelo precisa de texto ESCURO */
#list-search-page .badge.bg-warning {
  color: #14142a !important;
  font-weight: 700;
}
