/* EduToast — single canonical toast styling for the EduPreps platform.
   Loaded from every portal layout (Public.Core, Academy, Guild, Faculty, Landing).
   See wwwroot/js/eduprep-toast.js for the matching API. */

#edu-toast-container {
    position: fixed;
    top: 88px;
    right: 16px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 360px;
}

@media (max-width: 640px) {
    #edu-toast-container {
        top: 72px;
        right: 8px;
        left: 8px;
        max-width: none;
    }
}

.edu-toast {
    pointer-events: auto;
    background: #FFFFFF;
    border: 1px solid #E7E5E4;
    border-left-width: 4px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: edu-toast-in 0.25s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.edu-toast--success { border-left-color: #22C55E; }
.edu-toast--info    { border-left-color: #3B82F6; }
.edu-toast--warning { border-left-color: #F59E0B; }
.edu-toast--error   { border-left-color: #EF4444; }
.edu-toast--message { border-left-color: #8B5CF6; }

.edu-toast__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    background: #FEF3C7;
    color: #92400E;
}

.edu-toast--success .edu-toast__icon { background: #DCFCE7; color: #166534; }
.edu-toast--info    .edu-toast__icon { background: #DBEAFE; color: #1E40AF; }
.edu-toast--warning .edu-toast__icon { background: #FEF3C7; color: #92400E; }
.edu-toast--error   .edu-toast__icon { background: #FEE2E2; color: #991B1B; }
.edu-toast--message .edu-toast__icon { background: #EDE9FE; color: #5B21B6; }

.edu-toast__body { flex: 1; min-width: 0; }
.edu-toast__title { font-size: 13px; font-weight: 600; color: #1C1917; margin: 0 0 2px; }
.edu-toast__text {
    font-size: 12px;
    color: #57534E;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.edu-toast__text p,
.edu-toast__text ul,
.edu-toast__text ol { margin: 0 0 4px; }
.edu-toast__text p:last-child,
.edu-toast__text ul:last-child,
.edu-toast__text ol:last-child { margin-bottom: 0; }
.edu-toast__text a { color: #2563EB; text-decoration: underline; }
.edu-toast__text strong { font-weight: 600; color: #1C1917; }
.edu-toast__text ul,
.edu-toast__text ol { padding-left: 18px; }

.edu-toast__close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #A8A29E;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
}
.edu-toast__close:hover { background: #F5F5F4; color: #1C1917; }

.edu-toast--leaving { animation: edu-toast-out 0.25s ease-in forwards; }

@keyframes edu-toast-in {
    from { transform: translateX(24px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes edu-toast-out {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(24px); opacity: 0; }
}
