/* ===== ТОПОВАЯ СИСТЕМА УВЕДОМЛЕНИЙ ===== */

/* Базовые стили уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 380px;
    cursor: pointer;
}

/* Эффект при наведении */
.notification:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===== ТИПЫ УВЕДОМЛЕНИЙ ===== */

/* Успешные уведомления */
.notification--success {
    background: #10b981;
    color: #ffffff;
}

/* Иконка успеха */
.notification--success .notification__icon {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Ошибки */
.notification--error {
    background: #ef4444;
    color: #ffffff;
}

/* Иконка ошибки */
.notification--error .notification__icon {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Предупреждения */
.notification--warning {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.95) 0%, 
        rgba(217, 119, 6, 0.95) 50%, 
        rgba(180, 83, 9, 0.95) 100%);
    color: #ffffff;
    border-left: 4px solid #f59e0b;
}

.notification--warning::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.notification--warning::before {
    content: '⚠';
    font-size: 20px;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    animation: pulse 2s infinite;
}

/* Информационные */
.notification--info {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.95) 0%, 
        rgba(37, 99, 235, 0.95) 50%, 
        rgba(29, 78, 216, 0.95) 100%);
    color: #ffffff;
    border-left: 4px solid #3b82f6;
}

.notification--info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #93c5fd, #60a5fa, #93c5fd);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.notification--info::before {
    content: 'ℹ';
    font-size: 20px;
    font-weight: bold;
    color: #93c5fd;
    text-shadow: 0 0 20px rgba(147, 197, 253, 0.6);
    animation: pulse 2s infinite;
}

/* Текст уведомления */
.notification__text {
    flex: 1;
    line-height: 1.5;
    font-weight: 500;
}

/* Кнопка закрытия */
.notification__close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.notification__close:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* ===== ТОПОВЫЕ АНИМАЦИИ ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.9) rotateX(-15deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-8px) scale(1.1);
    }
    60% {
        transform: translateY(-4px) scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px) rotate(-1deg);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px) rotate(1deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .notification-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .notification {
        padding: 18px 20px;
        font-size: 14px;
        min-width: auto;
        max-width: none;
        border-radius: 10px;
    }
    
    .notification__close {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: 10px;
        right: 10px;
    }
}
