/* Container pour le bouton de like */
.candidate-like {
    display: inline-block;
}

/* Styles de base pour le bouton like */
.like-button {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.like-button:hover {
    background: rgba(59, 130, 246, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.like-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.like-button.loading {
    opacity: 0.7;
}

.like-button.error {
    background: rgba(231, 76, 60, 0.3);
    animation: shake 0.3s ease-in-out;
}

/* Icône cœur */
.like-button i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.like-button:hover i {
    transform: rotate(15deg);
}

/* Compteur de likes (badge à droite) */
.like-count {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(59, 130, 246, 1);
    color: white;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.like-button:hover .like-count {
    background: rgba(255, 255, 255, 1);
    color: rgba(59, 130, 246, 1);
}

/* États du cœur - animation spécifique */
.heart-liked {
    animation: heartbeat 0.3s ease-in-out;
}

/* Tailles */
.like-button--sm {
    .like-button {
        width: 32px;
        height: 32px;
    }

    .like-button i {
        font-size: 14px;
    }
}

.like-button--lg {
    .like-button {
        width: 48px;
        height: 48px;
    }

    .like-button i {
        font-size: 20px;
    }
}

/* Positions */
.like-button--left {
    text-align: left;
}

.like-button--center {
    text-align: center;
}

.like-button--right {
    text-align: right;
}

/* Animations */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.3);
    }

    40% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1.25);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}