/* HUB LAYOUT */

.hub-layout {
    flex-direction: column;
    gap: 16px;
}

/* Header bar */
.hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.hub-logo {
    font-weight: 700;
    font-size: 18px;
}

.hub-search {
    flex: 1;
    max-width: 420px;
    margin: 0 24px;
}

.hub-search input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
    font-size: 14px;
}

.hub-user-name {
    font-size: 14px;
    font-weight: 500;
}

/* Intro text */
.hub-intro {
    padding: 0 4px;
}

.hub-intro h1 {
    margin: 8px 0 4px;
    font-size: 20px;
    font-weight: 600;
}

.hub-intro p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Grid with 5 zones */
.hub-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr;
    grid-auto-rows: minmax(220px, auto);
    gap: 16px;
}

/* Basic card style reused from earlier */
.hub-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
}

.hub-card h2 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

/* Pulse card: tall on the left */
.hub-pulse {
    grid-row: 1 / span 2;
}

/* My project: big central card */
.hub-project {
    grid-row: 1 / span 2;
}

.hub-placeholder {
    flex: 1;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
    background: #f9fafb;
    padding: 10px;
    font-size: 13px;
    color: #6b7280;
}

/* Primary button inside project card */
.hub-btn-primary {
    align-self: flex-start;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* Q&A, resources, learning (right column & bottom right) */
.hub-qa,
.hub-resources,
.hub-learning {
    font-size: 13px;
}

/* Tags / pills in Q&A card */
.hub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.hub-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    text-decoration: none;
}

/* Lists of links */
.hub-links {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}

.hub-links li {
    margin-bottom: 4px;
}

.hub-links a {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.hub-links a:hover {
    text-decoration: underline;
}

/* Simple responsiveness: stack on small screens */
@media (max-width: 960px) {
    .hub-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .hub-pulse,
    .hub-project {
        grid-row: auto;
    }
}
.hub-project-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid #dbe5e0;
  background: #f8fffb;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
}

.hub-btn-secondary {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #42c97b;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
}

.hub-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.5rem 2.5rem;
  margin: 1.2rem 0 1.4rem;
}

.hub-kpi {
  text-align: center;
}

.hub-kpi-circle {
  width: 90px;
  height: 90px;
  margin: 0 auto 0.4rem;
}

.kpi-ring {
  width: 100%;
  height: 100%;
}

.kpi-ring-bg {
  fill: none;
  stroke: #e5f0f5;
  stroke-width: 3.2;
}

.kpi-ring-progress {
  fill: none;
  stroke: #124a8a;
  stroke-width: 3.2;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}

.kpi-ring-text {
  fill: #124a8a;
  font-size: 0.45rem;
  text-anchor: middle;
  dominant-baseline: middle;
}

.hub-kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.hub-kpi-target {
  font-size: 0.7rem;
  color: #6f7a88;
}

.hub-project-updated {
  font-size: 0.8rem;
  color: #6f7a88;
  margin-bottom: 0.8rem;
}

.hub-btn-primary {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  background: #27b36a;
  color: white;
  font-size: 0.85rem;
  text-decoration: none;
}
.hub-pulse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hub-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-size: 0.8rem;
}

.hub-pulse-respondents {
  font-size: 0.8rem;
  color: #666;
}

.hub-pulse-scores {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.hub-pulse-score .value {
  font-size: 1.8rem;
  font-weight: 600;
  color: #287f7b;
}

.hub-pulse-score .label {
  font-size: 0.8rem;
  color: #777;
}

.hub-pulse-questions {
  margin-bottom: 1rem;
}

.hpq-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.hpq-label {
  width: 2rem;
  font-size: 0.8rem;
  color: #555;
}

.hpq-bar {
  flex: 1;
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #f2f2f5;
}

.hpq-seg:nth-child(1) { background: #f7b5b5; }
.hpq-seg:nth-child(2) { background: #fcd6a4; }
.hpq-seg:nth-child(3) { background: #f5e9b8; }
.hpq-seg:nth-child(4) { background: #add8b1; }
.hpq-seg:nth-child(5) { background: #9fa5ff; }

.hub-btn-link {
  font-size: 0.85rem;
  color: #287f7b;
  text-decoration: none;
}

.hub-qa-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.hub-qa-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* colored topic chips */
.hub-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hub-chip-1 { background: #ffb3b0; color: #5a1b16; }
.hub-chip-2 { background: #ffd36b; color: #5a3b04; }
.hub-chip-3 { background: #cfe6ff; color: #10325c; }

.hub-qa-questions {
  margin-bottom: 1.1rem;
}

.hub-qa-question {
  font-size: 0.85rem;
  padding: 0.35rem 0.1rem;
  color: #111827;
}

/* CTA button like in your mockup */
.hub-qa-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #111827;
  text-decoration: none;
  color: #111827;
  font-size: 0.8rem;
  font-style: italic;
  background: #ffffff;
  box-shadow: 0 3px 0 #111827;
}

.hub-qa-cta-icon {
  font-style: normal;
}

.hub-qa-empty {
  font-size: 0.8rem;
  color: #9ca3af;
}
