
/* 88BB PAC Scout Radar Preview v1.0
   Preview-only styling. Does not affect production radar.html unless explicitly linked.
*/
.pac-preview-panel {
  border: 1px solid rgba(42, 238, 221, 0.22);
  background:
    radial-gradient(circle at top left, rgba(40, 230, 220, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(8, 15, 27, 0.96), rgba(5, 9, 19, 0.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
}

.pac-preview-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pac-preview-hero h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
}

.pac-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pac-preview-pill,
.pac-preview-status,
.pac-preview-feed-wrap,
.pac-preview-empty {
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(5, 12, 24, 0.72);
  border-radius: 999px;
}

.pac-preview-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: #d7fff9;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.pac-preview-pill.is-strong {
  border-color: rgba(52, 211, 153, 0.48);
  background: rgba(20, 83, 70, 0.35);
}

.pac-preview-status {
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #a7f3d0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.pac-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pac-preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(20, 184, 166, 0.16), transparent 38%);
}

.pac-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.08), transparent);
  opacity: 0.48;
}

.pac-preview-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pac-preview-symbol {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pac-preview-coin {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 900;
}

.pac-preview-card h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.1rem;
}

.pac-preview-muted {
  color: #94a3b8;
  font-size: 0.76rem;
}

.pac-preview-command {
  min-width: 105px;
  text-align: right;
}

.pac-preview-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
  font-size: 0.76rem;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(14, 165, 233, 0.28);
}

.pac-preview-state.fire,
.pac-preview-state.fire_plan {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.38);
}

.pac-preview-state.arm {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.34);
}

.pac-preview-state.invalid {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.30);
}

.pac-preview-tf-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.pac-preview-tf {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.54);
}

.pac-preview-tf-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.pac-preview-tf-title {
  color: #e2e8f0;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pac-preview-fresh {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
}

.pac-preview-sentence {
  margin: 0 0 12px;
  color: #dbeafe;
  font-size: 0.86rem;
  line-height: 1.55;
}

.pac-preview-lights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pac-preview-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
}

.pac-preview-light::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #334155;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.pac-preview-light.is-on {
  color: #ecfeff;
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(20, 184, 166, 0.12);
}

.pac-preview-light.is-on::before {
  background: #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.75);
}

.pac-preview-light.is-warn.is-on {
  color: #fef3c7;
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.12);
}

.pac-preview-light.is-warn.is-on::before {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.72);
}

.pac-preview-light.is-danger.is-on {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.12);
}

.pac-preview-light.is-danger.is-on::before {
  background: #f87171;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.72);
}

.pac-preview-plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.pac-preview-plan span {
  border-radius: 14px;
  padding: 9px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 0.72rem;
}

.pac-preview-plan strong {
  display: block;
  margin-top: 3px;
  color: #f8fafc;
  font-size: 0.85rem;
}

.pac-preview-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.pac-preview-subhead h4 {
  margin: 0;
  color: #f8fafc;
}

.pac-preview-subhead span {
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 900;
}

.pac-preview-feed-wrap {
  border-radius: 22px;
  margin-top: 16px;
  padding: 16px;
}

.pac-preview-feed {
  display: grid;
  gap: 8px;
}

.pac-preview-feed-item {
  display: grid;
  grid-template-columns: 110px 90px 1fr 120px;
  gap: 10px;
  align-items: center;
  border-radius: 15px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.76rem;
}

.pac-preview-feed-item strong {
  color: #f8fafc;
}

.pac-preview-empty {
  grid-column: 1 / -1;
  border-radius: 22px;
  padding: 24px;
  color: #cbd5e1;
}

@media (max-width: 980px) {
  .pac-preview-hero,
  .pac-preview-card-head,
  .pac-preview-subhead {
    flex-direction: column;
  }

  .pac-preview-grid,
  .pac-preview-plan {
    grid-template-columns: 1fr;
  }

  .pac-preview-command {
    text-align: left;
  }

  .pac-preview-feed-item {
    grid-template-columns: 1fr;
  }
}
