/* =====================================================================
   GoodWorks — Single Volunteer Profile (public)
   Scoped under .gw-profile. Shares the .container margins and the blue
   card language of the talent directory.
   ===================================================================== */

.gw-profile {
  --pf-ink:    #0f172a;
  --pf-muted:  #64748b;
  --pf-line:   #e7eaf3;
  --pf-brand:  #1d4ed8;
  --pf-brand-dk:#1739a8;
  --pf-surface:#ffffff;
  --pf-bg:     #f5f7fb;
  --pf-green:  #16a34a;
  background: var(--pf-bg);
  padding: 30px 0 64px;
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  color: var(--pf-ink);
}

/* ------------------------------------------------------------- Blocked */
.gw-profile__blocked {
  background: var(--pf-surface); border: 1px solid var(--pf-line);
  border-radius: 18px; padding: 60px 24px; text-align: center; max-width: 460px; margin: 30px auto;
}
.gw-profile__blocked .dashicons { font-size: 40px; width: 40px; height: 40px; color: var(--pf-brand); opacity: .6; }
.gw-profile__blocked h1 { font-size: 1.5rem; margin: 14px 0 6px; }
.gw-profile__blocked p { color: var(--pf-muted); margin: 0 0 20px; }

/* ------------------------------------------------------------- Hero */
.gw-profile__hero {
  background: var(--pf-surface); border: 1px solid var(--pf-line);
  border-radius: 18px; padding: 26px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.gw-profile__hero-main { display: flex; gap: 22px; align-items: center; min-width: 0; }
.gw-profile__avatar {
  width: 104px; height: 104px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--pf-line);
}
.gw-profile__avatar--initials { display: grid; place-items: center; background: var(--pf-brand); color: #fff; font-size: 2rem; font-weight: 800; }

.gw-profile__name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gw-profile__name { font-size: 1.7rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.gw-profile__verified {
  display: inline-flex; align-items: center; gap: 5px;
  background: #e3f7ec; color: var(--pf-green); font-size: .76rem; font-weight: 700;
  padding: 5px 11px; border-radius: 99px;
}
.gw-profile__verified .dashicons { font-size: 14px; width: 14px; height: 14px; }
.gw-profile__tagline { font-size: 1rem; color: #475569; margin: 8px 0 0; }
.gw-profile__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.gw-profile__meta span { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--pf-muted); }
.gw-profile__meta .dashicons { font-size: 16px; width: 16px; height: 16px; }

.gw-profile__hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gw-profile__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-weight: 700; font-size: .88rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.gw-profile__btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.gw-profile__btn--primary { background: var(--pf-brand); color: #fff; }
.gw-profile__btn--primary:hover { background: var(--pf-brand-dk); color: #fff; transform: translateY(-1px); }
.gw-profile__btn--primary.is-copied { background: var(--pf-green); }
.gw-profile__btn--outline { background: #fff; color: var(--pf-ink); border-color: var(--pf-line); }
.gw-profile__btn--outline:hover { border-color: var(--pf-brand); color: var(--pf-brand); }

/* ------------------------------------------------------------- Layout */
.gw-profile__layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start;
}
.gw-profile__col-left, .gw-profile__col-right { display: flex; flex-direction: column; gap: 24px; }

.gw-profile__card {
  background: var(--pf-surface); border: 1px solid var(--pf-line);
  border-radius: 18px; padding: 24px;
}
.gw-profile__card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.gw-profile__card-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 16px; }
.gw-profile__card-head .gw-profile__card-title { margin: 0; }
.gw-profile__link { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 700; color: var(--pf-brand); text-decoration: none; }
.gw-profile__link .dashicons { font-size: 15px; width: 15px; height: 15px; }
.gw-profile__muted { color: var(--pf-muted); font-size: .9rem; margin: 0; }

/* About */
.gw-profile__bio { font-size: .92rem; color: #475569; line-height: 1.65; }
.gw-profile__bio p { margin: 0 0 10px; }
.gw-profile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gw-profile__tag { font-size: .78rem; font-weight: 600; color: #475569; background: #eef2f8; padding: 5px 12px; border-radius: 8px; }

/* Questionnaire / matching answers */
.gw-profile__qa-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--pf-line); }
.gw-profile__qa-block:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.gw-profile__qa-label { font-size: .92rem; font-weight: 800; margin: 0 0 10px; color: var(--pf-ink); }
.gw-profile__qa-text { font-size: .9rem; color: #475569; line-height: 1.55; margin: 0 0 8px; }
.gw-profile__qa-q { font-size: .8rem; font-weight: 700; color: var(--pf-muted); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .02em; }
.gw-profile__qa-dl { margin: 0; display: grid; gap: 10px; }
.gw-profile__qa-dl > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 14px; align-items: baseline; }
.gw-profile__qa-dl dt { font-size: .8rem; font-weight: 700; color: var(--pf-muted); margin: 0; }
.gw-profile__qa-dl dd { font-size: .9rem; color: #334155; margin: 0; }
.gw-profile__qa-block .gw-profile__tags { margin-top: 0; margin-bottom: 10px; }

/* Impact snapshot */
.gw-profile__snapshot {
  background: linear-gradient(155deg, #1d4ed8, #2f64ee);
  color: #fff; border-radius: 18px; padding: 24px;
  box-shadow: 0 14px 30px rgba(29,78,216,.28);
}
.gw-profile__snapshot-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 18px; }
.gw-profile__snapshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.gw-profile__snapshot-stat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 16px; text-align: center; }
.gw-profile__snapshot-num { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.gw-profile__snapshot-cap { font-size: .78rem; color: rgba(255,255,255,.85); }
.gw-profile__level-head { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; margin-bottom: 8px; }
.gw-profile__level-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.gw-profile__level-fill { height: 100%; border-radius: 99px; background: #7dffb3; }

/* Media gallery */
.gw-profile__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gw-profile__media-item, .gw-profile__media-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 4 / 3; border-radius: 12px; text-decoration: none; font-size: .8rem; font-weight: 600;
}
.gw-profile__media-item { background: #0f172a; color: #fff; }
.gw-profile__media-item .dashicons { font-size: 30px; width: 30px; height: 30px; }
.gw-profile__media-add { background: #f1f4fb; border: 1.5px dashed #c3cde6; color: var(--pf-brand); }
.gw-profile__media-add .dashicons { font-size: 24px; width: 24px; height: 24px; }

/* Experience timeline */
.gw-profile__timeline { list-style: none; margin: 0; padding: 0; }
.gw-profile__tl-item { position: relative; padding: 0 0 22px 26px; }
.gw-profile__tl-item:last-child { padding-bottom: 0; }
.gw-profile__tl-item::before {
  content: ""; position: absolute; left: 6px; top: 16px; bottom: -4px; width: 2px; background: var(--pf-line);
}
.gw-profile__tl-item:last-child::before { display: none; }
.gw-profile__tl-dot { position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--pf-brand); }
.gw-profile__tl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gw-profile__tl-role { font-size: 1rem; font-weight: 700; margin: 0; }
.gw-profile__tl-date { font-size: .76rem; font-weight: 600; color: var(--pf-brand); background: #eef2fe; padding: 4px 10px; border-radius: 99px; }
.gw-profile__tl-org { font-size: .88rem; color: var(--pf-brand); font-weight: 600; margin: 3px 0 6px; }
.gw-profile__tl-desc { font-size: .88rem; color: #475569; line-height: 1.55; margin: 0; }

/* Documents */
.gw-profile__docs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gw-profile__doc {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--pf-line); border-radius: 12px; padding: 14px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.gw-profile__doc:hover { border-color: #c9d4f6; background: #fafbff; }
.gw-profile__doc-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.gw-profile__doc-icon.c-blue { background: #eef2fe; color: var(--pf-brand); }
.gw-profile__doc-icon.c-green { background: #e3f7ec; color: var(--pf-green); }
.gw-profile__doc-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gw-profile__doc-name { font-size: .9rem; font-weight: 700; }
.gw-profile__doc-meta { font-size: .76rem; color: var(--pf-muted); }
.gw-profile__doc > .dashicons { color: var(--pf-muted); flex-shrink: 0; }

/* Recent impact history */
.gw-profile__history { display: flex; flex-direction: column; }
.gw-profile__hist-item { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid var(--pf-line); }
.gw-profile__hist-item:first-child { border-top: none; padding-top: 0; }
.gw-profile__hist-icon { width: 38px; height: 38px; border-radius: 50%; background: #e3f7ec; color: var(--pf-green); display: grid; place-items: center; flex-shrink: 0; }
.gw-profile__hist-icon .dashicons { font-size: 18px; width: 18px; height: 18px; }
.gw-profile__hist-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gw-profile__hist-title { font-size: .92rem; font-weight: 700; }
.gw-profile__hist-meta { font-size: .8rem; color: var(--pf-muted); }
.gw-profile__hist-hours { font-size: .85rem; font-weight: 800; color: var(--pf-green); white-space: nowrap; }
.gw-profile__view-all {
  display: block; text-align: center; margin-top: 16px; padding: 12px;
  background: #eef2fe; color: var(--pf-brand); border-radius: 12px; font-weight: 700; font-size: .88rem; text-decoration: none;
}
.gw-profile__view-all:hover { background: #e0e8fd; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 940px) {
  .gw-profile__layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gw-profile__hero { flex-direction: column; }
  .gw-profile__hero-main { flex-direction: column; text-align: center; align-items: center; }
  .gw-profile__meta { justify-content: center; }
  .gw-profile__name-row { justify-content: center; }
  .gw-profile__hero-actions { width: 100%; }
  .gw-profile__btn { flex: 1; justify-content: center; }
  .gw-profile__docs, .gw-profile__media { grid-template-columns: 1fr; }
  .gw-profile__name { font-size: 1.4rem; }
}
