/**
 * Popup Notification Styles
 */

/* Animacja wejścia */
@keyframes popup-enter {
    0% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(0.7);
    }
    70% {
        transform: translate(-50%, -45%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Animacja wyjścia */
@keyframes popup-exit {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(0.7);
    }
}

/* Podstawowy styl popupu */
.mc-popup-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 9999;
    text-align: center;
    opacity: 0;
    max-width: 90%;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Styl dla popupu pokazywanego */
.mc-popup-notification.show {
    animation: popup-enter 0.4s forwards;
}

/* Styl dla popupu ukrywanego */
.mc-popup-notification.hide {
    animation: popup-exit 0.4s forwards;
}

.mc-popup-notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mc-popup-notification-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-popup-notification-icon svg {
    width: 24px;
    height: 24px;
}

@keyframes text-appear {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.mc-popup-notification-text {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    animation: text-appear 0.4s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

/* Animation for heart icon */
@keyframes heartbeat {
    0% {
        transform: scale(0.8);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heart-fill-popup {
    0% { fill: rgba(221, 44, 0, 0); }
    40% { fill: rgba(221, 44, 0, 0.5); }
    100% { fill: #DD2C00; }
}

.mc-popup-notification-icon.heart svg {
    fill: #DD2C00;
    animation: heartbeat 0.7s ease-in-out, heart-fill-popup 0.5s ease-in-out;
}

.mc-popup-notification-icon.heart svg path {
    stroke: #DD2C00;
}

.mc-popup-notification-icon.heart-empty svg {
    stroke: #FCFCFC;
    animation: heartbeat 1s ease-in-out;
}