/*
 * np-hausfrauen.css — UX-Polish-Patterns für Nicht-Tech-User.
 *
 * Geladen vor nicer.css, damit nicer.css als kaskadenstärkste Schicht
 * Detail-Overrides erlaubt. Aktuell genutzt von:
 *  - frontend/views/proposal/edit-product.php   (Phase A — Foto-Slots mit Thumb)
 *  - alle Hot-Path-Forms                        (Phase B — Field-Label + Help-Text)
 *
 * Weitere Patterns (Confirm-Modal, Loading-State) kommen in späteren Phasen dazu.
 */

/* ---- Photo-Slot mit Vorschau des aktuell hochgeladenen Bildes ---- */

.np-photo-slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.np-photo-slot__current {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: var(--np-cream, #fffbf1);
    border: 1px dashed var(--np-line-soft, #c8bfa8);
}

.np-photo-slot__current img {
    display: block;
    max-width: 96px;
    height: auto;
    border: 1.5px solid var(--np-line, #a89c80);
    background: #fff;
}

.np-photo-slot__caption {
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--np-graphite, #6a6253);
}

/* ---- Field-Label + Help-Text (Phase B) ---- *
 *
 * Ersetzt die früheren inline-styles mit
 *   font-family: var(--font-mono); font-size: 11px;
 *   letter-spacing: 0.15em; text-transform: uppercase;
 * Die UPPERCASE-Variante war zwar konsistent mit dem Nicer-Designsystem,
 * für Nicht-Tech-User aber schwer lesbar. Wir gehen auf 13 px, normalcase,
 * sanfte letter-spacing-Spreizung.
 *
 * Pflicht-/Optional-Marker leben als <span class="np-required|np-optional">
 * INNERHALB des Labels, statt als Wort-Postfix im Text. So sieht eine
 * Hausfrau auf einen Blick, wo sie Pflicht-Felder hat und wo sie etwas
 * weglassen darf.
 */

.np-field-label {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--np-ink);
    display: block;
}

.np-field-label .np-required {
    color: var(--np-orange);
    margin-left: 4px;
    font-weight: 600;
}

.np-field-label .np-optional {
    color: var(--np-graphite);
    font-style: italic;
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
    letter-spacing: 0.04em;
}

.np-field-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    color: var(--np-graphite);
}

/* ---- Confirm-Modal (Phase E) ---- *
 *
 * <dialog>-basiertes Bestätigungs-Modal für destruktive Aktionen.
 * Triggers tragen [data-np-confirm="…"] und werden von np-confirm-modal.js
 * abgegriffen. Styling folgt dem Nicer-Pricer-Karton-Look:
 * dicke Tinten-Linie, Paper-Hintergrund, harter Orange-Schlagschatten.
 */
dialog.np-confirm-dialog {
    border: 2px solid var(--np-ink);
    background: var(--np-paper, #fffbf1);
    padding: 24px 28px;
    max-width: 92vw;
    min-width: 280px;
    box-shadow: 8px 8px 0 -1px var(--np-orange, #f17a3a);
}

dialog.np-confirm-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.np-confirm-dialog__question {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.np-confirm-dialog__buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.np-btn--danger {
    background: var(--np-alert);
    color: #fff;
}

.np-btn--danger:hover {
    background: #a01f1f;
    transform: translateY(-2px);
}
