/* ── CARTE MOD ─────────────────────────────────────────────────── */
a.mod-card,
div.mod-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: var(--text-light);
    transition: color var(--duration-slow);
    cursor: pointer;
}

[data-theme="dark"] a.mod-card,
[data-theme="dark"] div.mod-card {
    color: var(--text-dark);
}

a.mod-card:hover,
div.mod-card:hover {
    text-decoration: none;
}

/* ── ICÔNE MOD ─────────────────────────────────────────────────── */
.mod-add-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pill-bg-light);
    color: var(--violet);
    border: 2px solid var(--border-light);
    transition: border-color var(--duration-slow);
}

[data-theme="dark"] .mod-add-icon {
    background: var(--pill-bg-dark);
    color: var(--violet-light);
    border-color: var(--border-dark);
}

/* ── NOM DU MOD ────────────────────────────────────────────────── */
.mod-name {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 12rem;
}

/* ── ESPACE FLEXIBLE ───────────────────────────────────────────── */
.mod-space {
    flex: 1;
}

/* ── PILLS COMMUNES ────────────────────────────────────────────── */
.mod-version,
.mod-used,
.mod-dep {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;

}

/* ── VERSION ───────────────────────────────────────────────────── */
.mod-version {
    background: var(--pill-bg-light);
    color: var(--violet);
}

[data-theme="dark"] .mod-version {
    background: var(--pill-bg-dark);
    color: var(--violet-light);
}

/* ── DÉPENDANCES ───────────────────────────────────────────────── */
.mod-deps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;

}

.mod-dep {
    background: rgba(245, 158, 11, 0.10);
    color: #92400e;
    text-decoration: none;
}

.mod-dep:hover {
    background: rgba(245, 158, 11, 0.20);
    text-decoration: none;
}

[data-theme="dark"] .mod-dep {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

[data-theme="dark"] .mod-dep:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

/* ── UTILISÉ / NON UTILISÉ ─────────────────────────────────────── */
.mod-used {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.mod-used.non-utilise {
    background: rgba(107, 114, 128, 0.1);
    color: var(--muted-light);
}

[data-theme="dark"] .mod-used.non-utilise {
    color: var(--muted-dark);
}

/* ── SUPPRIMER ─────────────────────────────────────────────────── */
.mod-delete {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    text-decoration: none;
    transition: background var(--duration-fast), color var(--duration-fast);
}

.mod-delete:hover {
    background: rgba(239, 68, 68, 0.18);
    text-decoration: none;
    color: #ef4444;
}

[data-theme="dark"] .mod-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

[data-theme="dark"] .mod-delete:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}
