/* css/components/notifications.css - Глобальные всплывающие уведомления (Toasts) */

#global-toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none; /* Пропускаем клики сквозь контейнер, если он пуст */
}

.toast-notification {
    background: var(--card-bg, #141419);
    border: 1px solid var(--border-color, #2a2a35);
    border-radius: 14px;
    padding: 16px 20px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: auto; /* Возвращаем клики для самих карточек */
    position: relative;
    overflow: hidden;
}

.toast-notification::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
}

.toast-notification.success::before { background: #28c76f; }
.toast-notification.error::before { background: #ea5455; }
.toast-notification.info::before { background: #6a5aff; }

.toast-notification.show {
    transform: translateX(0);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-notification.success .toast-icon { background: rgba(40, 199, 111, 0.15); color: #28c76f; }
.toast-notification.error .toast-icon { background: rgba(234, 84, 85, 0.15); color: #ea5455; }
.toast-notification.info .toast-icon { background: rgba(106, 90, 255, 0.15); color: #6a5aff; }

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-color, #ffffff);
    margin-bottom: 4px;
    font-family: 'Minecraft', sans-serif;
    letter-spacing: 0.5px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted, #9aa0a6);
    line-height: 1.4;
}

/* Адаптивность для мобилок */
@media (max-width: 576px) {
    #global-toast-container {
        top: 20px;
        right: 15px;
        left: 15px;
        align-items: center;
    }
    .toast-notification {
        width: 100%;
        max-width: 100%;
    }
}
[data-theme="light"] .toast-notification {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.06);
    color: #2D2D2D;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
[data-theme="light"] .toast-content h4 {
    color: #2D2D2D;
}
[data-theme="light"] .toast-content p {
    color: #6C6C6C;
}
[data-theme="light"] .toast-close {
    color: #6C6C6C;
}
[data-theme="light"] .toast-close:hover {
    color: #2D2D2D;
}
