/* =========================================================
   Solar Neighborhood Page Styles
   ========================================================= */

.nb-hero {
  padding-top: calc(var(--header-height) + var(--space-6));
  padding-bottom: var(--space-6);
  background: var(--color-primary);
  color: #fff;
}

.nb-hero .eyebrow { color: var(--color-accent-light); }
.nb-hero .eyebrow::before { background: var(--color-accent-light); }
.nb-hero h1 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--space-2); }
.nb-hero p { color: rgba(246,248,251,0.75); max-width: 560px; margin-bottom: var(--space-5); }

.nb-hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.nb-layout {
  grid-template-columns: 2fr 1fr;
  align-items: start;
  margin-block: var(--space-7);
}

.nb-grid {
  grid-template-columns: repeat(2, 1fr);
}

.nb-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nb-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.nb-card__name { font-size: var(--fs-md); margin-bottom: 2px; }
.nb-card__city { font-size: var(--fs-xs); color: var(--text-muted); }

.nb-card__progress-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nb-progress-ring text { font-size: 13px; font-weight: 800; fill: var(--color-primary); }

.nb-card__count {
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--color-primary);
}
.nb-card__count span { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }

.avatar-row {
  display: flex;
}
.avatar-row span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  border: 2px solid var(--color-surface);
  margin-inline-start: -8px;
  font-weight: 700;
}
.avatar-row span:first-child { margin-inline-start: 0; }

.nb-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-color);
}

/* Activity sidebar */
.activity-card ul { display: flex; flex-direction: column; gap: var(--space-4); }
.activity-item { display: flex; gap: var(--space-3); font-size: var(--fs-sm); }
.activity-item__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-item time { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }

.create-card { margin-top: var(--space-5); }

/* Join success state */
.join-success { display: none; text-align: center; }
.join-success.is-active { display: block; }

@media (max-width: 960px) {
  .nb-layout { grid-template-columns: 1fr; }
  .nb-grid { grid-template-columns: 1fr; }
}


/* Dynamic cards must stay visible after AJAX inject */
.nb-grid .nb-card[data-reveal] {
  opacity: 1;
  transform: none;
}


.nb-hero {
  background: linear-gradient(145deg, #0f2744, #1a3a5c);
  color: #fff;
  padding: var(--space-8) 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: var(--space-6);
}
.nb-hero .eyebrow { color: rgba(255,255,255,0.7); }
.nb-hero h1 { color: #fff; }
.nb-hero p { color: rgba(255,255,255,0.82); }
.nb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-5); }
.nb-hero .btn-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,0.65) !important;
  background: transparent !important;
}
.nb-hero .btn-outline:hover {
  background: rgba(255,255,255,0.12) !important;
}
