
.favorite-image-container {
    position: relative;
}

.favorite-image-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
}

.favorite-image {
    width: 100%;
    height: auto;
    display: block;
}

.favorite-button {

    top: 2px;
    right: 2px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.favorite-button:active {
    transform: scale(0.95);
}

.favorite-inactive {
    color: #6b7280;
}

.favorite-inactive:hover {
    color: #ef4444;
}

.favorite-active {
    color: #ef4444;
    background-color: rgba(255, 255, 255, 1);
}

.favorite-active:hover {
    color: #dc2626;
}

/* Animation for favorite state change */
.favorite-button svg {
    transition: transform 0.15s ease;
}

.favorite-active svg {
    animation: favoriteAdded 0.3s ease;
}

@keyframes favoriteAdded {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Blur effect for restricted content */
.favorite-image.blurred {
    filter: blur(10px);
    transition: filter 0.3s ease;
    user-select: none;
    pointer-events: none;
}

/* Optional: watermark overlay for blurred images */
.favorite-image-container.restricted::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    z-index: 5;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}