/* Home page */
.page-home .site-wrapper {
  max-width: 640px;
}

.profile-hero {
  position: relative;
  margin: 0 -16px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.profile-hero__banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a0a12 0%, #0d0d12 40%, #050508 100%);
}

.profile-hero__banner--placeholder {
  display: block;
  background:
    linear-gradient(180deg, rgba(196,30,58,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1a0a12, #050508);
}

.profile-hero__body {
  position: relative;
  padding: 0 20px 24px;
  margin-top: -48px;
  text-align: center;
}

.profile-hero__avatar-wrap {
  display: inline-block;
  position: relative;
  margin-bottom: 12px;
}

.profile-hero__avatar-wrap--rotate {
  overflow: hidden;
  border-radius: 50%;
  width: 96px;
  height: 96px;
}

.profile-hero__avatar-wrap--rotate .profile-hero__avatar {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.profile-hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-deep);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  background: var(--bg-elevated);
}

.profile-hero__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.profile-hero__name {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-hero__username-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.profile-hero__bio {
  margin: 0 auto 20px;
  max-width: 360px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.home-posts-section {
  margin-bottom: 28px;
}

.home-posts-section .post-grid {
  margin-bottom: 20px;
}

.home-posts-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .profile-hero__banner { height: 200px; }
  .profile-hero__avatar { width: 112px; height: 112px; }
  .profile-hero { margin: 0; border-radius: var(--radius); }
}

@media (min-width: 1200px) {
  .page-home .site-wrapper { max-width: 935px; }
}
