/*!
 * Sindesi Reports — bottone Melden + modal segnalazione (v0.42.1, ADR-0008).
 *
 * Design:
 *  - Bottone "Melden" testuale piccolo, non prominente. Deve essere
 *    raggiungibile ma non competere con le CTA principali (Anfrage,
 *    Kontakt). Colore muted, hover leggero.
 *  - Modal centrato, backdrop scuro semi-trasparente, contenuto card
 *    bianca con angoli arrotondati.
 *  - Radio group verticale con hitbox intero per riga (mobile-friendly).
 *  - Textarea opzionale sotto le radio.
 *  - Un solo bottone submit + un link Abbrechen.
 *
 * Coerente con lo style base Sindesi (variabili colore già in uso):
 *  - primary  #0280DE
 *  - text     #1f2937
 *  - muted    #6b7280
 *  - border   #e5e7eb
 *  - bg       #ffffff
 *  - danger   #dc2626
 *
 * Self-contained: nessuna dipendenza da altri file CSS.
 */

/* ---------- Bottone "Melden" (testuale, muted) ---------- */
.sindesi-report-button {
    background: transparent;
    border: 0;
    padding: 6px 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1;
    transition: background-color 120ms ease, color 120ms ease;
}
.sindesi-report-button:hover,
.sindesi-report-button:focus-visible {
    background: #f3f4f6;
    color: #1f2937;
    outline: none;
}
.sindesi-report-button:focus-visible {
    box-shadow: 0 0 0 2px rgba(2, 128, 222, 0.35);
}
.sindesi-report-button__icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

/* ---------- Modal ---------- */
.sindesi-report-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 39, 0.55);
    animation: sindesi-report-fade-in 140ms ease-out;
}
@keyframes sindesi-report-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.sindesi-report-modal[hidden] {
    display: none;
}

.sindesi-report-modal__panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
}

.sindesi-report-modal__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}
.sindesi-report-modal__subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* ---------- Radio group ---------- */
.sindesi-report-modal__reasons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.sindesi-report-modal__reason {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 120ms ease, background-color 120ms ease;
}
.sindesi-report-modal__reason:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}
.sindesi-report-modal__reason input[type="radio"] {
    margin: 0;
    accent-color: #0280DE;
}
.sindesi-report-modal__reason input[type="radio"]:checked + span {
    color: #0280DE;
    font-weight: 600;
}
.sindesi-report-modal__reason:has(input[type="radio"]:checked) {
    border-color: #0280DE;
    background: #eff8ff;
}

/* ---------- Textarea ---------- */
.sindesi-report-modal__description-wrap {
    margin-bottom: 20px;
}
.sindesi-report-modal__description-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.sindesi-report-modal__description-hint {
    color: #9ca3af;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}
.sindesi-report-modal__description {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1f2937;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.sindesi-report-modal__description:focus {
    outline: none;
    border-color: #0280DE;
    box-shadow: 0 0 0 3px rgba(2, 128, 222, 0.15);
}

/* ---------- Errore inline ---------- */
.sindesi-report-modal__error {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.4;
}
.sindesi-report-modal__error[hidden] {
    display: none;
}

/* ---------- Actions ---------- */
.sindesi-report-modal__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
.sindesi-report-modal__cancel {
    background: transparent;
    border: 0;
    color: #6b7280;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
}
.sindesi-report-modal__cancel:hover {
    background: #f3f4f6;
    color: #1f2937;
}
.sindesi-report-modal__submit {
    background: #0280DE;
    color: #ffffff;
    border: 0;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 120ms ease;
}
.sindesi-report-modal__submit:hover:not(:disabled) {
    background: #026dbf;
}
.sindesi-report-modal__submit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

/* ---------- Toast di conferma ---------- */
.sindesi-report-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 100001;
    animation: sindesi-report-toast-in 200ms ease-out;
}
@keyframes sindesi-report-toast-in {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
