/* ==========================================================================
   Asherfield — Public User Profile Page (/u/{username}/)
   ========================================================================== */

.ash-profile-page {
  background: #faf9f5;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 96px);
  min-height: 60vh;
}

.ash-profile-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ── Header card ──────────────────────────────────────────────────────────── */

.ash-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #dad9d4;
  margin-bottom: 36px;
}

.ash-profile-avatar-wrap {
  flex-shrink: 0;
}

.ash-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #dad9d4;
  object-fit: cover;
  display: block;
}

.ash-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.ash-profile-name {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #3d3929;
  letter-spacing: -0.025em;
}

.ash-profile-since {
  margin: 0;
  font-size: 0.875rem;
  color: #7a7568;
}

.ash-profile-bio {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  color: #7a7568;
  line-height: 1.55;
  max-width: 560px;
}

/* ── Profile meta top row (name + follow button) ─────────────────────────── */

.ash-profile-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */

.ash-profile-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.875rem;
  color: #7a7568;
}

.ash-profile-stats strong {
  font-weight: 700;
  color: #3d3929;
}

.ash-profile-stat-sep {
  color: #dad9d4;
}

/* ── Follow button ────────────────────────────────────────────────────────── */

.ash-follow-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #c96442;
  background: #c96442;
  color: #fff;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.ash-follow-btn:hover {
  opacity: 0.88;
}

.ash-follow-btn--following {
  background: transparent;
  color: #7a7568;
  border-color: #dad9d4;
}

.ash-follow-btn--following:hover {
  background: #faf9f5;
  border-color: #7a7568;
  opacity: 1;
}

.ash-follow-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ── Section heading ──────────────────────────────────────────────────────── */

.ash-profile-section-title {
  margin: 0 0 20px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #3d3929;
  letter-spacing: -0.015em;
}

/* ── Listing grid ─────────────────────────────────────────────────────────── */

.ash-profile-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Individual listing card */
.ash-profile-listing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #dad9d4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}

.ash-profile-listing-card:hover {
  box-shadow: 0 4px 18px rgba(61, 57, 41, 0.08);
  transform: translateY(-2px);
}

.ash-profile-listing-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ede9de;
}

.ash-profile-listing-card__img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ede9de;
  font-size: 1.75rem;
  color: #dad9d4;
}

.ash-profile-listing-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ash-profile-listing-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3d3929;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ash-profile-listing-card__price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c96442;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.ash-profile-empty {
  font-size: 0.9375rem;
  color: #7a7568;
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
  .ash-profile-header {
    flex-direction: column;
    gap: 16px;
  }

  .ash-profile-listing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .ash-profile-listing-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ash-profile-listing-card {
    transition: none;
  }

  .ash-profile-listing-card:hover {
    transform: none;
  }
}

/* ── Banner ───────────────────────────────────────────────────────────────── */

.ash-profile-banner {
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  height: 200px;
}

.ash-profile-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ash-profile-header--has-banner {
  margin-top: -20px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  padding: 20px 24px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ── Name + badges row ────────────────────────────────────────────────────── */

.ash-profile-name-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */

.ash-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.ash-profile-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ash-profile-badge--verified {
  background: #e8f5ff;
  color: #0066cc;
  border: 1px solid #bde0ff;
}

.ash-profile-badge--top {
  background: #fff8e1;
  color: #7a4a10;
  border: 1px solid #fcd34d;
}

.ash-profile-badge--founding {
  background: #f0f5eb;
  color: #1f6f43;
  border: 1px solid #c3ddb3;
}

/* ── Tagline ──────────────────────────────────────────────────────────────── */

.ash-profile-tagline {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #5a5550;
  font-style: italic;
  line-height: 1.4;
}

/* ── Social links ─────────────────────────────────────────────────────────── */

.ash-profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.ash-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: #5a5550;
  transition: color 0.15s;
}

.ash-social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ash-social-link--instagram:hover { color: #e1306c; }
.ash-social-link--facebook:hover  { color: #1877f2; }
