/* Likes Plugin - Front-end styles */

.bl-likes-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.5rem 0 0.5rem;
    border-top: 1px solid #e1e5e9;
}

.bl-like-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #9ca3af;
    padding: 0;
}

/* Hover styles only for devices with a real pointer: on touch devices,
   :hover remains "sticky" after a tap (Firefox mobile...) and would
   keep the heart red even after an unlike */
@media (hover: hover) and (pointer: fine) {
    .bl-like-button:hover {
        color: #ef4444;
    }

    .bl-like-button--liked:hover {
        color: #dc2626;
    }
}

.bl-like-button:active {
    transform: scale(0.95);
}

.bl-like-button--liked {
    color: #ef4444;
}

.bl-like-button--liked .bl-like-icon path {
    fill: currentColor;
}

.bl-like-icon {
    width: 24px;
    height: 24px;
}

.bl-like-count {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Heart animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.bl-like-button.liked-animation {
    animation: heartBeat 0.3s ease;
}

/* Loader animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bl-like-loader {
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .bl-likes-container {
        justify-content: center;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .bl-like-button {
        width: 40px;
        height: 40px;
    }
    
    .bl-like-icon {
        width: 20px;
        height: 20px;
    }
    
    .bl-like-count {
        font-size: 0.9rem;
    }
}
