/* =========================================================
   Sekcja · Monitoring cen konkurencji

   Grid 2-kolumnowy: mockup panelu (lewa) + treść z listą korzyści (prawa).
   Na <=1024px grid z base.css zwija się do 1 kolumny.

   Zawiera współdzielone klasy panelu (.szp-panel__*) — będą reużywane
   w innych sekcjach wymagających UI-mockupa. Oraz .szp-benefits — lista
   z czerwonym checkmarkiem do reużycia w dynamic-pricing i dalszych
   sekcjach.

   Zależność: tokens.css, base.css.
   ========================================================= */

/* ——— Panel (mockup produktu) — reużywalny ——— */
.szp-panel {
  width: 580px;
  max-width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.szp-panel__topbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--line);
}
.szp-panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  display: inline-block;
}
.szp-panel__spacer { flex: 1; }
.szp-panel__sync {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.szp-panel__pulse {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #10B981;
  animation: szp-pulse 1.6s ease-in-out infinite;
}
@keyframes szp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.szp-panel__header {
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.szp-panel__title {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.szp-panel__subtitle {
  font-size: 12px;
  color: var(--muted);
}
.szp-panel__tabs {
  display: flex;
  gap: 6px;
  font-size: 12px;
}
.szp-panel__tabs span {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: var(--fw-medium);
}
.szp-panel__tabs .is-active { background: var(--ink); color: #fff; }

.szp-panel__sparklinewrap {
  padding: 0 22px 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.szp-panel__sparkline {
  flex: 1;
  height: 56px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.szp-panel__sparkline > span {
  flex: 1;
  background: #CBD5E1;
  border-radius: 2px;
  transition: height var(--dur-slow) var(--ease-out);
}
.szp-panel__sparkline > span.is-hot { background: var(--brand); }

.szp-panel__changes { min-width: 100px; }
.szp-panel__changes-label { font-size: 11px; color: var(--muted); }
.szp-panel__changes-value {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.szp-panel__changes-value span {
  font-size: 12px;
  color: #10B981;
  font-weight: var(--fw-semibold);
}

.szp-panel__table { padding: 0 22px 16px; }
.szp-panel__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 0.8fr;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.04);
  font-size: 13px;
}
.szp-panel__row > div:nth-child(1) { color: var(--ink); font-weight: var(--fw-medium); }
.szp-panel__row > div:nth-child(2),
.szp-panel__row > div:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.szp-panel__row > div:nth-child(2) { color: var(--ink); font-weight: var(--fw-semibold); }
.szp-panel__row > div:nth-child(3) { color: var(--muted); }
.szp-panel__row > div:nth-child(4) { text-align: right; }
.szp-panel__row--head {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.szp-panel__row--head > div:nth-child(1) { color: var(--muted); font-weight: inherit; }
.szp-panel__row--head > div:nth-child(2) { color: var(--muted); font-weight: inherit; }

.szp-delta-good { color: var(--success); font-size: 11px; }
.szp-delta-bad  { color: var(--brand);   font-size: 11px; }

.szp-status {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  padding: 3px 8px;
  border-radius: 5px;
}
.szp-status--good  { color: var(--success); background: var(--success-bg); }
.szp-status--bad   { color: var(--brand);   background: var(--brand-50); }
.szp-status--match { color: var(--muted);   background: rgba(11, 18, 32, 0.05); }

/* ——— Lista korzyści z checkmarkami — reużywalne ——— */
.szp-benefits-label {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.szp-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.szp-benefits li {
  display: flex;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.szp-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.szp-check svg { width: 12px; height: 12px; }

/* ——— Drobiazgi specyficzne dla sekcji Monitoring ——— */
.szp-monitoring__copy .szp-subtitle { margin-top: 12px; }
.szp-monitoring__copy .szp-body     { margin-top: 20px; margin-bottom: 28px; }
.szp-monitoring__copy .szp-h2       { margin-top: 16px; }
