/* === Profil avatar === */

.profile-avatar-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 2px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.85);
  object-fit: cover;
  background: radial-gradient(circle at 30% 30%, #1f2937, #020617);
  display: inline-block;
}

.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 2px dashed rgba(148, 163, 184, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
}

/*.profile-avatar-wrapper small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}*/

/* === Kezdőoldali profilkártya === */

.profile-card {
  margin-top: 1.7rem;
  padding: 1.3rem 1.4rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(30, 64, 175, 0.4);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}

.profile-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at 30% 30%, #1f2937, #020617);
}

.profile-card-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px dashed rgba(148, 163, 184, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(15, 23, 42, 0.9);
}

.profile-card-title {
  font-weight: 600;
  font-size: 1rem;
}

.profile-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-card-meta + .profile-card-meta {
  margin-top: 0.2rem;
}

.profile-card-bio {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.profile-card-actions {
  margin-top: 0.8rem;
  text-align: right;
  font-size: 0.85rem;
}

/* === Fejléc avatar === */
.app-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(191, 219, 254, 0.9);
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at 30% 30%, #1f2937, #020617);
}

/* ===== PROFILOLDAL ELRENDEZÉS – user.php ===== */

/* Külső konténer */
.profile-view {
  max-width: 1100px;
  margin: 1.8rem auto 3rem;
}

/* Felső rész: bal fotó, jobb oldalt bemutatkozás */
.profile-main {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.profile-main-left {
  text-align: left;
}

/* Nagy profilfotó – bal oszlop */
.profile-avatar-big {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffe6ef;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  margin-bottom: 0.6rem;
}

/* Fotók száma a kép alatt */
.profile-photo-count {
  font-size: 0.85rem;
  color: #0f172a;
}

.profile-photo-count-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.85);
}

/* Jobb oldali rész: név, meta, bemutatkozás */
.profile-main-right {
  text-align: left;
  position: relative;   /* + EZ a sor */
}

.profile-main-name {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.profile-main-meta {
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

/* Címsorok a külön blokkokhoz */
.profile-view-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0 0rem;
}
.profile-view-data-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.4 0 0rem;
}

/* Választóvonal a bio és a gombok között */
.profile-section-divider {
  margin: 1.3rem 0 1.3rem;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.profile-data-section-divider {
  width: 100%;
  max-width: 1600px;
  margin: 2.5rem auto 1.9rem auto;
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.4),
    transparent
  );
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.4);
}

/* Gombsor a bemutatkozás alatt */
.profile-actions {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

/* BALRA rendezett helyett: szép, rugalmas sor */
.profile-actions--left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;

  justify-content: center; /* vízszintesen KÖZÉPRE */
}

/* MINDEN gomb azonos magasságú és minimum szélességű */
.profile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  height: 44px; /* azonos magasság */
  min-width: 190px; /* azonos alapszélesség */
  padding: 0 1rem; /* csak oldalra padding */

  border-radius: 999px;
  border: 1px solid #e6397a;
  background: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.profile-action-btn:hover {
  color: #e6397a;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #e6397bc5;
}

/* Lockolt állapot maradhat, csak legyen összhangban */
.profile-action-btn--locked {
  opacity: 0.6;
  cursor: not-allowed;
  color: #7f8794;
}

/* Ikon + szöveg igazítása (ha még nincs benne) */
.profile-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-action-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.profile-action-label {
  white-space: nowrap; /* ne törjön két sorba a felirat */
}

/* kis finom magyarázó szöveg */
.profile-note-locked {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-note-locked {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.6rem;
  row-gap: 0.45rem;
  font-size: 0.95rem;
}

.profile-detail {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.profile-detail-label {
  display: block;
  font-size: 0.95rem; /* kicsit finomabb, kisebb címke */
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
  margin-bottom: 0.12rem;
}

.profile-detail-value {
  display: block;
  font-size: 0.95rem; /* picivel kisebb, mint az alap szöveg */
  color: var(--muted);
}

.profile-detail-value::first-letter {
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .profile-detail-label {
    font-size: 0.7rem;
  }

  .profile-detail-value {
    font-size: 0.9rem;
  }
}

/* RESPONSIVE: mobilon szépen egymás alatt */
@media (max-width: 900px) {
  .profile-main {
    grid-template-columns: 1fr;
  }

  .profile-main-left {
    max-width: 260px;
    margin: 0 auto;
  }

  .profile-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
}

.field-required {
  color: #f97373; /* halvány piros */
  font-weight: 600;
  margin-left: 2px;
  font-size: 0.9em;
}

.profile-onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200000;
}

.profile-onboarding-modal {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.profile-onboarding-modal h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.profile-onboarding-modal p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.profile-onboarding-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-onboarding-btn {
  margin-top: 1rem;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* === Profil oldal: avatar form ne legyen kártya === */

/*.avatar-upload-form {
  max-width: none; 
  padding: 0;
  margin-top: 0.5rem;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}*/

/* === Profil űrlap: szélesebb, 2 oszlopos === */

.profile-form {
  max-width: 520px; /* ugyanaz a szélesség, mint az auth formoknál */
  margin: 2rem auto 3rem; /* középen, kicsit több levegővel */
}

/* === Profil űrlap szekciócímek === */

.profile-section-title {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 1rem;
}

.profile-form .profile-section-title:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* Lépéses profil űrlap */

.profile-step {
  margin-top: 0.75rem;
}

.profile-step-title {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(0, 0, 0, 0.97);
}

.profile-step-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.profile-step-nav button {
  flex: 1;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: var(--accent);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;      /* függőlegesen középen */
  justify-content: center;  /* vízszintesen középen */
}

.profile-step-nav button:hover {
  border-color: var(--accent);
}

/* Lépésen belüli mezők közti térköz */
.profile-step > div {
  margin-bottom: 0.75rem;
}

.profile-steps-indicator {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-align: right;
  color: var(--muted);
}

.profile-steps-indicator span {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Profil-lépés — bevezető szöveg */
.profile-step-intro {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563; /* enyhén sötét szürke, nem fojtós */
  margin-top: 0.5rem;
  margin-bottom: 1.4rem;
  max-width: 62ch; /* ne legyen túl széles egy sor */
}

/* Ha több bekezdés van egymás alatt */
.profile-step-intro p {
  margin: 0 0 0.7rem;
}

/* Ha cím + intro egymás fölött vannak */
.profile-step-title {
  margin-bottom: 0.35rem;
}

/* Mobilon picit kisebb betű, de marad levegős */
@media (max-width: 640px) {
  .profile-step-intro {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
  }
}

.profile-bio-counter {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.languages-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  column-gap: 0.9rem;
  row-gap: 0.25rem;
  margin-top: 0.25rem;
}

.languages-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}

/* === Nyilvános profil (user.php) – Bemutatkozás doboz === */

.profile-main-bio {
  margin-top: 0.75rem;
}

.profile-main-bio p {
  margin-top: 0.5rem;
  padding: 1rem 1.2rem;

  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);

  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);

  max-width: 640px; /* ne terüljön szét teljes szélességben */
  min-height: 130px; /* üresen se essen teljesen össze */
  max-height: 230px; /* kb. 500 karakterhez kényelmes */
  overflow-y: auto; /* ha kicsit hosszabb, belül görgethető */
}

/* opcionális: finom, diszkrét scrollbar */
.profile-main-bio p::-webkit-scrollbar {
  width: 6px;
}
.profile-main-bio p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

/* 🔒 Galéria – lock modal háttér */
.gallery-lock-backdrop {
  display: none; /* JS teszi majd flexre */
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(15, 23, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
}

/* Kicsi plusz igazítás a lock ikonnak és gombnak */
.gallery-lock-dialog {
  text-align: center;
}

.gallery-lock-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.gallery-lock-button {
  margin-top: 1rem;
  min-width: 130px;
}

/* Egységes kép-feltöltő blokk – profil + galéria, kártya nélkül */
/* Profilkép feltöltő – igazodjon a profil kártya szélességéhez */
.avatar-upload-form {
  max-width: 520px; /* ugyanaz, mint .profile-form */
  margin: 1rem auto 2rem; /* avatar alatt kicsit lejjebb, alul több levegő */
  text-align: left;
  font-size: 0.9rem;

  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.avatar-upload-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.avatar-upload-form input[type="file"] {
  display: block;
  width: 100%;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.avatar-upload-form small {
  display: block;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.gallery-bulk-form {
  margin: 1.25rem auto 0; /* középre hozza a formot, felül kis térköz */
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center; /* a gombot középre igazítja */
}

.gallery-thumb-wrapper {
  position: relative;
}

.gallery-select {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e11d48; /* szép piros pipa modern böngészőkben */
}

.profile-main {
  position: relative;
}

/* 3 pöttyös menü */
.profile-menu-dots {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}

.profile-menu-trigger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff00;
  cursor: pointer;
}

.profile-menu-trigger span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #0f172a;
}

.profile-menu-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  min-width: 170px;
  padding: 0.25rem 0;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  display: none;
}

.profile-menu-item {
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: #f9fafb;
}

