/**
 * Favorites Button & Toast Styles
 */

/* Favorite Button - Round icon-only style */
.rd-fav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    margin: 0;
    background: #ff7eb3;
    border: none;
    border-radius: 50% !important;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 126, 179, 0.3);
    position: relative;
    overflow: hidden;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    margin-right: 10px;
}




.rd-fav-btn:hover {
    background: #ff5c9e;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 126, 179, 0.4);
}

.rd-fav-btn:focus {
    outline: 2px solid #ff7eb3;
    outline-offset: 2px;
}

.rd-fav-btn--active {
    background: #ff7eb3;
}

.rd-fav-btn--loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Icons - stacked on top of each other */
.rd-fav-btn .rd-fav-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 22px !important;
    height: 22px !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.rd-fav-btn .rd-fav-icon--outline {
    opacity: 1 !important;
}

.rd-fav-btn .rd-fav-icon--filled {
    opacity: 0 !important;
}

/* Active state - show filled, hide outline */
.rd-fav-btn.rd-fav-btn--active .rd-fav-icon--outline {
    opacity: 0 !important;
}

.rd-fav-btn.rd-fav-btn--active .rd-fav-icon--filled {
    opacity: 1 !important;
    animation: rd-fav-pop 0.3s ease;
}

@keyframes rd-fav-pop {
    0% { transform: translate(-50%, -50%) scale(0.8); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* With indicator variant (+/- overlaid on heart center) - still round */
.rd-fav-btn.rd-fav-btn--with-indicator {
    position: relative;
}

.rd-fav-btn--with-indicator .rd-fav-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.rd-fav-btn--with-indicator .rd-fav-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Toast Notification */
.rd-fav-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: #1f2937;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99999;
    max-width: 90vw;
}

.rd-fav-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.rd-fav-toast--success {
    background: #059669;
}

.rd-fav-toast--error {
    background: #dc2626;
}

.rd-fav-toast--info {
    background: #52c5ff;
}

/* Compact variant (for inside cards/lists) */
.rd-fav-btn.rd-fav-btn--compact {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: rgba(255, 126, 179, 0.15);
    color: #ff7eb3;
    box-shadow: none;
}

.rd-fav-btn.rd-fav-btn--compact .rd-fav-icon {
    width: 18px;
    height: 18px;
}

.rd-fav-btn.rd-fav-btn--compact:hover {
    background: rgba(255, 126, 179, 0.25);
    transform: scale(1.05);
}

/* Disabled state for users without permission */
.rd-fav-btn.rd-fav-btn--disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: auto;
}

.rd-fav-btn.rd-fav-btn--disabled:hover {
    background: #d1d5db;
    transform: none;
    box-shadow: none;
}
