.ldppp-fav-heart {
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.ldppp-fav-inactive { color: #aaa; }
.ldppp-fav-active { color: red; }
.fav-post-list { list-style: none; padding: 0; }
.fav-post-list li { margin: 5px 0; }
.fav-post-list a { text-decoration: none; color: #0073aa; }
.fav-post-list a:hover { text-decoration: underline; }

.ldppp-fav-heart svg path {
    fill: #aaa; /* Inactive gray */
    transition: fill 0.3s ease;
}
.ldppp-fav-heart.fav-active svg path {
    fill: red; /* Active red */
}

/*Tooltip css*/
.ldppp-fav-heart {
    position: relative;
    cursor: pointer;
}

/* Tooltip base */
.ldppp-fav-heart::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%; /* show above the icon */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* Tooltip arrow */
.ldppp-fav-heart::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Show tooltip on hover */
.ldppp-fav-heart:hover::after,
.ldppp-fav-heart:hover::before {
    opacity: 1;
}

.ldppp-remove-fav {
    cursor: pointer;
    color: #d33;
    font-weight: bold;
    margin-left: 8px;
    transition: color 0.2s ease-in-out;
}

.ldppp-remove-fav:hover {
    color: #a00;
}
