/* MCS Favorites System - v1.4 */

/* Container pour les cartes avec bouton coeur */
.mcs-fav-container {
    position: relative;
}

/* Bouton coeur overlay en haut à droite */
.mcs-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    z-index: 5;
}

.mcs-fav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mcs-fav-btn .mcs-fav-icon-empty {
    display: inline;
}

.mcs-fav-btn .mcs-fav-icon-full {
    display: none;
}

/* État actif : coeur plein rouge */
.mcs-fav-btn.is-favorite {
    background: rgba(255, 240, 240, 0.95);
}

.mcs-fav-btn.is-favorite .mcs-fav-icon-empty {
    display: none;
}

.mcs-fav-btn.is-favorite .mcs-fav-icon-full {
    display: inline;
}

/* ============================================
   LISTE DES FAVORIS - [mcs_favorites_list]
   ============================================ */

.mcs-favorites-list {
    max-width: 800px;
}

.mcs-favorites-list .favorites-type-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}

.mcs-favorites-list .favorites-type-title:first-child {
    margin-top: 0;
}

.mcs-favorites-list .favorites-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mcs-favorites-list .favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mcs-favorites-list .favorite-item:hover {
    background: #f0f0f0;
}

.mcs-favorites-list .favorite-item h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
    padding-left: 40px;
    position: relative;
}

.mcs-favorites-list .favorite-item h3 a {
    color: #333;
    text-decoration: none;
}

.mcs-favorites-list .favorite-item h3 a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Bouton de suppression */
.mcs-fav-remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mcs-fav-remove-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Message liste vide */
.mcs-fav-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Animation de suppression */
.favorite-item {
    transition: all 0.3s ease;
}
