/**
 * Recommandations mouvement SC — P3-V1 / P3-V2 explicable.
 *
 * @package Calendanse_Dance_Library
 */

.cdl-reco {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e2e4e7;
}

.cdl-reco__title {
    margin: 0 0 1rem;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    line-height: 1.3;
}

.cdl-reco__empty {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px dashed #ccc;
    border-radius: 6px;
    color: #555;
}

.cdl-reco__empty-note {
    margin: 0;
    padding: 0.75rem 1rem 0.75rem 0.85rem;
    border-left: 3px solid #c8d4e0;
    border-radius: 0 6px 6px 0;
    background: #f8f9fa;
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cdl-reco--empty-guided {
    padding: 0.5rem 0;
    border-top: 1px solid #e2e4e7;
}

.cdl-reco-summary {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #ececec;
}

.cdl-reco-summary__lead {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.cdl-reco-summary__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0 0 0.65rem;
    padding: 0;
    list-style: none;
}

.cdl-reco-summary__item {
    font-size: 0.9rem;
    color: #3c434a;
}

.cdl-reco-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

.cdl-reco-card {
    padding: 0.9rem 1rem;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    background: #fff;
}

.cdl-reco-card__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.3;
}

.cdl-reco-card__title a {
    color: #b45309;
    text-decoration: none;
    font-weight: 600;
}

.cdl-reco-card__title a:hover,
.cdl-reco-card__title a:focus {
    text-decoration: underline;
}

.cdl-reco-card__level {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
    color: #646970;
}

.cdl-reco-card__concepts {
    margin: 0 0 0.5rem;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: #444;
}

.cdl-reco-card__reason {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #1d2327;
}

.cdl-reco-card__paths {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: #646970;
}

.cdl-reco-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.cdl-reco-summary__badges {
    margin-top: 0.15rem;
}

.cdl-reco-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
}

.cdl-reco-paths {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
}

.cdl-reco-paths__title {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
}

.cdl-reco-paths__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cdl-reco-paths__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #ececec;
}

.cdl-reco-paths__item:last-child {
    border-bottom: 0;
}

.cdl-reco-paths__link {
    color: #016087;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.cdl-reco-paths__link:hover,
.cdl-reco-paths__link:focus {
    text-decoration: underline;
}

.cdl-reco-paths__meta {
    font-size: 0.78rem;
    color: #646970;
}

@media (min-width: 640px) {
    .cdl-reco-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .cdl-reco-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* P4-V1b — recommandations personnalisées */
.cdl-reco--personal .cdl-reco__heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.cdl-reco--personal .cdl-reco__title {
    margin: 0;
}

.cdl-reco-personal-badge {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
}

.cdl-reco-personal-badge--header {
    font-size: 0.78rem;
}

.cdl-reco-card__personal-reason {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.45rem;
}

.cdl-reco-card__personal-reason .cdl-reco-personal-badge {
    background: #ecfdf5;
    color: #047857;
}

.cdl-reco-login-hint {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    font-size: 0.85rem;
    color: #646970;
}
