/* =====================================================================
   PROFILOM (profil.php) – a napló stílusára épül (naplo.css)
   ===================================================================== */

.pf-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pf-main > h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); font-weight: 600; }

.pf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.pf-avatar {
  width: 128px;
  height: 128px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--av, #5c7fa8);
  color: #fff;
  font-size: 52px;
  font-weight: 650;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--gold) 55%, transparent);
}

.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-head-copy { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-name { margin: 0; font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
.pf-meta { margin: 0; color: var(--muted); font-size: 14px; }
.pf-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pf-photo-btns .btn, .pf-form .btn, .pf-guest .btn, .pf-account .btn, .pf-reading .btn { min-height: 44px; }
.pf-hint { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pf-msg { margin: 0; font-size: 14px; color: var(--danger); }
.pf-msg:empty { display: none; }
.pf-msg.is-ok, .nl-form-msg.is-ok { color: var(--success); }

.pf-form { display: flex; flex-direction: column; gap: 14px; }
.pf-form h2, .pf-reading h2, .pf-account h2 { margin: 0; }
.pf-form input[readonly] { opacity: .65; }

.pf-private {
  margin: 4px 0 0;
  padding: 14px 16px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-private legend { padding: 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.pf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .pf-row { grid-template-columns: minmax(0, 1fr); } }

.nl-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.nl-field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }

.pf-reading { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pf-reading > * { align-self: stretch; }
.pf-reading > .btn { align-self: flex-start; }
.pf-stats { margin: 0; color: var(--muted); }
.pf-stats b { color: var(--text); }
.pf-books { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.pf-books a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.pf-books a:hover { background: var(--accent-soft); }
.pf-books .book3d { align-self: center; border-radius: 2px 4px 4px 2px; }
.pf-books img, .pf-cover-ph { display: block; width: 48px; height: 72px; flex: none; border-radius: 2px 4px 4px 2px; object-fit: cover; box-shadow: 0 1px 3px rgba(0, 0, 0, .18), 0 6px 12px -5px rgba(0, 0, 0, .35); }
.pf-cover-ph { background: linear-gradient(160deg, var(--cover-ph-a), var(--cover-ph-b)); }
.pf-book-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-book-title { font-weight: 600; }
.pf-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.pf-books small { color: var(--muted); font-size: 12.5px; }

.pf-account p { margin: 0 0 10px; line-height: 1.55; }
.pf-guest p { margin: 0 0 14px; }

/* Fotó kivágása */
.pf-dialog {
  width: min(640px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.pf-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
.pf-dialog::backdrop { background: var(--scrim); }
.pf-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-dialog-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.pf-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pf-dialog-actions .btn { min-height: 44px; }
.image-crop-stage { width: 100%; height: min(56dvh, 440px); min-height: 180px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.image-crop-stage > img { display: block; max-width: 100%; }
.image-crop-tools { display: flex; justify-content: center; gap: 10px; }
.image-crop-tools .btn { min-width: 44px; min-height: 44px; }
/* Kör alakú kivágókeret: így látszik, mi kerül a profilképre. */
.pf-dialog .cropper-view-box, .pf-dialog .cropper-face { border-radius: 50%; }

/* ===== Értesítések e-mailben ===== */
.pf-switches { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pf-switch { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pf-switch:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.pf-switch:has(input:checked) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.pf-switch input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.pf-switch span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-switch b { font-weight: 600; }
.pf-switch small { color: var(--muted); font-size: 13px; line-height: 1.45; }
