/* Hirentra Build 19 Phase 2.4D RC1 FIX3 — executive project portfolio */
.project-portfolio-section {
  margin: 18px 0 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 45%),
    var(--surface-2);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

.project-portfolio-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.project-portfolio-heading > div { display: grid; gap: 3px; }
.project-portfolio-heading span {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .13em;
}
.project-portfolio-heading h2 { margin: 0; font-size: 21px; }
.project-portfolio-heading p { margin: 0; color: var(--muted); font-size: 12px; }

.project-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-health-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.project-health-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--health-accent, var(--green));
}
.project-health-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
}
.project-health-card.critical { --health-accent: var(--red); }
.project-health-card.attention { --health-accent: var(--yellow); }
.project-health-card.healthy { --health-accent: var(--green); }

.project-health-head,
.project-health-open {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-health-head { justify-content: space-between; }
.project-health-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.project-health-pill {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--health-accent);
  background: color-mix(in srgb, var(--health-accent) 12%, transparent);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}

.project-health-value { display: block; margin-top: 13px; font-size: 23px; line-height: 1; }
.project-health-meta,
.project-health-share { display: block; margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.project-health-share { color: var(--health-accent); font-weight: 850; }
.project-health-signals { display: grid; gap: 5px; margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.project-health-signal { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 10px; }
.project-health-signal i { flex: 0 0 auto; width: 14px; font-style: normal; font-weight: 950; color: var(--green); }
.project-health-signal.problem i { color: var(--health-accent); }
.project-health-signal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-health-open { justify-content: space-between; color: var(--health-accent); font-size: 9px; font-weight: 950; letter-spacing: .05em; }

html[data-theme="light"] .project-portfolio-section,
html[data-theme="light"] .project-health-card {
  background-color: #fff;
  color: #0f172a;
  border-color: rgba(15,23,42,.10);
}
html[data-theme="light"] .project-portfolio-section {
  background: linear-gradient(135deg, rgba(255,193,7,.06), transparent 46%), #f7f9fc;
}

@media (max-width: 1250px) {
  .project-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .project-portfolio-section { padding: 15px; }
  .project-portfolio-heading { align-items: stretch; flex-direction: column; }
  .project-portfolio-grid { grid-template-columns: 1fr; }
}
