/* Lumorra – fotó-feltöltés (styles.css tokenekre építve) */

.foto-wrap { max-width: 720px; margin: 0 auto; padding-block: clamp(2rem, 5vw, 3.5rem); }
.foto-head { text-align: center; max-width: 560px; margin: 0 auto 1.6rem; }
.foto-head h1 { color: var(--ink); }
.foto-head p { color: var(--ink-soft); }
.foto-guide-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; font-weight: 700; color: var(--brand-dark); cursor: pointer; background: none; border: 0; font-size: .95rem; font-family: inherit; }
.foto-guide-link:hover { text-decoration: underline; }

/* Fotórács */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.4rem 0; }
.photo-slot {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  border: 2px dashed var(--brand-mint); background: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.photo-slot:hover { border-color: var(--brand); background: var(--brand-light); }
.photo-slot .plus { font-size: 2rem; color: var(--brand-dark); font-weight: 300; line-height: 1; }
.photo-slot .slot-lbl { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--ink-soft); }
.photo-slot.filled { border-style: solid; border-color: var(--brand); cursor: default; }
.photo-slot.filled .plus, .photo-slot.filled .slot-lbl { display: none; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .badge-main { position: absolute; top: 8px; left: 8px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.photo-remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(20,40,46,.7); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
}
.photo-remove:hover { background: #b53c3c; }
.photo-remove svg { width: 14px; height: 14px; }

.foto-note { font-size: .85rem; color: var(--ink-soft); text-align: center; margin-top: .4rem; }
.foto-actions { text-align: center; margin-top: 1.6rem; }
.foto-count { font-weight: 700; color: var(--brand-dark); }

/* ---- Modal (fotó-irányelvek) ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,40,46,.55); z-index: 400;
  display: grid; place-items: center; padding: 1rem; overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
  padding: 1.6rem; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto;
}
.modal-card h2 { color: var(--ink); margin: 0 0 1rem; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.modal-head { position: relative; }
.guide-block { margin-bottom: 1.2rem; }
.guide-block h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin: 0 0 .5rem; }
.guide-block.ok h3 { color: var(--brand-dark); }
.guide-block.no h3 { color: #b53c3c; }
.guide-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.guide-list span { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; padding: .35rem .7rem; border-radius: 999px; }
.guide-block.ok .guide-list span { background: #e4f7ee; color: #1f7a4d; }
.guide-block.no .guide-list span { background: #fdecec; color: #b53c3c; }

/* --- Feltöltés visszajelzése és főkép-váltás --- */

.foto-uzenet {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(23, 184, 166, .1);
  color: #0f766e;
  font-size: .95rem;
  text-align: center;
}
.foto-uzenet.hiba {
  background: rgba(220, 38, 38, .09);
  color: #b91c1c;
}

/* A „Legyen a főkép" gomb csak a képre húzva jelenik meg, hogy ne
   nyomja el a fotót — de érintőképernyőn (ahol nincs hover) mindig
   látszania kell, különben elérhetetlen lenne. */
.photo-main-btn {
  position: absolute;
  left: 8px; bottom: 8px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease;
}
.photo-slot:hover .photo-main-btn,
.photo-main-btn:focus-visible { opacity: 1; }
.photo-main-btn:hover { background: rgba(15, 23, 42, .92); }

@media (hover: none) {
  .photo-main-btn { opacity: 1; }
}

/* --- Titkos fotó jelölés --- */
.badge-titkos {
  position: absolute; top: 8px; left: 8px;
  background: rgba(120, 53, 15, .88); color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
/* A lakat gomb érintőképernyőn is elérhető kell legyen, ezért – a főkép
   gombbal ellentétben – mindig látszik. */
.photo-secret-btn {
  position: absolute; right: 8px; bottom: 8px;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: .95rem; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.photo-secret-btn:hover { background: #fff; }
.photo-secret-btn.aktiv { background: rgba(120, 53, 15, .9); }
