/**
 * MT-Bot Top 10 — cartes de suggestions [mt_bot_top10]
 * Charte cohérente avec le widget MT-Bot (#21cdc0)
 * v1.2.1 : survol en inversion complète (fond turquoise, textes blancs)
 *          → le libellé "Suggestion" reste lisible dans tous les états
 */

.mt-bot-top10 {
    margin: 20px 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.mt-bot-top10__head {
    margin-bottom: 14px;
}

.mt-bot-top10__title {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.3;
    color: #1a1a1a;
}

.mt-bot-top10__intro {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.mt-bot-top10__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.mt-bot-top10 .mt-bot-top10__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #d9f3f1;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease,
                box-shadow .15s ease, transform .15s ease;
}

.mt-bot-top10 .mt-bot-top10__card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #21cdc0;
    transition: color .15s ease;
}

.mt-bot-top10 .mt-bot-top10__card-text {
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    transition: color .15s ease;
}

/* ===== Survol / focus : inversion complète ===== */

.mt-bot-top10 .mt-bot-top10__card:hover,
.mt-bot-top10 .mt-bot-top10__card:focus {
    background: #21cdc0;
    border-color: #21cdc0;
    box-shadow: 0 4px 12px rgba(33, 205, 192, .28);
    transform: translateY(-1px);
    outline: none;
}

.mt-bot-top10 .mt-bot-top10__card:hover .mt-bot-top10__card-label,
.mt-bot-top10 .mt-bot-top10__card:focus .mt-bot-top10__card-label {
    color: rgba(255, 255, 255, .85);
}

.mt-bot-top10 .mt-bot-top10__card:hover .mt-bot-top10__card-text,
.mt-bot-top10 .mt-bot-top10__card:focus .mt-bot-top10__card-text {
    color: #ffffff;
}

/* ===== État désactivé (pendant l'envoi) ===== */

.mt-bot-top10 .mt-bot-top10__card:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
}

/* ===== Mode compact : [mt_bot_top10 compact="1"] ===== */

.mt-bot-top10.is-compact .mt-bot-top10__grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
}

.mt-bot-top10.is-compact .mt-bot-top10__card {
    padding: 8px 10px;
    border-radius: 10px;
}

.mt-bot-top10.is-compact .mt-bot-top10__card-label {
    display: none;
}

@media (max-width: 576px) {
    .mt-bot-top10__grid {
        grid-template-columns: 1fr 1fr;
    }
}
