/*
 * Profile system styles — dashboard, wizard, public profiles, model cards.
 * Extends tokens.css + base.css.
 */

/* ── Dashboard ──────────────────────────────────────────────────────────── */

.dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  min-width: 120px;
}

.dash-stat span {
  font-size: var(--text-sm);
  color: var(--muted);
}

.dash-stat b {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-4);
  max-width: 700px;
}

.dash-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4);
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.dash-tile:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.dash-tile-icon {
  font-size: 28px;
  line-height: 1;
}

.dash-tile-label {
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
}

/* ── Wizard ──────────────────────────────────────────────────────────────── */

.wizard-wrap {
  padding: 48px 0 64px;
  max-width: 680px;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}

.wp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: none;
}

.wp-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--bone-3);
  color: var(--muted);
  border: 2px solid var(--line);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.wp-step--active .wp-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.wp-step--done .wp-dot {
  background: var(--success, #2d6a4f);
  border-color: var(--success, #2d6a4f);
  color: #fff;
}

.wp-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.wp-step--active .wp-label {
  color: var(--ink);
  font-weight: 600;
}

.wp-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 var(--sp-2);
  margin-bottom: 18px; /* align with dots */
}

.wizard-card {
  padding: var(--sp-8);
}

.wizard-heading {
  font-size: 28px;
  margin: 0 0 var(--sp-5);
}

.wizard-sub {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: -12px 0 var(--sp-5);
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.review-list {
  margin: 0 0 var(--sp-6);
}

.review-row {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.review-row:last-child {
  border-bottom: none;
}

.review-row dt {
  flex: 0 0 160px;
  font-size: var(--text-sm);
  color: var(--muted);
  text-transform: capitalize;
}

.review-row dd {
  flex: 1;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* ── Form helpers shared across wizard + edit ──────────────────────────── */

.form-section-heading {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}

/* ── Public profile ──────────────────────────────────────────────────────── */

.profile-wrap {
  padding: 48px 0 80px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--sp-8);
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 600px) {
  .profile-hero {
    grid-template-columns: 1fr;
  }
}

.avatar-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
}

.avatar-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-serif);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.profile-bio {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 560px;
}

.profile-rate {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.profile-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

@media (max-width: 760px) {
  .profile-body {
    grid-template-columns: 1fr;
  }
}

/* Measurements sidebar */
.meas-list {
  margin: 0;
}

.meas-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.meas-row:last-child {
  border-bottom: none;
}

.meas-row dt {
  color: var(--muted);
}

.meas-row dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}

.meas-imp {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

/* Photo gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.photo-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-thumb {
  width: 100%;
  height: auto;
  border-radius: var(--rad-sm);
  object-fit: cover;
  aspect-ratio: 4/5;
  background: var(--bone-3);
}

.photo-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

/* ── Model cards ─────────────────────────────────────────────────────────── */

.model-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--rad-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bone-1);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.model-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.model-card__photo {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bone-3);
  overflow: hidden;
}

.model-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-card__no-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-serif);
}

.model-card__state-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .05em;
}

.model-card__info {
  padding: var(--sp-3) var(--sp-4);
}

.model-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-card__meta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

/* Grid wrapper used by search/state listing pages */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-5);
}
