/* ═══════════════════════════════════════
   STATUS PAGE — extends dashboard.css
   All base variables from dashboard.css
═══════════════════════════════════════ */

/* ── Extra status badge colors not in dashboard.css ── */
.status-partially-down { color: #d45e5e; background: rgba(146,43,33,.15); }
.status-discontinued   { color: #8a8a9a; background: rgba(138,138,154,.1); }

/* ── Legend row ── */
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

/* ── Product card list ── */
.sp-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 860px;
}

/* ── Individual card ── */
.sp-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.sp-card:hover { border-color: rgba(255,255,255,.14); }

/* Left accent bar per status */
.sp-card[data-status="undetected"]     { border-left: 3px solid #22c55e; }
.sp-card[data-status="detected"]       { border-left: 3px solid #e63946; }
.sp-card[data-status="updating"]       { border-left: 3px solid #f59e0b; }
.sp-card[data-status="partially-down"] { border-left: 3px solid #922b21; }
.sp-card[data-status="discontinued"]   { border-left: 3px solid #4b5563; }

/* ── Card header (button) ── */
.sp-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: background var(--transition);
}
.sp-header:hover { background: var(--bg3); }

.sp-left  { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.sp-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Status dot */
.sp-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sp-dot.status-undetected     { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.6); }
.sp-dot.status-detected        { background: #e63946; box-shadow: 0 0 6px rgba(230,57,70,.6); }
.sp-dot.status-updating        { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.6); animation: sp-pulse 1.6s ease-in-out infinite; }
.sp-dot.status-partially-down  { background: #922b21; box-shadow: 0 0 6px rgba(146,43,33,.6); }
.sp-dot.status-discontinued    { background: #4b5563; }

@keyframes sp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.sp-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-price {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Chevron */
.sp-chevron {
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.sp-card.open .sp-chevron { transform: rotate(180deg); }

/* ── Expandable body ── */
.sp-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4,0,.2,1);
}
.sp-card.open .sp-body { grid-template-rows: 1fr; }

.sp-body-inner {
  overflow: hidden;
  min-height: 0;
  border-top: 0px solid var(--border);
  transition: border-top-width 0s .35s, padding .35s cubic-bezier(.4,0,.2,1);
  padding: 0 1.5rem;
}
.sp-card.open .sp-body-inner {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.25rem;
  transition: padding .35s cubic-bezier(.4,0,.2,1);
}

/* Features list */
.sp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.sp-features li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  color: var(--text);
}
.sp-features li i {
  color: var(--red);
  font-size: .75rem;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .sp-header { padding: .9rem 1rem; }
  .sp-name   { font-size: .875rem; }
  .sp-body-inner { padding: 0 1rem; }
  .sp-card.open .sp-body-inner { padding: .875rem 1rem 1rem; }
}
