/**
 * Wishlist Styles
 * Emile Theme - DiecastLovers
 */

/* ==========================================================================
   Heart Button Styles & Layouts
   ========================================================================== */

.dl-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.165, 0.84, 0.44, 1);
    user-select: none;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dl-wishlist-btn:hover {
    color: #e63946;
    border-color: #fca5a5;
    background-color: #fff5f5;
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.15);
    transform: translateY(-1px);
}

.dl-wishlist-btn:active {
    transform: translateY(0);
}

/* Heart Icon */
.dl-wishlist-btn .dl-heart-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dl-wishlist-btn .dl-heart-svg {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: #e63946;
    stroke-width: 2;
    transition: fill 0.25s ease, stroke 0.25s ease, transform 0.25s ease;
}

/* Wished State */
.dl-wishlist-btn.is-wished {
    background-color: #fff0f1;
    border-color: #fca5a5;
    color: #e63946;
}

.dl-wishlist-btn.is-wished .dl-heart-svg {
    fill: #e63946;
    stroke: #e63946;
}

/* Click Pulse Animation */
.dl-wishlist-btn.dl-pulsing .dl-heart-svg {
    animation: dlHeartPulse 0.45s ease-in-out;
}

@keyframes dlHeartPulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.4); }
    70% { transform: scale(0.88); }
    100% { transform: scale(1); }
}

/* Badge count */
.dl-wishlist-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50rem;
    background-color: #f1f3f5;
    color: #495057;
    transition: all 0.2s ease;
}

.dl-wishlist-btn.is-wished .dl-wishlist-count-badge {
    background-color: #e63946;
    color: #ffffff;
}

/* Sizes */
.dl-wishlist-size-sm {
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    gap: 0.35rem;
}

.dl-wishlist-size-sm .dl-heart-svg {
    width: 0.95em;
    height: 0.95em;
}

.dl-wishlist-size-lg {
    padding: 0.65rem 1.35rem;
    font-size: 1.05rem;
    gap: 0.6rem;
}

.dl-wishlist-size-lg .dl-heart-svg {
    width: 1.35em;
    height: 1.35em;
}

/* Card Overlay Layout (Floating on Model Card) */
.dl-wishlist-layout-card-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.dl-wishlist-layout-card-overlay:hover {
    background: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.22);
}

.dl-wishlist-layout-card-overlay .dl-heart-svg {
    width: 17px;
    height: 17px;
}

/* ==========================================================================
   Author Page Navigation Tabs & Wishlist View
   ========================================================================== */

.dl-author-header-tabs {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
}

.dl-author-header-tabs .nav-pills .nav-link {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50rem;
    padding: 0.45rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.dl-author-header-tabs .nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: #1a1a1a;
    border-color: #ced4da;
}

.dl-author-header-tabs .nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.25);
}

.dl-author-header-tabs .nav-pills .nav-link.active-wishlist {
    background-color: #e63946 !important;
    color: #ffffff !important;
    border-color: #e63946 !important;
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.28) !important;
}

.dl-author-header-tabs .nav-pills .nav-link.active-wishlist .text-danger {
    color: #ffffff !important;
}

.dl-author-header-tabs .nav-pills .nav-link.active-wishlist .badge {
    background-color: #ffffff !important;
    color: #e63946 !important;
}

/* Wishlist Item Removal Animation */
.dl-wishlist-item-wrapper {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.dl-wishlist-item-wrapper.dl-item-removing {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
    pointer-events: none;
}

/* Empty State */
.dl-wishlist-empty-state {
    padding: 4rem 1.5rem;
    background: #ffffff;
    border: 2px dashed #e9ecef;
    border-radius: 1rem;
    text-align: center;
    margin: 2rem 0;
}

.dl-wishlist-empty-state .dl-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    color: #fca5a5;
}

.dl-wishlist-empty-state h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.dl-wishlist-empty-state p {
    color: #6c757d;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Modal Notice for Guests */
.dl-wishlist-modal-notice {
    background-color: #fff5f5;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 0.5rem;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.dl-wishlist-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background-color: #1e293b;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.dl-wishlist-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dl-wishlist-toast-icon {
    display: inline-flex;
    color: #e63946;
}
