/* ERP HubSpot Blog — Custom Alert / Toast Notifications */

.blog-alert-container {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.blog-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2eaf2;
    box-shadow: 0 12px 40px rgba(2, 48, 88, 0.14);
    pointer-events: auto;
    animation: blogAlertIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    position: relative;
    overflow: hidden;
}

.blog-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.blog-alert.is-success::before { background: #00a86b; }
.blog-alert.is-error::before { background: #e53935; }
.blog-alert.is-warning::before { background: #f59a00; }
.blog-alert.is-info::before { background: var(--primary-color); }

.blog-alert.is-hiding {
    animation: blogAlertOut 0.28s ease forwards;
}

.blog-alert__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #fff;
}

.blog-alert.is-success .blog-alert__icon { background: #00a86b; }
.blog-alert.is-error .blog-alert__icon { background: #e53935; }
.blog-alert.is-warning .blog-alert__icon { background: #f59a00; }
.blog-alert.is-info .blog-alert__icon { background: var(--primary-color); }

.blog-alert__content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.blog-alert__title {
    font-size: 14px;
    font-weight: 800;
    color: #023058;
    margin: 0 0 4px;
    line-height: 1.3;
}

.blog-alert__message {
    font-size: 13px;
    line-height: 1.55;
    color: #4a5d6e;
    margin: 0;
}

.blog-alert__close {
    background: none;
    border: none;
    color: #8fa3b5;
    cursor: pointer;
    padding: 2px;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.blog-alert__close:hover {
    color: #023058;
}

@keyframes blogAlertIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes blogAlertOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(24px);
    }
}

@media (max-width: 767px) {
    .blog-alert-container {
        top: 72px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}
