/**
 * PREMIUM WISHLIST CSS
 */

.wishlist-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #adb5bd;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 10;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    color: #ff4757;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(255, 71, 87, 0.2);
}

.wishlist-btn.active {
    color: #ff4757 !important;
    border-color: rgba(255, 71, 87, 0.2) !important;
    background: #fff !important;
}

.wishlist-btn i {
    font-size: 1.1rem;
    pointer-events: none;
}

/* Badge for Navigation Bar */
.wishlist-count-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.3);
}

.pulse-once {
    animation: pulseOnce 0.5s ease;
}

@keyframes pulseOnce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Heart Burst Animation */
.heart-burst-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart-burst-effect::before,
.heart-burst-effect::after {
    content: '❤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff4757;
    opacity: 0;
    font-size: 1.5rem;
}

.heart-burst-effect::before {
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -150%) scale(1.5);
        opacity: 0;
    }
}

/* Sidebar Styling */
#wishlistOffcanvas .offcanvas-header {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-bottom: 1px solid #eee;
}

.wishlist-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.wishlist-item .card-title {
    font-weight: 700;
    color: #2d3436;
}

/* Responsive adjustment for homepage/detail buttons */
/* Global button used in absolute positioning (e.g. detail page) */
.wishlist-btn-abs {
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Inline button used in event cards next to title */
.wishlist-btn.wishlist-btn-inline {
    position: static;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
}

.wishlist-btn.wishlist-btn-inline:hover {
    transform: scale(1.2);
    color: #ff4757;
    background: transparent;
    box-shadow: none;
}

.wishlist-btn.wishlist-btn-inline.active {
    color: #ff4757;
}

/* Ensure wishlist offcanvas appears above navbar */
#wishlistOffcanvas {
    z-index: 10050 !important;
}

#wishlistOffcanvas.offcanvas-backdrop {
    z-index: 10049 !important;
}

.offcanvas-backdrop.show {
    z-index: 10049 !important;
}