/**
 * Popup de notification en temps réel
 */

.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-popup-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(20, 20, 36, 0.98));
    border: 2px solid var(--accent, #A56BFF);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 350px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(165, 107, 255, 0.3);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    animation: slideInBounce 0.5s ease-out;
}

@keyframes slideInBounce {
    0% {
        transform: translateX(400px);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px);
        opacity: 1;
    }
    80% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

.notification-popup-icon {
    font-size: 2.5rem;
    animation: bellRing 0.5s ease-in-out 0.3s;
    flex-shrink: 0;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.notification-popup-body {
    flex: 1;
}

.notification-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #ffffff);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FF6FB1, #A56BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-popup-message {
    font-size: 0.95rem;
    color: var(--text-muted, #b0b0b0);
    line-height: 1.4;
}

.notification-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text, #ffffff);
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.notification-popup-close:hover {
    background: rgba(239, 68, 68, 0.3);
    opacity: 1;
    transform: rotate(90deg);
}

/* Animation de confettis pour les paliers atteints */
.notification-popup-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF6FB1, #A56BFF, #10b981, #FF6FB1);
    background-size: 300% 300%;
    border-radius: 16px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0.5;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
    .notification-popup {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification-popup-content {
        min-width: auto;
        max-width: none;
    }
}
