/**
 * Estilos para el sistema de favoritos
 */

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn svg {
    display: block;
    flex-shrink: 0;
}

.favorite-btn svg path {
    fill: #000;
    transition: all 0.3s ease;
}

/* Cuando está activo: background rojo */
.favorite-btn.is-favorite {
    background: #FF385C !important;
}

.favorite-btn.is-favorite svg path {
    fill: #FFF;
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* Contador de favoritos */
.favorites-count {
    display: inline-block;
    min-width: 20px;
    padding: 2px 6px;
    background: #FF385C;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.favorites-count:empty,
.favorites-count.has-favorites:empty {
    display: none;
}

.favorites-count.has-favorites {
    display: inline-block;
}

/* Animación al agregar/quitar favoritos */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

.favorite-btn.is-favorite svg {
    animation: heartbeat 0.4s ease-in-out;
}

/* Mensaje cuando no hay favoritos */
.no-packages {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}
