/* Journal toast notifications container */
.journal-toasts {
    position: fixed;
    right: 1rem;
    top: 5rem;
    width: auto;
    max-width: 400px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Individual toast - красивый outlined текст */
.journal-toast {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    pointer-events: none;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.9),
        1px -1px 0 rgba(0, 0, 0, 0.9),
        -1px 1px 0 rgba(0, 0, 0, 0.9),
        1px 1px 0 rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 0, 0, 0.6);
    animation: toast-fade-in 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), 
                opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.journal-toast.toast-removing {
    animation: toast-fade-out 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Toast importance colors - яркие цвета с обводкой */
.journal-toast-minor {
    color: rgba(255, 255, 255, 0.95);
}

.journal-toast-major {
    color: rgb(255, 215, 0);
    text-shadow: 
        -1px -1px 0 rgba(139, 69, 19, 0.9),
        1px -1px 0 rgba(139, 69, 19, 0.9),
        -1px 1px 0 rgba(139, 69, 19, 0.9),
        1px 1px 0 rgba(139, 69, 19, 0.9),
        0 0 8px rgba(255, 193, 7, 0.8),
        0 0 16px rgba(255, 193, 7, 0.6);
}

.journal-toast-milestone {
    color: rgb(255, 105, 180);
    font-size: 1rem;
    text-shadow: 
        -1px -1px 0 rgba(139, 0, 69, 0.9),
        1px -1px 0 rgba(139, 0, 69, 0.9),
        -1px 1px 0 rgba(139, 0, 69, 0.9),
        1px 1px 0 rgba(139, 0, 69, 0.9),
        0 0 10px rgba(233, 30, 99, 0.9),
        0 0 20px rgba(233, 30, 99, 0.7);
}

/* Animations - плавное появление и исчезновение */
@keyframes toast-fade-in {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-fade-out {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .journal-toasts {
        right: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .journal-toast {
        font-size: 0.85rem;
    }
    
    .journal-toast-milestone {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journal-toast {
        animation: none;
    }
    
    .journal-toast.toast-removing {
        animation: none;
    }
}

