﻿/* ============================================
   WISHLIST MODAL STYLES
   Modern ve şık modal tasarımı
   ============================================ */

/* Modal Overlay */
.wishlist-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .wishlist-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Modal Container */
.wishlist-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    max-width: 420px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .wishlist-modal.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

/* Modal Header */
.wishlist-modal-header {
    padding: 24px 24px 0;
    text-align: center;
}

.wishlist-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: iconPop 0.5s ease;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Success Icon */
.wishlist-modal-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

    .wishlist-modal-icon.success svg {
        width: 36px;
        height: 36px;
        color: #fff;
    }

/* Warning/Login Icon */
.wishlist-modal-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

    .wishlist-modal-icon.warning svg {
        width: 36px;
        height: 36px;
        color: #fff;
    }

/* Error Icon */
.wishlist-modal-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

    .wishlist-modal-icon.error svg {
        width: 36px;
        height: 36px;
        color: #fff;
    }

/* Heart Icon (for wishlist added) */
.wishlist-modal-icon.heart {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

    .wishlist-modal-icon.heart svg {
        width: 36px;
        height: 36px;
        color: #fff;
        animation: heartBeat 0.8s ease;
    }

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }
}

/* Modal Body */
.wishlist-modal-body {
    padding: 16px 24px 24px;
    text-align: center;
}

.wishlist-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.wishlist-modal-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Product Info (optional) */
.wishlist-modal-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 16px;
}

.wishlist-modal-product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.wishlist-modal-product-info {
    text-align: left;
    flex: 1;
}

.wishlist-modal-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-modal-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

/* Modal Footer */
.wishlist-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}

    .wishlist-modal-footer.single-btn {
        justify-content: center;
    }

/* Buttons */
.wishlist-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .wishlist-modal-btn:hover {
        transform: translateY(-2px);
    }

    .wishlist-modal-btn:active {
        transform: translateY(0);
    }

    /* Primary Button */
    .wishlist-modal-btn.primary {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: #fff;
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    }

        .wishlist-modal-btn.primary:hover {
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
        }

    /* Secondary Button */
    .wishlist-modal-btn.secondary {
        background: #f3f4f6;
        color: #4b5563;
    }

        .wishlist-modal-btn.secondary:hover {
            background: #e5e7eb;
        }

    /* Success Button */
    .wishlist-modal-btn.success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #fff;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    }

    /* Danger Button */
    .wishlist-modal-btn.danger {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: #fff;
        box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    }

/* Close Button */
.wishlist-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .wishlist-modal-close:hover {
        background: #e5e7eb;
        transform: rotate(90deg);
    }

    .wishlist-modal-close svg {
        width: 16px;
        height: 16px;
        color: #6b7280;
    }

/* Auto-close Progress Bar */
.wishlist-modal-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 0 0 16px 16px;
    animation: progressShrink 3s linear forwards;
}

@keyframes progressShrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .wishlist-modal {
        width: 95%;
        max-width: none;
    }

    .wishlist-modal-footer {
        flex-direction: column;
    }

    .wishlist-modal-btn {
        width: 100%;
    }
}

.empty-wishlist-icon {
    opacity: 0.5;
}

.card-product.style-small .card-product-wrapper {
    position: relative;
}

.card-product.style-small .list-product-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-product.style-small:hover .list-product-btn {
    opacity: 1;
}

.wishlist-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .wishlist-remove-btn:hover {
        background: #fee2e2;
        transform: scale(1.1);
    }

    .wishlist-remove-btn .tooltip {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #1f2937;
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        margin-bottom: 5px;
    }

    .wishlist-remove-btn:hover .tooltip {
        opacity: 1;
        visibility: visible;
    }

.card-product-info .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.wishlist-item {
    transition: all 0.3s ease;
}

#btn-clear-all-wishlist {
    display: inline-flex;
    align-items: center;
}

@@media (max-width: 768px) {
    .card-product.style-small .list-product-btn {
        opacity: 1;
    }
}
