/* public-menu-refinements.css */
/* rifiniture visive del menu pubblico: linee, allineamenti, foto piatti, modale foto ingrandita */

/* ── 1. RIPRISTINO E SPESSORE LINEA PRINCIPALE (SOLO COLORE TESTO) ── */
#menu-screen .public-menu-header {
  border-bottom: 3px solid var(--text) !important;
  border-image: none !important;
}

/* ── 2. ALLINEAMENTO VERTICALE PERFETTO TITOLI E FRECCETTE ── */
#menu-screen .public-section-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#menu-screen .public-section-title {
  line-height: 1.2 !important;
  margin: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

#menu-screen .public-section-chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(1px) !important;
}

/* ── 3. RIMOZIONE COMPLETA DEL NUMERO DEI PIATTI ── */
#menu-screen .public-section-count {
  display: none !important;
}

/* ── FOTO PIATTI (PANNELLO ADMIN) ── */
.dish-photo-upload-wrap { flex: 1 1 140px; min-width: 140px; }
.dish-photo-upload { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; position: relative; min-height: 36px; }
.dish-photo-upload .btn { flex-shrink: 0; }
.dish-photo-upload .badge-optional { margin-left: 2px; }
.dish-photo-preview { width: 36px; height: 36px; border-radius: 6px; border: 1px dashed var(--border); object-fit: cover; }
.badge-optional {
  display: inline-flex;
  align-items: center;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

/* ── ICONA FOTO PIATTI (MENU PUBBLICO) ── */
.public-dish-photo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.public-dish-photo-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  background: var(--accent-light);
}
.public-dish-photo-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── MODALE FOTO SFOCATA (MENU PUBBLICO) ── */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 33, 29, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-modal.show {
  display: flex;
  opacity: 1;
}
.photo-modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  background: var(--surface);
}
.photo-modal.show .photo-modal-content {
  transform: scale(1);
}
.photo-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.2s;
}
.photo-modal-close:hover {
  transform: scale(1.2);
}