/* VayLand — уведомления (общий компонент) */

.vl-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    padding: 0.9rem 3rem 0.9rem 1rem;
    border-radius: 12px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.88rem;
    line-height: 1.45;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1rem;
    animation: vl-alert-in 0.35s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes vl-alert-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vl-alert__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vl-alert__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.vl-alert__body {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.vl-alert__title {
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.vl-alert__text {
    margin: 0;
    font-weight: 500;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.vl-alert__close,
.vl-alert .close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    float: none;
    text-shadow: none;
    opacity: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.vl-alert__close svg,
.vl-alert .close svg {
    width: 14px;
    height: 14px;
    display: block;
}

.vl-alert__close span,
.vl-alert .close span {
    display: none;
}

.vl-alert__close:hover,
.vl-alert__close:focus,
.vl-alert .close:hover,
.vl-alert .close:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.42);
}

/* Success */
.vl-alert--success {
    color: #e8f5e6;
    background: linear-gradient(135deg, rgba(8, 18, 8, 0.94) 0%, rgba(12, 26, 12, 0.9) 100%);
    border: 1px solid rgba(17, 170, 1, 0.38);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(17, 170, 1, 0.1);
}

.vl-alert--success .vl-alert__icon {
    background: rgba(17, 170, 1, 0.18);
    color: #14cf00;
    border: 1px solid rgba(17, 170, 1, 0.35);
}

.vl-alert--success .vl-alert__title {
    color: #a8ff60;
}

.vl-alert--success .vl-alert__close:hover,
.vl-alert--success .vl-alert__close:focus,
.vl-alert--success .close:hover,
.vl-alert--success .close:focus {
    border-color: rgba(168, 255, 96, 0.4);
    color: #c8ff9a;
}

/* Error / danger */
.vl-alert--error {
    color: #ffe8e8;
    background: linear-gradient(135deg, rgba(22, 10, 12, 0.94) 0%, rgba(28, 12, 14, 0.9) 100%);
    border: 1px solid rgba(255, 71, 87, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 71, 87, 0.08);
}

.vl-alert--error .vl-alert__icon {
    background: rgba(255, 71, 87, 0.16);
    color: #ff6b7a;
    border: 1px solid rgba(255, 71, 87, 0.32);
}

.vl-alert--error .vl-alert__title {
    color: #ff9aa3;
}

.vl-alert--error .vl-alert__close:hover,
.vl-alert--error .vl-alert__close:focus,
.vl-alert--error .close:hover,
.vl-alert--error .close:focus {
    border-color: rgba(255, 130, 140, 0.4);
    color: #ffb3b8;
}

/* Warning */
.vl-alert--warn {
    color: #fff8e8;
    background: linear-gradient(135deg, rgba(22, 16, 8, 0.94) 0%, rgba(28, 20, 10, 0.9) 100%);
    border: 1px solid rgba(255, 152, 0, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 152, 0, 0.08);
}

.vl-alert--warn .vl-alert__icon {
    background: rgba(255, 152, 0, 0.16);
    color: #ffb347;
    border: 1px solid rgba(255, 152, 0, 0.32);
}

.vl-alert--warn .vl-alert__title {
    color: #ffd166;
}

.vl-alert--warn .vl-alert__close:hover,
.vl-alert--warn .vl-alert__close:focus,
.vl-alert--warn .close:hover,
.vl-alert--warn .close:focus {
    border-color: rgba(255, 209, 102, 0.4);
    color: #ffe08a;
}

/* Info */
.vl-alert--info {
    color: #e8f6ff;
    background: linear-gradient(135deg, rgba(8, 16, 22, 0.94) 0%, rgba(10, 20, 28, 0.9) 100%);
    border: 1px solid rgba(0, 188, 212, 0.32);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 188, 212, 0.08);
}

.vl-alert--info .vl-alert__icon {
    background: rgba(0, 188, 212, 0.14);
    color: #4fc3f7;
    border: 1px solid rgba(0, 188, 212, 0.28);
}

.vl-alert--info .vl-alert__title {
    color: #7dd3fc;
}

.vl-alert--info .vl-alert__close:hover,
.vl-alert--info .vl-alert__close:focus,
.vl-alert--info .close:hover,
.vl-alert--info .close:focus {
    border-color: rgba(125, 211, 252, 0.4);
    color: #a8e4ff;
}

@media (max-width: 480px) {
    .vl-alert {
        padding: 0.85rem 2.75rem 0.85rem 0.85rem;
        gap: 0.65rem;
    }

    .vl-alert__icon {
        width: 34px;
        height: 34px;
    }
}
