/* ==========================================================
   neonFREQUENZ · Issue2 Modal (NF3 Look)
   Datei: /products/issue2/issue2-modal.css
   ========================================================== */

/* Hidden helper */
.nf-modal-hidden { display: none; }

/* Dialog Reset + Centering */
dialog.nf-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(560px, 92vw);
  width: min(560px, 92vw);
}

dialog.nf-modal[open] {
  animation: nfModalIn 140ms ease-out;
}

@keyframes nfModalIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

dialog.nf-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

/* Shell provides the NF3 glass frame */
.nf-modal-shell {
  border-radius: 22px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}

/* Card inside */
.nf-modal-card {
  margin: 0;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(6, 10, 14, 0.92);
  color: rgba(255,255,255,0.92);

  /* Neon frame */
  border: 1px solid rgba(44, 199, 234, 0.35);
  box-shadow:
    0 0 0 1px rgba(44, 199, 234, 0.10) inset,
    0 0 22px rgba(44, 199, 234, 0.18);
  backdrop-filter: blur(10px);
}

/* Header row */
.nf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.nf-modal-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.nf-modal-x {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  line-height: 30px;
  font-size: 22px;
  text-align: center;
}

.nf-modal-x:hover {
  border-color: rgba(44, 199, 234, 0.45);
  box-shadow: 0 0 18px rgba(44, 199, 234, 0.18);
}

/* Sub text */
.nf-modal-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.nf-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Field */
.nf-modal-field { margin-bottom: 14px; }

.nf-modal-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

.nf-modal-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 16px;

  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);

  border: 1px solid rgba(44, 199, 234, 0.22);
  outline: none;
}

.nf-modal-input:focus {
  border-color: rgba(44, 199, 234, 0.55);
  box-shadow: 0 0 0 3px rgba(44, 199, 234, 0.12);
}

.nf-modal-hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}

/* Actions */
.nf-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Preset chips */
.nf-modal-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.nf-chip {
  appearance: none;
  border: 1px solid rgba(44, 199, 234, 0.22);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.nf-chip:hover {
  border-color: rgba(44, 199, 234, 0.55);
  box-shadow: 0 0 18px rgba(44, 199, 234, 0.14);
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .nf-modal-card { padding: 16px 14px 14px; }
  .nf-modal-title { font-size: 17px; }
  .nf-modal-x { width: 32px; height: 32px; border-radius: 12px; }
}
