/* ============================================================
   Portfolio Hub — index.html
   ============================================================ */

body { background: var(--nav-bg); min-height: 100vh; }

/* Navigation */
.hub-nav {
  padding: 24px 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hub-logo { display: flex; align-items: center; gap: 12px; }
.hub-logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.hub-logo-name { font-size: 16px; font-weight: 700; color: #fff; }
.hub-logo-sub { font-size: 12px; color: #475569; margin-top: 1px; }
.hub-nav-link {
  font-size: 13px; color: #64748B; text-decoration: none; font-weight: 500;
}
.hub-nav-link:hover { color: #94A3B8; }

/* Hero */
.hub-hero {
  max-width: 1100px; margin: 0 auto;
  padding: 72px 64px 48px;
}
.hub-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.hub-title {
  font-family: var(--font-serif);
  font-size: 52px; font-weight: 600; color: #F1F5F9;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px;
}
.hub-sub {
  font-size: 17px; color: #64748B; max-width: 560px;
  line-height: 1.6; margin-bottom: 40px;
}
.hub-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-tag {
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.07);
  color: #94A3B8;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Grid */
.hub-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 0 64px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Case study card — full width */
.hub-card-case {
  grid-column: 1 / -1;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 16px;
  padding: 32px 36px;
  display: flex; align-items: center; gap: 36px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.hub-card-case::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hub-card-case:hover {
  background: rgba(37,99,235,0.18);
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-2px);
}
.hub-case-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #60A5FA; margin-bottom: 8px; }
.hub-case-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: #F1F5F9; margin-bottom: 8px; line-height: 1.2; }
.hub-case-desc { font-size: 14px; color: #94A3B8; line-height: 1.6; max-width: 500px; }
.hub-case-arrow { font-size: 24px; color: #60A5FA; margin-left: auto; flex-shrink: 0; }
.hub-case-preview {
  width: 260px; flex-shrink: 0;
  background: var(--bg); border-radius: 10px;
  height: 120px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.hub-case-preview-inner {
  display: flex; gap: 8px; padding: 12px; width: 100%;
}
.hub-case-col { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.hub-case-bar { border-radius: 3px; background: var(--surface-2); }

/* Screen cards */
.hub-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hub-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

.hub-card-preview {
  height: 160px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hub-card-preview-bar {
  height: 24px; background: var(--nav-bg);
  display: flex; align-items: center; gap: 5px; padding: 0 10px;
}
.hub-preview-dot { width: 7px; height: 7px; border-radius: 50%; }

/* Preview mock contents */
.preview-shell { display: flex; height: calc(160px - 24px); overflow: hidden; }
.preview-sidebar { width: 36px; background: var(--nav-bg); flex-shrink: 0; padding: 8px 5px; display: flex; flex-direction: column; gap: 5px; }
.preview-sidebar-dot { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.15); }
.preview-sidebar-dot.a { background: rgba(59,130,246,0.6); }
.preview-main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.preview-hdr { height: 20px; background: var(--surface); border-radius: 3px; border: 1px solid var(--border); display: flex; align-items: center; padding: 0 6px; gap: 4px; }
.preview-h-line { height: 5px; border-radius: 2px; background: var(--surface-2); }
.preview-h-badge { height: 10px; width: 40px; border-radius: 100px; }
.preview-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.preview-kpi { background: var(--surface); border-radius: 3px; border: 1px solid var(--border); padding: 5px; }
.preview-kpi-num { font-size: 11px; font-weight: 700; color: var(--text-1); }
.preview-kpi-lbl { height: 4px; border-radius: 2px; background: var(--surface-2); margin-top: 3px; }
.preview-tasks { background: var(--surface); border-radius: 3px; border: 1px solid var(--border); padding: 5px; flex: 1; }
.preview-task { height: 4px; border-radius: 2px; background: var(--surface-2); margin-bottom: 4px; }
.preview-alerts { display: flex; flex-direction: column; gap: 4px; }
.preview-alert { border-radius: 3px; padding: 5px; }
.preview-alert-line { height: 4px; border-radius: 2px; margin-bottom: 3px; }
.preview-right { width: 50px; background: var(--surface); border-left: 1px solid var(--border); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.preview-r-btn { height: 14px; border-radius: 2px; }

/* Patient preview */
.preview-patient { display: flex; flex-direction: column; height: 100%; background: #F0F4F8; padding: 8px; gap: 6px; }
.preview-p-greet { background: var(--surface); border-radius: 6px; padding: 7px; }
.preview-p-greet-name { font-size: 10px; font-weight: 700; color: var(--text-1); }
.preview-p-greet-sub { font-size: 8px; color: var(--text-3); }
.preview-next { background: var(--blue); border-radius: 5px; padding: 8px; }
.preview-next-lbl { font-size: 7px; color: rgba(255,255,255,0.7); }
.preview-next-task { font-size: 10px; font-weight: 700; color: #fff; }
.preview-next-btn { height: 14px; background: rgba(255,255,255,0.2); border-radius: 3px; margin-top: 5px; }
.preview-p-tasks { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.preview-p-task { background: var(--surface); border-radius: 4px; padding: 5px; border: 1px solid var(--border); display: flex; align-items: center; gap: 5px; }
.preview-p-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.preview-p-line { height: 4px; border-radius: 2px; background: var(--surface-2); flex: 1; }

/* Deviation preview */
.preview-dev-hdr { background: var(--amber-l); border-bottom: 1px solid var(--amber-m); padding: 6px 8px; }
.preview-dev-hdr-line { height: 5px; border-radius: 2px; background: var(--amber-m); margin-bottom: 3px; }
.preview-wf { display: flex; gap: 3px; padding: 5px 8px; background: var(--surface); border-bottom: 1px solid var(--border); }
.preview-wf-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.preview-wf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--border); }
.preview-wf-dot.done { background: var(--blue); border-color: var(--blue); }
.preview-wf-dot.active { border-color: var(--blue); }
.preview-wf-lbl { height: 3px; width: 80%; border-radius: 2px; background: var(--surface-2); }

/* Card info */
.hub-card-info { padding: 20px 22px 22px; flex: 1; }
.hub-card-role { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #475569; margin-bottom: 8px; }
.hub-card-title { font-size: 16px; font-weight: 700; color: #E2E8F0; margin-bottom: 6px; }
.hub-card-desc { font-size: 12px; color: #64748B; line-height: 1.5; margin-bottom: 14px; }
.hub-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hub-card-tag {
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 100px;
  background: rgba(255,255,255,0.06);
  color: #64748B; border: 1px solid rgba(255,255,255,0.08);
}
.hub-card-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.hub-card-open {
  font-size: 12px; font-weight: 600; color: #60A5FA;
}

/* Role badges */
.role-patient  { color: #60A5FA; }
.role-caregiver { color: #2DD4BF; }
.role-specialist { color: #FCD34D; }
.role-deviation { color: #FB923C; }

/* Responsive */
/* ---- Inline-style replacements ---- */

/* Preview dots */
.dot-red   { background: #EF4444; }
.dot-amber { background: #F59E0B; }
.dot-green { background: #10B981; }

/* Sidebar icon */
.preview-sidebar-icon {
  width: 24px; height: 24px; border-radius: 4px;
  background: rgba(59,130,246,0.4); margin-bottom: 4px;
}

/* Header utilities */
.w-60 { width: 60px; }
.w-80 { width: 80px; }
.flex-1 { flex: 1; }
.preview-h-badge-amber { background: var(--amber-m); opacity: 0.8; }
.preview-h-badge-sm { width: 30px; }

/* KPI colors */
.preview-kpi-num-green { color: var(--green); }
.preview-kpi-num-red   { color: var(--red); }
.preview-kpi-num-amber { color: var(--amber); }
.preview-kpi-num-blue-sm { color: var(--blue); font-size: 9px; }
.preview-kpi-lbl-green { background: var(--green-m); opacity: 0.5; }
.preview-kpi-lbl-red   { background: var(--red-m); opacity: 0.5; }
.preview-kpi-lbl-amber { background: var(--amber-m); opacity: 0.5; }
.preview-kpi-lbl-blue  { background: var(--blue-m); opacity: 0.5; }

/* Alerts */
.preview-alert-red   { background: var(--red-l); border: 1px solid var(--red-m); }
.preview-alert-amber { background: var(--amber-l); border: 1px solid var(--amber-m); }
.preview-alert-line-red   { background: var(--red-m); }
.preview-alert-line-amber { background: var(--amber-m); }
.preview-alert-line-short { width: 70%; margin-bottom: 0; }
.preview-alert-line-shorter { width: 60%; margin-bottom: 0; }

/* Tasks */
.preview-task-green { background: var(--green-m); opacity: 0.5; }
.preview-task-red   { background: var(--red-m); opacity: 0.6; }
.preview-task-amber { background: var(--amber-m); opacity: 0.6; }

/* Right panel */
.preview-r-btn-blue    { background: var(--blue); opacity: 0.8; }
.preview-r-btn-surface { background: var(--surface-2); }
.preview-divider { height: 1px; background: var(--border); margin: 2px 0; }
.preview-visit-card {
  height: 22px; border-radius: 3px;
  background: var(--blue-l); border: 1px solid var(--blue-m);
}

/* Patient preview */
.preview-p-dot-green { background: var(--green); }
.preview-p-line-green { background: var(--green-m); opacity: 0.6; }
.preview-p-label-green { font-size: 7px; color: var(--green); font-weight: 700; white-space: nowrap; }
.preview-p-task-blue { border-color: var(--blue-m); background: var(--blue-l); }
.preview-p-dot-blue { background: var(--blue); }
.preview-p-line-blue { background: var(--blue-m); opacity: 0.6; }
.preview-p-label-blue { font-size: 7px; color: var(--blue); font-weight: 700; white-space: nowrap; }
.preview-p-dot-neutral { background: var(--text-3); }
.preview-p-label-neutral { font-size: 7px; color: var(--text-3); white-space: nowrap; }
.preview-p-buttons { display: flex; gap: 5px; }
.preview-p-btn-teal {
  flex: 1; height: 18px; border-radius: 3px;
  background: var(--teal-l); border: 1px solid #99F6E4;
}
.preview-p-btn-neutral {
  flex: 1; height: 18px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.preview-p-btn-red {
  flex: 1; height: 18px; border-radius: 3px;
  background: var(--red-l); border: 1px solid var(--red-m);
}

/* Specialist metrics */
.preview-metrics-row { display: flex; gap: 4px; }
.preview-metric-card {
  flex: 1; background: var(--surface); border-radius: 3px;
  border: 1px solid var(--border); padding: 5px;
}
.preview-metric-track {
  height: 4px; border-radius: 2px; background: var(--surface-2);
  margin-bottom: 3px; width: 60%;
}
.preview-metric-fill-amber { height: 3px; border-radius: 2px; background: var(--amber); opacity: 0.8; width: var(--w); }
.preview-metric-fill-green { height: 3px; border-radius: 2px; background: var(--green); opacity: 0.8; width: var(--w); }
.preview-metric-fill-red   { height: 3px; border-radius: 2px; background: var(--red); opacity: 0.7; width: var(--w); }

/* Trend bars */
.preview-trend-card {
  background: var(--surface); border-radius: 3px;
  border: 1px solid var(--border); padding: 5px;
}
.preview-trend-label {
  height: 4px; border-radius: 2px; background: var(--surface-2);
  margin-bottom: 5px; width: 40%;
}
.preview-trend-bars { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.preview-trend-bar { flex: 1; border-radius: 1px; height: var(--h); }
.preview-trend-bar-green-dim { background: var(--green); opacity: 0.4; }
.preview-trend-bar-amber-dim { background: var(--amber); opacity: 0.6; }
.preview-trend-bar-amber-dimmer { background: var(--amber); opacity: 0.7; }
.preview-trend-bar-red-dim { background: var(--red); opacity: 0.7; }
.preview-trend-bar-red { background: var(--red); }

/* Deviation rows */
.preview-dev-stack { display: flex; flex-direction: column; gap: 3px; }
.preview-dev-row {
  display: flex; align-items: center; gap: 4px;
  background: var(--amber-l); border-radius: 3px;
  padding: 4px 5px; border: 1px solid var(--amber-m);
}
.preview-dev-indicator { width: 4px; border-radius: 1px; background: var(--amber); align-self: stretch; }
.preview-dev-line { height: 4px; border-radius: 2px; background: var(--amber-m); flex: 1; }
.preview-dev-line-short { width: 70%; }
.preview-dev-btn-blue {
  height: 10px; width: 28px; border-radius: 2px;
  background: var(--blue); opacity: 0.8; flex-shrink: 0;
}
.preview-dev-btn-neutral {
  height: 10px; width: 28px; border-radius: 2px;
  background: var(--surface-2); flex-shrink: 0;
}

/* Deviation card */
.hub-card-wide { grid-column: span 2; }
.preview-tall { height: 200px; }
.preview-tall-inner { height: calc(200px - 24px); display: flex; }
.preview-sidebar-wide { width: 36px; }
.preview-main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Alert header mini */
.preview-dev-hdr-mini {
  background: var(--amber-l); border-bottom: 1px solid var(--amber-m); padding: 7px 10px;
}
.preview-dev-hdr-line { height: 5px; border-radius: 2px; background: var(--amber-m); margin-bottom: 4px; }
.preview-dev-hdr-line-short { width: 75%; }
.preview-badges-row { display: flex; gap: 6px; }
.preview-badge-pill {
  height: 10px; width: 60px; border-radius: 100px;
  background: var(--amber-m); opacity: 0.7;
}
.preview-badge-pill-neutral {
  height: 10px; width: 50px; border-radius: 100px; background: var(--surface-2);
}
.preview-badge-btn {
  height: 10px; width: 50px; border-radius: 3px;
  background: var(--blue); opacity: 0.8;
}

/* Workflow mini */
.preview-wf-strip {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 6px 10px; display: flex; gap: 6px; align-items: center;
}
.preview-wf-dot-done {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}
.preview-wf-line-done { flex: 1; height: 1.5px; background: var(--blue); }
.preview-wf-dot-active {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--blue); flex-shrink: 0;
}
.preview-wf-line-pending { flex: 1; height: 1.5px; background: var(--border); }
.preview-wf-dot-pending {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-2); border: 1.5px solid var(--border); flex-shrink: 0;
}

/* Content split */
.preview-content-split { display: flex; flex: 1; overflow: hidden; }
.preview-left-panel {
  flex: 1; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 6px; overflow: hidden;
}
.preview-evidence-card {
  background: var(--surface); border-radius: 4px;
  border: 1px solid var(--border); padding: 6px;
}
.preview-card-title-short {
  height: 4px; border-radius: 2px; background: var(--surface-2);
  margin-bottom: 4px; width: 40%;
}
.preview-evidence-list { display: flex; flex-direction: column; gap: 4px; }
.preview-evidence-item { display: flex; gap: 5px; align-items: center; }
.preview-ev-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.preview-ev-dot-amber { background: var(--amber-l); border: 1px solid var(--amber-m); }
.preview-ev-dot-teal  { background: var(--teal-l); border: 1px solid #99F6E4; }
.preview-ev-dot-green { background: var(--green-l); border: 1px solid var(--green-m); }
.preview-ev-line { height: 4px; border-radius: 2px; background: var(--surface-2); flex: 1; }
.preview-ev-line-short { width: 75%; }
.preview-ev-line-shorter { width: 60%; }

/* Plan compare */
.preview-plan-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 5px; align-items: center; }
.preview-plan-card-old { background: var(--surface-2); border-radius: 4px; padding: 6px; }
.preview-plan-line { height: 4px; border-radius: 2px; background: var(--border); margin-bottom: 3px; }
.preview-plan-line-short { width: 70%; }
.preview-plan-arrow { font-size: 14px; color: var(--text-3); }
.preview-plan-card-new { background: var(--green-l); border: 1px solid var(--green-m); border-radius: 4px; padding: 6px; }
.preview-plan-line-green { height: 4px; border-radius: 2px; background: var(--green-m); margin-bottom: 3px; }
.preview-plan-line-green-short { width: 80%; }
.preview-actions-row { display: flex; gap: 5px; }
.preview-action-btn-blue {
  flex: 1; height: 16px; border-radius: 3px; background: var(--blue); opacity: 0.8;
}
.preview-action-btn-neutral {
  flex: 1; height: 16px; border-radius: 3px; background: var(--surface-2);
}

/* Right panel mini */
.preview-rp-mini {
  width: 75px; background: var(--surface);
  border-left: 1px solid var(--border); padding: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.preview-rp-line {
  height: 4px; border-radius: 2px; background: var(--surface-2);
}
.preview-rp-line-short { width: 80%; }
.preview-rp-line-shorter { width: 60%; }
.preview-rp-btn-blue {
  height: 14px; border-radius: 2px; background: var(--blue); opacity: 0.7;
}
.preview-rp-btn-neutral { height: 14px; border-radius: 2px; background: var(--surface-2); }
.preview-rp-line-mb { margin-bottom: 2px; }

/* Case study sections */
.hub-section {
  max-width: 1100px; margin: 0 auto;
  padding: 56px 64px 64px;
}
.hub-section-title {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 600; color: #F1F5F9;
  margin-bottom: 20px; line-height: 1.2;
}
.hub-section-body {
  font-size: 15px; color: #94A3B8; line-height: 1.7;
  max-width: 720px; margin-bottom: 28px;
}
.hub-section-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.hub-section-col h4 {
  font-size: 15px; font-weight: 600; color: #F1F5F9;
  margin-bottom: 14px;
}
.hub-section-col ul {
  list-style: none; padding: 0; margin: 0;
}
.hub-section-col li {
  font-size: 14px; color: #94A3B8; line-height: 1.6;
  margin-bottom: 10px; padding-left: 20px; position: relative;
}
.hub-section-col li::before {
  content: '—'; position: absolute; left: 0; color: var(--blue);
}

/* Footer */
.hub-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 64px;
  display: flex; justify-content: space-between;
  align-items: center; max-width: 100%;
}
.hub-footer-copy { font-size: 12px; color: #334155; }
.hub-footer-links { display: flex; gap: 20px; }
.hub-footer-link {
  font-size: 12px; color: #475569;
  text-decoration: none; font-weight: 500;
}
