/* notification.css - прозрачный фон и эмблема при наведении */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.3); /* Прозрачный фон как у карточек */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(255, 255, 255, 0.02);
    pointer-events: none;
    font-family: Inter, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-align: center;
    font-weight: 400;
}

/* Текстовая ссылка с эмблемой при наведении */
.notification-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff6b81;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    gap: 12px;
}

/* Контейнер для SVG эмблемы (скрыт по умолчанию) */
.notification-link-emblema {
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: translateX(-10px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* SVG эмблема RS */
.notification-link-emblema svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(227, 6, 19, 0.6));
    transition: all 0.3s ease;
}

/* При наведении показываем эмблему */
.notification-text-link:hover .notification-link-emblema {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Усиливаем свечение при наведении */
.notification-text-link:hover .notification-link-emblema svg {
    filter: drop-shadow(0 0 8px rgba(227, 6, 19, 0.8));
}

/* Эффект свечения вокруг ссылки при наведении */
.notification-text-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 16px);
    height: calc(100% + 8px);
    transform: translate(-50%, -50%);
    background: rgba(227, 6, 19, 0.05);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.notification-text-link:hover::before {
    opacity: 1;
}

.notification-text-link:hover {
    color: #ffa1b8;
    text-shadow: 0 0 10px rgba(255, 107, 129, 0.5);
}

.notification-text-link.done {
    color: #4caf50;
    cursor: default;
}

.notification-text-link.done:hover {
    color: #4caf50;
    text-shadow: none;
}

.notification-text-link.done:hover::before {
    opacity: 0;
}

.notification-text-link.done:hover .notification-link-emblema {
    opacity: 0;
}

.notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    z-index: 1;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(90deg);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    gap: 8px;
}

.notification-icon {
    font-size: 20px;
    color: #ff6b81;
    filter: drop-shadow(0 0 4px rgba(255, 107, 129, 0.4));
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notification-footer {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .notification {
        max-width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 80px;
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    .notification {
        padding: 16px;
        bottom: 70px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-text-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .notification-link-emblema {
        width: 20px;
        height: 20px;
    }
}

/* Анимации для уведомления */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(100px) translateY(0);
        opacity: 0;
    }
}

.notification.show {
    animation: slideInFromBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notification.hide {
    animation: slideOutToRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}