/* Toast-уведомления для форума */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    position: relative;
}

.toast.toast-info {
    border-left-color: #4a9eff;
}

.toast.toast-success {
    border-left-color: var(--color-success);
}

.toast.toast-warning {
    border-left-color: var(--color-warning);
}

.toast.toast-error {
    border-left-color: var(--color-danger);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.toast-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.toast-icon {
    font-size: 1.1rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.toast-body {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-time {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 6px;
    display: block;
}

.toast-action {
    margin-top: 10px;
}

.toast-action-btn {
    background: rgba(192, 160, 112, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toast-action-btn:hover {
    background: rgba(192, 160, 112, 0.2);
    transform: translateY(-1px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

@media (max-width: 576px) {
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* === Toast-уведомление с аватаром (как в dropdown) === */
.toast.toast-notification {
    padding: 12px 16px;
    border-left: none;
    min-width: 320px;
    max-width: 450px;
}

.toast-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.toast-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.toast-action-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: white;
    border: 2px solid var(--bg-light);
}

.toast-action-icon.icon-like {
    background: #3b82f6;
}

.toast-action-icon.icon-reply {
    background: #10b981;
}

.toast-action-icon.icon-mention {
    background: #8b5cf6;
}

.toast-action-icon.icon-follow {
    background: #10b981;
}

.toast-action-icon.icon-wall {
    background: #f59e0b;
}

.toast-action-icon.icon-subscription {
    background: #ec4899;
}

.toast-action-icon.icon-default {
    background: var(--accent-gold);
}

.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-light);
}

.toast-message a {
    color: var(--accent-gold);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.toast-message a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.toast-preview {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
    word-break: break-word;
}

.toast-notification .toast-close {
    flex-shrink: 0;
    margin-left: auto;
}