/* ==========================================================================
   Profile Page - User Profile Styles
   ========================================================================== */

/* ===== Profile Page (current user) ===== */

.profile-page {
  /* 좌우 패딩은 main에서 처리 */
}

.profile-page__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 64px;
  gap: var(--spacing-list-md);
}

.profile-page__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-section);
}

.profile-page__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-page__name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.profile-page__username {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
}

.profile-page__bio {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  text-align: left;
}

.profile-page__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--color-fill-dark);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  margin-right: var(--spacing-1);
}

/* ===== Profile Edit Page ===== */

.profile-edit-page {
  /* 좌우 패딩은 main에서 처리 */
  padding-top: var(--spacing-section-gap);
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--spacing-page-bottom);
}

.profile-edit-page__avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-list-sm);
  margin-bottom: var(--spacing-section-gap);
}

.profile-edit-page__avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.profile-edit-page__avatar-wrapper {
  position: relative;
}

.profile-edit-page__avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.15);
  color: var(--color-text-inverse);
}

.profile-edit-page__username {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: var(--letter-spacing-tight);
}

.profile-page .settings-item {
  padding: var(--spacing-6) var(--spacing-section);
}

/* ===== Visitor Profile ===== */

.visitor-profile__follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--btn-icon-size);
  margin-top: var(--spacing-1);
  margin-bottom: var(--spacing-4);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease;
  /* Follow (default) — primary style */
  background: var(--color-fill-dark);
  color: var(--color-bg-white);
}

.visitor-profile__follow-btn:active {
  transform: scale(0.96);
}

/* Following — secondary style (same as Joined) */
.visitor-profile__follow-btn--following {
  background: var(--color-border-soft);
  color: var(--color-text-primary);
}

/* Visitor Item Container (no swipe) */
.visitor-item-container {
  background: transparent;
}
