/**
 * Stiluri pentru sistemul de notificări Mementos
 */

/* Container principal pentru notificări - poziționat în dreapta-sus */
.mementos-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    width: 420px;
    max-width: 90vw;
    pointer-events: none;
}

/* Notificare individuală */
.memento-notification {
    background: #ffffff;
    border-left: 8px solid #4CAF50;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(76, 175, 80, 0.2);
    margin-bottom: 20px;
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(500px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 100%;
}

/* Hover pentru notificări clickable */
.memento-notification[style*="cursor: pointer"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(76, 175, 80, 0.3);
}

/* Animație de intrare */
.memento-notification.fade-in {
    animation: slideInBounce 0.5s ease-out;
}

.memento-notification.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Animație de ieșire */
.memento-notification.fade-out {
    opacity: 0;
    transform: translateX(500px) scale(0.8);
    transition: all 0.3s ease-in;
}

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateX(500px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(-15px) scale(1.05);
    }
    80% {
        transform: translateX(5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Header notificare */
.memento-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgb(0, 134, 196) 0%, rgb(1, 41, 59) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.memento-notification-header strong {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Buton închidere */
.memento-notification-close {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.memento-notification-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Body notificare */
.memento-notification-body {
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* Informații timp */
.memento-notification-time {
    display: flex;
    align-items: center;
    color: #667eea;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.memento-notification-time i {
    margin-right: 8px;
    font-size: 18px;
}

/* Mesaj */
.memento-notification-message {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}

/* Scrollbar personalizat pentru mesaje lungi */
.memento-notification-message::-webkit-scrollbar {
    width: 6px;
}

.memento-notification-message::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.memento-notification-message::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.memento-notification-message::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Variante de culoare pentru diferite tipuri de notificări */
.memento-notification.warning {
    border-left-color: #ff9800;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.4), 0 0 0 2px rgba(255, 152, 0, 0.3);
}

.memento-notification.warning .memento-notification-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.memento-notification.urgent {
    border-left-color: #f44336;
    animation: pulseIntense 1.2s infinite;
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.5), 0 0 0 3px rgba(244, 67, 54, 0.3);
}

.memento-notification.urgent .memento-notification-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
    animation: headerPulse 1.2s infinite;
}

@keyframes pulseIntense {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(244, 67, 54, 0.5), 0 0 0 3px rgba(244, 67, 54, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 40px rgba(244, 67, 54, 0.8), 0 0 0 5px rgba(244, 67, 54, 0.5);
        transform: scale(1.02);
    }
}

@keyframes headerPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.15);
    }
}

/* Responsive pentru ecrane mici */
@media (max-width: 768px) {
    .mementos-notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .memento-notification {
        margin-bottom: 10px;
    }

    .memento-notification-header {
        padding: 10px 12px;
    }

    .memento-notification-header strong {
        font-size: 13px;
    }

    .memento-notification-body {
        padding: 12px;
    }

    .memento-notification-time,
    .memento-notification-message {
        font-size: 12px;
    }
}

/* Dark mode support (opțional) */
@media (prefers-color-scheme: dark) {
    .memento-notification {
        background: #2d2d2d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .memento-notification-message {
        color: #000000;
    }

    .memento-notification-message::-webkit-scrollbar-track {
        background: #444;
    }
}
