/* 전역 토스트 — window.forumToast() */

.forum-toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(120%);
    z-index: 100050;
    max-width: min(92vw, 420px);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    line-height: 1.45;
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0;
    pointer-events: none;
}

.forum-toast--show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.forum-toast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-toast-row > span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.forum-toast-info {
    background: #1e293b;
    color: #f8fafc;
}

.forum-toast-success {
    background: #14532d;
    color: #f0fdf4;
}

.forum-toast-error {
    background: #7f1d1d;
    color: #fef2f2;
}

.forum-toast-action-btn {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: inherit;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.forum-toast-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
