/* myprofile/page.css */

#page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
}


/* ── Avatar header ───────────────────────────────────── */
.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 28px;
}

.profile-avatar__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar__name {
  font-size: 20px;
  font-weight: 600;
  color: var(--label);
  text-align: center;
}

/* ── Table sections ─────────────────────────────────── */
.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.profile-section {
  margin-bottom: 28px;
}

.profile-section-header {
  font-size: 13px;
  font-weight: 400;
  color: var(--label-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 4px 6px;
}

.profile-table {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.profile-row {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  gap: 12px;
  position: relative;
}

.profile-row + .profile-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--separator);
}

.profile-row__label {
  font-size: 16px;
  color: var(--label);
  min-width: 120px;
  flex-shrink: 0;
}

.profile-row__value {
  flex: 1;
  font-size: 16px;
  color: var(--label-3);
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row__value--mono {
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
  white-space: normal;
  text-align: right;
}

.profile-row--destructive {
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
}
.profile-row--destructive .profile-row__label { color: var(--destructive); min-width: unset; }
.profile-row--destructive:active { background: var(--destructive-bg); }

/* ── Spacer fills remaining height ──────────────────── */
.profile-spacer { flex: 1; }

/* ── Redesign (2026-10) ───────────────────────────────────────────────────── */


.profile-avatar {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 26px;
  margin-bottom: 26px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(43, 136, 235, .5), transparent 60%),
    linear-gradient(150deg, var(--ink-2), var(--ink));
  box-shadow: 0 14px 32px rgba(28, 28, 46, .22);
}
.profile-avatar__circle {
  width: 76px;
  height: 76px;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .12);
}
.profile-avatar__who { min-width: 0; }
.profile-avatar__name {
  color: #fff;
  text-align: left;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.profile-avatar__email {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-section-header {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .09em;
  padding: 0 6px 9px;
}
.profile-table {
  border-radius: var(--radius-card);
  border: 1px solid var(--separator);
}
.profile-row { min-height: 56px; padding: 14px 20px; }
.profile-row + .profile-row::before { left: 20px; right: 20px; height: 1px; }
.profile-row__label { font-size: 15.5px; color: var(--label-3); }
.profile-row__value { font-size: 15.5px; color: var(--label); font-weight: 650; }
.profile-row__value img[src*="apple-logo"] { width: 16px; height: 16px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .profile-row__value img[src*="apple-logo"] { filter: invert(1); }
}
@media (max-width: 520px) {
  .profile-avatar { padding: 20px; gap: 16px; }
  .profile-avatar__circle { width: 60px; height: 60px; font-size: 22px; }
  .profile-avatar__name { font-size: 21px; }
}
