/* HarborBeat — Civic features: petitions + author profiles. Apple-clean. */

/* ---- Petition progress bar ---- */
.hb-petition-bar {
  position: relative;
  width: 100%;
  height: 12px;
  background: var(--bg-2, #f5f5f7);
  border-radius: 999px;
  overflow: hidden;
}
.hb-petition-bar-sm { height: 8px; }
.hb-petition-fill {
  display: block;
  height: 100%;
  background: var(--blue, #0071e3);
  border-radius: 999px;
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}
.hb-petition-progress { margin: 1.25rem 0 .5rem; }
.hb-petition-stats {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-size: .9rem;
  color: var(--muted, #6e6e73);
}
.hb-petition-signed strong { color: var(--ink, #1d1d1f); font-size: 1.05rem; }

/* ---- Petition single ---- */
.hb-petition-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink, #1d1d1f);
  margin-bottom: .5rem;
}
.hb-petition-body { line-height: 1.7; }
.hb-petition-signers { border-top: 1px solid var(--line, #e5e5e7); padding-top: 1.25rem; }
.hb-signer-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.hb-signer-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line, #e5e5e7);
}
.hb-signer-list li:last-child { border-bottom: 0; }
.hb-signer-name { color: var(--ink, #1d1d1f); font-weight: 500; }

/* ---- Petition cards (index) ---- */
.hb-petition-list { display: grid; gap: 1rem; }
.hb-petition-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line, #e5e5e7);
  border-radius: var(--r-lg, 18px);
  padding: 1.25rem 1.5rem;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.hb-petition-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  border-color: #d2d2d7;
  transform: translateY(-2px);
}
.hb-petition-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink, #1d1d1f);
  margin: 0 0 .35rem;
  letter-spacing: -.01em;
}
.hb-petition-card-dek { color: var(--muted, #6e6e73); font-size: .92rem; margin-bottom: .9rem; }
.hb-petition-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--muted, #6e6e73);
}
.hb-petition-card-meta strong { color: var(--ink, #1d1d1f); }
.hb-petition-hood {
  background: var(--bg-2, #f5f5f7);
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
}

/* ---- Create form widget ---- */
.hb-petition-create .hb-mini-label,
.hb-mini-label {
  display: block;
  font-size: .75rem;
  color: var(--muted, #6e6e73);
  margin-bottom: .2rem;
}

/* ---- Author profile header ---- */
.hb-author-head {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line, #e5e5e7);
}
.hb-author-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2, #f5f5f7);
}
.hb-author-avatar-initial {
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--blue, #0071e3);
}
.hb-author-info { flex: 1 1 auto; min-width: 0; }
.hb-author-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink, #1d1d1f);
  margin: 0 0 .5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.hb-author-badge {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue, #0071e3);
  background: rgba(0,113,227,.1);
  padding: .2rem .6rem;
  border-radius: 999px;
}
.hb-author-bio { color: var(--ink, #1d1d1f); max-width: 60ch; line-height: 1.55; margin-bottom: .75rem; }
.hb-author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: .9rem;
  color: var(--muted, #6e6e73);
  margin-bottom: 1rem;
}
.hb-author-karma { color: var(--green, #1c8a4e); font-weight: 600; }
.hb-author-link { color: var(--blue, #0071e3); text-decoration: none; }
.hb-author-link:hover { text-decoration: underline; }
.hb-author-follow.active {
  background: var(--bg-2, #f5f5f7);
  color: var(--ink, #1d1d1f);
}

@media (max-width: 575px) {
  .hb-author-head { flex-direction: column; align-items: center; text-align: center; }
  .hb-author-meta { justify-content: center; }
}
