/* holypuzzle.com's /{lang}/profile. Uses the color tokens and button styles from jigsawfun/puzzle.css. */
.hp-profile-title { margin: 8px 0 4px; font-size: 26px; text-align: center; }
.hp-profile { width: 100%; max-width: 480px; }

.hp-profile-status {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 20px; text-align: center;
}
.hp-profile-status p { margin: 0; }
.hp-profile-status-title { font-weight: 600; }
.hp-profile-status-title:empty, .hp-profile-status-text:empty { display: none; }
.hp-profile-status-text { color: var(--muted); margin-top: 6px !important; }

.hp-profile-card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; box-shadow: var(--shadow);
}
.hp-profile-card[hidden], .hp-profile-status[hidden] { display: none; }

.hp-profile-who { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; min-width: 0; }
.hp-profile-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#profile-form-picture { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }

.hp-field { display: flex; flex-direction: column; gap: 6px; }
.hp-field-label { font-weight: 600; font-size: 14px; }
.hp-field input {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 100%;
}
.hp-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp-field input[aria-invalid="true"] { border-color: #dc2626; }
.hp-field-hint { color: var(--muted); font-size: 13px; }
.hp-field-message { font-size: 13px; font-weight: 600; min-height: 1.5em; }
.hp-field-message.ok { color: #15803d; }
.hp-field-message.error { color: #dc2626; }
@media (prefers-color-scheme: dark) {
  .hp-field-message.ok { color: #4ade80; }
  .hp-field-message.error { color: #f87171; }
  .hp-field input[aria-invalid="true"] { border-color: #f87171; }
}

.hp-profile-actions { display: flex; justify-content: flex-end; }
.hp-profile-actions button { padding: 8px 18px; font-weight: 600; }

/* A user's public page, /{lang}/my-puzzle/{slug}: their picture and name over their pictures, in the
   masonry grid and cards from my-pictures/my-pictures.css */
.hp-user-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px 0 22px; text-align: center; }
.hp-user-head h1 { margin: 0; font-size: 26px; overflow-wrap: anywhere; }
.hp-user-picture {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--accent);
}
.hp-user-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 14px; }
.hp-user-pictures { width: min(1100px, 100%); }

/* The profile page's link to the public page */
.hp-profile-public {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; border-radius: 10px; background: var(--bg);
  font-size: 14px; color: var(--muted); overflow-wrap: anywhere;
}
.hp-profile-public[hidden] { display: none; }
.hp-profile-public p { margin: 0; }
.hp-profile-public a { color: var(--accent); font-weight: 600; }
.hp-profile-share {
  display: inline-flex; align-items: center; gap: 6px;
  border-color: var(--accent); color: var(--accent); background: var(--panel); font-weight: 600;
}
.hp-profile-share svg { width: 15px; height: 15px; }
.hp-profile-share:hover, .hp-profile-share.copied { background: var(--accent-soft); }
