/*
 * Apollo Compare-tab additions: empty state, recent-comparisons list, and
 * the targets breadcrumb. Composes with .compare-panel / .compare-sidebar
 * (apollo.css §Compare View). Desktop-only per OLYMPUS_DESIGN_SYSTEM.
 */

/* ── Empty state ───────────────────────────────────────────────────── */
.compare-empty {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: 1.25rem;
  padding: 1rem 0;
}

.compare-empty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.compare-empty-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.compare-empty-insight {
  margin: 0;
  color: var(--grey-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

.compare-empty-example {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--grey-light);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

.compare-empty-cta {
  justify-self: start;
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.compare-empty-cta:hover { background: var(--teal); }
.compare-empty-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Recent comparisons list (inside empty state) ──────────────────── */
.compare-empty-recents {
  display: grid;
  gap: 0.5rem;
}

.compare-empty-recents-heading {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-empty-recents-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.compare-empty-recents-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.compare-empty-recents-restore {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.compare-empty-recents-restore:hover {
  border-color: var(--teal);
  background: var(--grey-light);
}
.compare-empty-recents-restore:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.compare-empty-recents-label { color: var(--text); font-weight: 500; }
.compare-empty-recents-time {
  color: var(--grey-dark);
  font-size: 0.8rem;
  margin-left: 0.6rem;
}

.compare-empty-recents-remove {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 2rem;
  cursor: pointer;
  color: var(--grey-dark);
  font-size: 1rem;
  line-height: 1;
}
.compare-empty-recents-remove:hover {
  background: var(--grey-light);
  color: var(--navy);
}
.compare-empty-recents-remove:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Breadcrumb (above SimilarityPanel + ApolloMap) ────────────────── */
.compare-breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.875rem;
}

.compare-breadcrumb-label { flex: 1 1 auto; }

.compare-breadcrumb-back {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.compare-breadcrumb-back:hover {
  background: rgba(255, 255, 255, 0.1);
}
.compare-breadcrumb-back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── When breadcrumb is present, .compare-panel must reserve a top
 *    track so the breadcrumb spans both columns. We re-declare the
 *    grid so the rule is self-contained. ─────────────────────────── */
.compare-panel.has-breadcrumb {
  grid-template-rows: auto 1fr;
}
