/* outreach-member.css — Phase 6 read-only member-detail modal.
 * UI Kit tokens only. Documented exceptions:
 *   1. The 720px mobile breakpoint (matches outreach-funnel.css / -dashboard.css / -comments.css precedent).
 *   2. One rgba(0,0,0,0.5) overlay literal — ui-kit.css has no neutral-overlay token; --rk-blue-subtle is too light for a modal scrim.
 */

.omd-modal-overlay {
  position: fixed;
  inset: 0;
  /* rgba(0,0,0,0.5) — documented exception: no equivalent UI Kit token exists for a modal scrim. */
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--rk-space-4);
  box-sizing: border-box;
}

.omd-modal {
  background: var(--rk-white);
  border-radius: var(--rk-radius-xl);
  padding: var(--rk-space-6);
  max-width: calc(var(--rk-space-16) * 10);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
}

.omd-close-btn {
  position: absolute;
  top: var(--rk-space-3);
  right: var(--rk-space-3);
  background: transparent;
  border: 0;
  font-size: var(--rk-text-2xl);
  font-weight: var(--rk-weight-light);
  color: var(--rk-slate);
  cursor: pointer;
  width: var(--rk-space-8);
  height: var(--rk-space-8);
  border-radius: var(--rk-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.omd-close-btn:hover { background: var(--rk-gray-light); color: var(--rk-navy); }

/* ── Profile header ───────────────────────────────────────────────────── */

.omd-header {
  display: flex;
  gap: var(--rk-space-4);
  align-items: flex-start;
  padding-right: var(--rk-space-10);
  margin-bottom: var(--rk-space-4);
}

.omd-photo {
  width: var(--rk-space-16);
  height: var(--rk-space-16);
  border-radius: var(--rk-radius-pill);
  object-fit: cover;
  background: var(--rk-gray-light);
  flex-shrink: 0;
}

.omd-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--rk-text-xl);
  font-weight: var(--rk-weight-medium);
  color: var(--rk-slate);
}

.omd-header-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rk-space-1);
}

.omd-name {
  font-size: var(--rk-text-2xl);
  font-weight: var(--rk-weight-medium);
  color: var(--rk-navy);
  word-wrap: break-word;
}

.omd-badges {
  display: flex;
  gap: var(--rk-space-2);
  flex-wrap: wrap;
  margin-top: var(--rk-space-1);
}

.omd-status-badge {
  display: inline-block;
  padding: var(--rk-space-1) var(--rk-space-3);
  font-size: var(--rk-text-xs);
  font-weight: var(--rk-weight-medium);
  color: var(--rk-navy);
  background: var(--rk-blue-subtle);
  border-radius: var(--rk-radius-pill);
}

.omd-status-time {
  font-size: var(--rk-text-xs);
  color: var(--rk-slate-light);
}

.omd-linkedin-row {
  margin-top: var(--rk-space-1);
}

.omd-linkedin {
  font-size: var(--rk-text-sm);
  color: var(--rk-blue);
  text-decoration: none;
}

.omd-linkedin:hover { text-decoration: underline; }

/* ── Sections ─────────────────────────────────────────────────────────── */

.omd-section {
  margin-top: var(--rk-space-6);
}

.omd-section-title {
  font-size: var(--rk-text-lg);
  font-weight: var(--rk-weight-medium);
  color: var(--rk-navy);
  margin: 0 0 var(--rk-space-3);
}

.omd-section-body {
  display: flex;
  flex-direction: column;
  gap: var(--rk-space-2);
}

.omd-activity-row,
.omd-phantomlog-row {
  padding: var(--rk-space-3);
  border: var(--rk-border);
  border-radius: var(--rk-radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--rk-space-2);
}

.omd-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rk-space-2);
}

.omd-row-time {
  font-size: var(--rk-text-xs);
  color: var(--rk-slate-light);
}

.omd-row-body {
  font-size: var(--rk-text-sm);
  color: var(--rk-navy);
  word-wrap: break-word;
  line-height: 1.5;
  white-space: pre-wrap;
}

.omd-row-meta {
  font-size: var(--rk-text-xs);
  color: var(--rk-slate);
}

.omd-row-meta a {
  color: var(--rk-blue);
  text-decoration: none;
}

.omd-row-meta a:hover { text-decoration: underline; }

/* ── Status badges ────────────────────────────────────────────────────── */

.omd-badge {
  display: inline-block;
  padding: var(--rk-space-1) var(--rk-space-2);
  font-size: var(--rk-text-xs);
  font-weight: var(--rk-weight-medium);
  border-radius: var(--rk-radius-sm);
}

.omd-badge-success { background: var(--rk-success-bg); color: var(--rk-success); }
.omd-badge-warning { background: var(--rk-warning-bg); color: var(--rk-warning); }
.omd-badge-error   { background: var(--rk-error-bg);   color: var(--rk-error); }
.omd-badge-neutral { background: var(--rk-gray-light); color: var(--rk-slate); }

/* ── Show-more pagination ─────────────────────────────────────────────── */

.omd-show-more-wrap {
  margin-top: var(--rk-space-3);
  text-align: center;
}

.omd-show-more {
  background: transparent;
  border: var(--rk-border);
  color: var(--rk-navy);
  border-radius: var(--rk-radius-md);
  padding: var(--rk-space-2) var(--rk-space-4);
  font-size: var(--rk-text-sm);
  font-weight: var(--rk-weight-medium);
  cursor: pointer;
}

.omd-show-more:hover { background: var(--rk-blue-subtle); border-color: var(--rk-navy); }

/* ── Empty / loading / error panels ───────────────────────────────────── */

.omd-empty,
.omd-loading,
.omd-error {
  text-align: center;
  padding: var(--rk-space-6);
  color: var(--rk-slate-light);
  font-size: var(--rk-text-sm);
}

.omd-error p { margin: 0 0 var(--rk-space-3); }

.omd-retry {
  background: var(--rk-navy);
  color: var(--rk-white);
  border: 0;
  border-radius: var(--rk-radius-md);
  padding: var(--rk-space-2) var(--rk-space-4);
  font-size: var(--rk-text-sm);
  font-weight: var(--rk-weight-medium);
  cursor: pointer;
}

.omd-retry:hover { background: var(--rk-navy-light); }

/* Mobile breakpoint: 720px is a raw px literal because UI Kit doesn't define
 * a breakpoint token convention. Matches outreach-funnel.css / -dashboard.css
 * / -comments.css precedent. */
@media (max-width: 720px) {
  .omd-modal-overlay { padding: 0; }
  .omd-modal {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    padding: var(--rk-space-4);
    padding-top: var(--rk-space-8);
  }
  .omd-header { flex-direction: column; padding-right: var(--rk-space-8); }
  .omd-photo  { width: var(--rk-space-12); height: var(--rk-space-12); }
  .omd-name   { font-size: var(--rk-text-xl); }
}
