/**
 * Alfred Q&A — page ustensile (V0.8 phase 3 Sprint 4).
 *
 * Zone insérée sur ustensile.php au-dessus des mini-articles.
 * Cohérence visuelle avec alfred-ingredient.css :
 *   - Badge jaune doré ✨
 *   - Chips arrondies cliquables
 *   - Réponse inline expand sous les chips (pas de modale)
 *
 * Mobile-first.
 *
 * @author  Savoor.fr
 * @version V0.8 phase 3 Sprint 4 (2026-04-28)
 */

.alfred-ustensile-zone {
    --alfred-spark: #f59e0b;
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.1rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.20);
    border-radius: 12px;
}

.alfred-ustensile-badge {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.alfred-ustensile-badge-spark {
    color: var(--alfred-spark);
    font-size: 1.05em;
}

.alfred-ustensile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alfred-ustensile-chip {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    color: var(--text-primary, #1f2937);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    min-height: 40px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.alfred-ustensile-chip:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

.alfred-ustensile-chip:focus-visible {
    outline: 2px solid var(--alfred-spark);
    outline-offset: 2px;
}

.alfred-ustensile-chip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Réponse Alfred (expand inline sous les chips) */
.alfred-ustensile-response {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(245, 158, 11, 0.10);
    border-left: 3px solid var(--alfred-spark);
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-primary, #1f2937);
}

.alfred-ustensile-response.is-loading {
    background: transparent;
    border-left-color: transparent;
    color: var(--v2-muted, #6b7280);
    font-style: italic;
    padding: 0.4rem 0;
}

.alfred-ustensile-response.is-error {
    background: rgba(239, 68, 68, 0.06);
    border-left-color: #ef4444;
    color: #b91c1c;
}

.alfred-ustensile-response strong { font-weight: 600; }

/* Dark mode */
body.dark-mode .alfred-ustensile-zone {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.30);
}
body.dark-mode .alfred-ustensile-badge { color: #f3f4f6; }
body.dark-mode .alfred-ustensile-chip {
    background: rgba(255, 255, 255, 0.06);
    color: #f3f4f6;
}
body.dark-mode .alfred-ustensile-chip:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.10);
}
body.dark-mode .alfred-ustensile-response {
    background: rgba(245, 158, 11, 0.14);
    color: #f3f4f6;
}
