/**
 * Plugin CSS for TE Favorites
 */

/* The interactive heart button */
.te-favorite-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 50%;
}

.te-favorite-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.te-favorite-btn.is-active {
    color: #e74c3c;
}

.te-favorite-btn svg {
    width: 24px;
    height: 24px;
    transition: fill 0.2s ease;
}

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

.heart-pop {
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}


/* Layout for MemberPress tab list */
.te-favorites-wrapper {
    margin-top: 20px;
}

.te-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.te-favorite-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    padding-bottom: 50px; /* space for the button */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s, opacity 0.4s ease;
    position: relative;
}

.te-favorite-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.te-favorite-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.te-favorite-card h4 a {
    color: #333;
    text-decoration: none;
}

.te-favorite-card h4 a:hover {
    color: var(--c-testenglish, #1da851);
}

.te-favorite-card .te-favorite-actions {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.te-favorite-card .card-remove-text {
    font-size: 0.8em;
    color: #777;
    margin-right: 5px;
}
