/* ── Profile Page ── */

.profile-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.profile-inner {
  max-width: 360px;
  width: 100%;
  text-align: center;
}

/* Annotation-style prompt */
.profile-prompt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-normal);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}
.profile-prompt-arrow {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-top: 4px;
  color: var(--color-text-tertiary);
}

/* Paper card */
.profile-card {
  background: #fffef9;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-modal);
  transform: rotate(-0.3deg);
  position: relative;
  padding: 35px 22px 18px;
  margin-bottom: 16px;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    transparent,
    transparent 31px,
    #e8e4db 31px,
    #e8e4db 32px
  );
  opacity: 0.35;
  pointer-events: none;
  border-radius: var(--radius-sm);
  z-index: 0;
}
.profile-card > * {
  position: relative;
  z-index: 1;
}

/* Avatar section */
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-avatar-circle {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Hover overlay inside avatar — Change button */
.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-circle);
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-fast);
  padding-top: 20px;
}
.profile-avatar-overlay-btn,
.profile-avatar-overlay-remove {
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.profile-avatar-overlay-btn {
  pointer-events: none;
  --btn-bg: rgba(255,255,255,0.1);
  --btn-bg-hover: rgba(255,255,255,0.2);
  --btn-color: #fff;
  --btn-border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
}
.profile-avatar-overlay-remove {
  font-size: var(--text-3xs);
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  pointer-events: none;
  margin-top: 10px;
}
.profile-avatar-overlay-remove:hover {
  color: #fff;
}
.profile-avatar-circle:hover .profile-avatar-overlay {
  background: rgba(0, 0, 0, 0.45);
}
.profile-avatar-circle:hover .profile-avatar-overlay-btn,
.profile-avatar-circle:hover .profile-avatar-overlay-remove {
  opacity: 1;
  pointer-events: auto;
}

.profile-avatar-circle--empty {
  background: var(--color-white);
  border: 2px dashed var(--color-border);
}
.profile-avatar-circle--empty .profile-avatar-initials {
  color: var(--color-text-tertiary);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-initials {
  color: var(--color-white);
  font-size: 48px;
  font-weight: var(--weight-semibold);
  letter-spacing: 1px;
}

/* Photo action buttons — stacked, centered */
.profile-photo-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.profile-photo-buttons label {
  cursor: pointer;
}

.profile-remove-link {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition-fast);
}
.profile-remove-link:hover {
  color: var(--color-danger);
}

/* Info */
.profile-info {
  margin-bottom: 0;
}

.profile-name-field {
  position: relative;
  display: inline-block;
  width: 100%;
}

.profile-name-pencil {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--color-border);
  pointer-events: none;
}

.profile-card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 10px;
  margin-top: 10px;
  text-align: center;
  visibility: hidden;
}
.profile-card-footer.is-visible {
  visibility: visible;
}

.profile-name-input {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  border: none;
  border-bottom: 1.5px solid transparent;
  background: transparent;
  padding: 2px 4px;
  width: 100%;
  transition: border-color var(--transition-fast);
  border-radius: 0;
  -webkit-appearance: none;
}
.profile-name-input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.profile-name-save {
  margin-top: 8px;
}

.profile-joined {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin: 0 0 6px;
}

.profile-email {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin: 0 0 10px;
}

.profile-role-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--color-white);
  margin-bottom: 6px;
}
.profile-role-badge--host {
  background: var(--color-accent);
}
.profile-role-badge--steward {
  background: var(--color-sage-dark);
}

/* Actions */
.profile-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

/* ── Photo Banner (process page) ── */

.photo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: rgba(79, 109, 122, 0.08);
  border: 1px solid rgba(79, 109, 122, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 16px;
  margin-top: 6px;
  margin-bottom: 0;
  text-decoration: none;
  transition: background var(--transition-fast);
}
.photo-banner:hover {
  background: rgba(79, 109, 122, 0.14);
}

.photo-banner-text {
  font-size: var(--text-xs);
  color: var(--color-accent);
  line-height: 1.4;
}

.photo-banner-arrow {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
