/* Profile completeness nudges.
 *
 * Three surfaces, one look: the card on your own profile, the dismissible
 * banner on the feed, and the prompt after publishing an article.
 *
 * Kept in its own file rather than base.css because these only render for
 * signed-in users with an unfinished profile.
 */

.pn-card {
  --pn-accent: #ff4500;
  --pn-ink: #1a365d;
  --pn-muted: #6b7280;
  --pn-line: #e9ecef;

  background: #fff;
  border: 1px solid var(--pn-line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pn-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pn-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--pn-ink);
  margin: 0;
}

.pn-card__tier {
  font-size: .86rem;
  color: var(--pn-muted);
}

.pn-card__pct {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pn-accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Track ------------------------------------------------------------------ */
.pn-track {
  height: 8px;
  background: var(--pn-line);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 4px;
}

.pn-track__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a33, var(--pn-accent));
  transition: width .5s ease;
}

.pn-card__blurb {
  font-size: .87rem;
  color: var(--pn-muted);
  margin: 6px 0 0;
}

/* Checklist -------------------------------------------------------------- */
.pn-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pn-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--pn-line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}

.pn-item:hover {
  border-color: var(--pn-accent);
  background: rgba(255, 69, 0, .04);
}

.pn-item__tick {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-top: 1px;
}

.pn-item__body { flex: 1; min-width: 0; }

.pn-item__label {
  display: block;
  font-weight: 600;
  font-size: .91rem;
  color: var(--pn-ink);
}

.pn-item__hint {
  display: block;
  font-size: .81rem;
  color: var(--pn-muted);
  margin-top: 1px;
  line-height: 1.45;
}

.pn-item__weight {
  flex-shrink: 0;
  align-self: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--pn-accent);
  font-variant-numeric: tabular-nums;
}

/* Done state — shown collapsed so progress feels earned, not erased. */
.pn-done {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--pn-muted);
}
.pn-done summary { cursor: pointer; }
.pn-done ul { margin: 8px 0 0; padding-left: 20px; }
.pn-done li { margin-bottom: 3px; }

.pn-card__cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--pn-accent);
  color: #fff;
  border-radius: 9px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.pn-card__cta:hover { background: #cc3700; color: #fff; }

/* Banner (feed) ---------------------------------------------------------- */
.pn-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--pn-line, #e9ecef);
  border-left: 4px solid #ff4500;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pn-banner__ring { flex-shrink: 0; }

.pn-banner__body { flex: 1; min-width: 0; }

.pn-banner__title {
  font-weight: 700;
  font-size: .94rem;
  color: #1a365d;
  margin: 0;
}

.pn-banner__text {
  font-size: .85rem;
  color: #6b7280;
  margin: 2px 0 0;
  line-height: 1.45;
}

.pn-banner__cta {
  flex-shrink: 0;
  padding: 8px 15px;
  background: #ff4500;
  color: #fff;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pn-banner__cta:hover { background: #cc3700; color: #fff; }

.pn-banner__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.pn-banner__close:hover { color: #374151; background: #f3f4f6; }

@media (max-width: 640px) {
  .pn-banner { flex-wrap: wrap; }
  .pn-banner__cta { width: 100%; text-align: center; }
  .pn-card { padding: 16px; border-radius: 12px; }
}
