/* Reusable Heart Button Component - Used across the entire app */

.heart-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.heart-btn:hover {
    background: #fef3f2;
    border-color: #667eea;
    transform: scale(1.1);
}

.heart-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.heart-btn:hover svg {
    stroke: #667eea;
    stroke-width: 2.5;
}

/* Saved State */
.heart-btn.saved {
    background: #667eea !important;
    border-color: #667eea !important;
}

.heart-btn.saved svg {
    fill: white;
    stroke: white;
}

.heart-btn.saved:hover {
    background: #5568d3 !important;
    border-color: #5568d3 !important;
    transform: scale(1.05);
}

/* Loading State */
.heart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.heart-btn.loading svg {
    opacity: 0;
}

.heart-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Large variant (for modals) */
.heart-btn-lg {
    width: 48px;
    height: 48px;
}

.heart-btn-lg svg {
    width: 24px;
    height: 24px;
}

/* Small variant (for list items) */
.heart-btn-sm {
    width: 36px;
    height: 36px;
}

.heart-btn-sm svg {
    width: 18px;
    height: 18px;
}

/* Disabled state */
.heart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.heart-btn:disabled:hover {
    background: white;
    border-color: #e5e7eb;
    transform: none;
}

/* Animation when saving */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heart-btn.saving {
    animation: heartPop 0.3s ease;
}
