/* =======================================================================
   Démo 2 — Profils de modération
   ======================================================================= */

.demo-shell.is-locked {
    position: relative;
    opacity: 0.95;
}

.demo-shell.is-locked .mod-blur {
    filter: blur(4px);
    pointer-events: none;
}

.demo-lock-banner {
    display: none;
    margin-bottom: 0.8rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(248, 113, 113, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
}

.demo-shell.is-locked .demo-lock-banner {
    display: block;
}

.mod-overlay {
    display: none;
    position: absolute;
    inset: 0.4rem;
    z-index: 2;
    border-radius: var(--radius-md);
    background: rgba(2, 6, 23, 0.86);
    border: 1px dashed rgba(248, 113, 113, 0.6);
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.2rem;
}

.mod-overlay-inner {
    max-width: 520px;
    font-weight: 700;
    line-height: 1.35;
    display: grid;
    gap: 0.75rem;
}

.mod-overlay-actions {
    display: flex;
    justify-content: center;
}

.btn-small {
    padding: 0.3rem 0.55rem;
    font-size: 0.82rem;
}

.demo-moderation-shell .mod-grid {
    display: grid;
    gap: 0.75rem;
}

.mod-level-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.55rem;
}

.mod-level-btn {
    text-align: left;
    padding: 0.6rem 0.7rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.7);
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.1s ease-out, box-shadow 0.1s ease-out,
        transform 0.08s ease-out;
}

.mod-level-btn:hover {
    border-color: rgba(56, 189, 248, 0.8);
}

.mod-level-btn.is-active {
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.2);
}

.mod-level-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.mod-level-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.mod-level-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mod-question-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mod-manual {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.35rem;
}

.mod-manual textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.85);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
}

.mod-manual textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.demo-suggestions {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.78);
    padding: 0.7rem 0.8rem;
    margin-top: 0.6rem;
}

.demo-suggestions-title {
    margin: 0 0 0.35rem;
    color: var(--text-muted);
}

.demo-suggestions-list {
    display: grid;
    gap: 0.4rem;
}

.demo-suggestion-btn,
.mod-reco-btn {
    text-align: left;
    width: 100%;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(14, 165, 233, 0.08);
    color: var(--text-main);
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.1s ease-out, box-shadow 0.1s ease-out;
}

.demo-suggestion-btn:hover,
.mod-reco-btn:hover {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

.mod-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.mod-answers {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.mod-card {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.8rem;
    background: rgba(2, 6, 23, 0.78);
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mod-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.mod-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.82rem;
}

.mod-card-status {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mod-card-status--loading {
    color: var(--accent);
}

.mod-card-status--error {
    color: #fca5a5;
}

.mod-card-status--done {
    color: #c7f9cc;
}

.mod-card-body {
    font-size: 0.9rem;
    color: var(--text-main);
}

.btn.btn-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.mod-profile {
    margin-top: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(2, 6, 23, 0.7);
}

.mod-profile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.mod-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem 0.8rem;
}

.mod-profile-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mod-profile-item strong {
    display: block;
    font-size: 0.95rem;
}

.text-error {
    color: #fca5a5;
}

@media (max-width: 640px) {
    .mod-question-row {
        grid-template-columns: 1fr;
    }

    .mod-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
