/* ============================================
   FAVORITES FEATURE - CSS
   ============================================ */

/* Favorite Heart Button */
.favorite-btn {
    position: absolute;
    top: 8px;
    left: 8px;  /* Left side (flag button is on right) */
    z-index: 100;
    background: rgba(156, 156, 156, 0.95);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn i {
    font-size: 16px;
    color: #ccc;  /* Gray when not favorited */
    transition: color 0.2s ease;
}

/* Active/Favorited State */
.favorite-btn.active i {
    color: #FF6B35;  /* Orange/red when favorited */
}

/* Hover Effects */
.favorite-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.favorite-btn:hover i {
    color: #FF6B35;
}

/* Active + Hover */
.favorite-btn.active:hover i {
    color: #ff4419;  /* Darker red on hover */
}

/* Click Animation */
.favorite-btn:active {
    transform: scale(0.95);
}

/* Favorite Toast Notification */
.favorite-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(33, 33, 33, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.favorite-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.favorite-toast i {
    font-size: 16px;
    color: #FF6B35;
}

/* Adjust image container to accommodate both buttons */
.image-container {
    position: relative;
}

.image-container .favorite-btn {
    left: 8px;   /* Heart on left */
}

.image-container .flag-btn {
    right: 8px;  /* Flag on right */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .favorite-btn,
    .flag-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .favorite-btn i,
    .flag-btn i {
        font-size: 14px;
    }
    
    .favorite-toast {
        bottom: 60px;
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* Loading State (optional) */
.favorite-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.favorite-btn.loading i {
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Filter Section - Favorites Option */
.filter-radio.favorites-option {
    color: #FF6B35;
    font-weight: 500;
}

.filter-radio.favorites-option input:checked + span {
    color: #FF6B35;
}

.filter-radio.favorites-option i {
    color: #FF6B35;
}