/**
 * Styles pour le bouton favoris
 */

.recette-btn-favori {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 20px !important;
    background: #fff;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    color: #666 !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.recette-btn-favori:hover {
    background: #fff !important;
    border-color: #ff6b6b !important;
    color: #ff6b6b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.recette-btn-favori:active {
    transform: translateY(0);
}

/* Icône cœur */
.recette-btn-favori .favori-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.recette-btn-favori .favori-icon path {
    fill: none;
    stroke: currentColor;
    transition: all 0.3s ease;
}

/* État favori */
.recette-btn-favori.is-favori {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-color: #ff6b6b !important;
    color: #fff !important;
}

.recette-btn-favori.is-favori .favori-icon path {
    fill: currentColor;
    stroke: currentColor;
}

.recette-btn-favori.is-favori:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff4444 100%);
    border-color: #ff5252;
}

/* Animation au clic */
.recette-btn-favori.animating {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(0.9);
    }
    20%, 40%, 60%, 80% {
        transform: scale(1.1);
    }
    50%, 70% {
        transform: scale(1.05);
    }
}

/* État désactivé */
.recette-btn-favori:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.recette-btn-favori:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Texte */
.recette-btn-favori .favori-text {
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 768px) {
    .recette-btn-favori {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .recette-btn-favori .favori-icon {
        width: 20px;
        height: 20px;
    }
}

/* Version compacte (icône seule) */
.recette-btn-favori.compact {
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
}

.recette-btn-favori.compact .favori-text {
    display: none;
}

/* Notification toast */
.favori-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideInUp 0.3s ease, fadeOut 0.3s ease 2.7s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.favori-toast.success {
    background: #4caf50;
}

.favori-toast.error {
    background: #f44336;
}

.favori-toast .toast-icon {
    font-size: 1.2em;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 768px) {
    .favori-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 14px 20px;
    }
}
