/* ─── Offers Workspace ────────────────────────────────────────────────────────
   Active offer portfolio — focused view of the recruiter's offer pipeline.
   Design tokens from theme.css. Follows shell.css layout conventions.
   All class names use .offers- prefix; no dependency on pipeline.css.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Workspace wrapper ───────────────────────────────────────────────────────── */
.offers-workspace {
  padding: 24px 0 0;
}

/* ── Workload summary line ───────────────────────────────────────────────────── */
.offers-summary {
  padding: 16px 24px 0;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .01em;
}

/* ── Filter bar ──────────────────────────────────────────────────────────────── */
.offers-filter {
  padding: 0 24px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.offers-filter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 4px;
  flex-shrink: 0;
}

.offers-filter-pill {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--bdr);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
  line-height: 1.6;
}

.offers-filter-pill:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.offers-filter-pill.active {
  background: var(--acc-bg);
  border-color: var(--acc);
  color: var(--acc);
  font-weight: 500;
}

/* ── Offer row ───────────────────────────────────────────────────────────────── */
.offers-card {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid var(--bdr2);
  gap: 12px;
  background: var(--surface);
  transition: background .1s;
  min-height: 56px;
}

.offers-card:last-child {
  border-bottom: none;
}

.offers-card:hover {
  background: var(--acc-bg);
}

/* Urgency accent bars — Critical and High only */
.offers-card.accent-critical {
  border-left: 3px solid var(--red);
  padding-left: 21px; /* 24 - 3 to preserve alignment */
}

.offers-card.accent-high {
  border-left: 3px solid var(--amber);
  padding-left: 21px;
}

/* ── Body (name + meta) ──────────────────────────────────────────────────────── */
.offers-card-body {
  flex: 1;
  min-width: 0;
}

.offers-card-headline {
  font-size: 13px;
  font-weight: 500;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.offers-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* ── Intelligence section (signaled candidates) ──────────────────────────────── */
.offers-card-intel {
  flex: 1;
  min-width: 0;
}

/* State label: plain-language description of what's happening */
.offers-card-reason {
  font-size: 13px;
  font-weight: 500;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* Next-step phrase: what the recruiter should do */
.offers-card-next {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* ── CTA ─────────────────────────────────────────────────────────────────────── */
.offers-card-cta {
  flex-shrink: 0;
}

.offers-cta-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--acc);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid var(--acc);
  border-radius: var(--rad-sm);
  transition: background .12s;
  display: inline-block;
}

.offers-cta-link:hover {
  background: var(--acc-bg);
}

/* Secondary CTA for monitoring (clean) candidates */
.offers-cta-link--secondary {
  color: var(--muted);
  border-color: var(--bdr);
}

.offers-cta-link--secondary:hover {
  color: var(--acc);
  border-color: var(--acc);
  background: var(--acc-bg);
}

/* ── Supporting chip ─────────────────────────────────────────────────────────── */
.offers-supporting-chip {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--bdr);
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 6px;
  flex-shrink: 0;
  vertical-align: middle;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Multi-signal indicator ──────────────────────────────────────────────────── */
.offers-signal-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-bg);
  border-radius: 10px;
  padding: 1px 5px;
  margin-left: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Divider between action-required and monitoring sections ─────────────────── */
.offers-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
}

.offers-divider::before,
.offers-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bdr2);
}

.offers-divider span {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  letter-spacing: .04em;
}

/* ── Empty state ─────────────────────────────────────────────────────────────── */
.offers-empty {
  padding: 48px 24px;
  text-align: center;
}

.offers-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 6px;
}

.offers-empty-sub {
  font-size: 13px;
  color: var(--muted);
}

/* ── Skeleton ────────────────────────────────────────────────────────────────── */
.offers-skeleton-filter {
  padding: 0 24px 16px;
  display: flex;
  gap: 8px;
}

@keyframes offers-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.offers-skel {
  background: linear-gradient(90deg, var(--bdr2) 25%, var(--bdr) 50%, var(--bdr2) 75%);
  background-size: 400px 100%;
  animation: offers-shimmer 1.4s infinite;
  border-radius: 4px;
}
