/* ═════ Page-alert banner (server-side, hero'nun üstünde) ═════
   Controller HttpContext.AddPageWarning/AddPageError/AddPageInfo çağırır;
   _Layout.cshtml RenderBody'den önce render eder. Tüm sayfalarda tutarlı görünüm.
   Page-scope prefix: .ip-page-alert*
*/
.ip-page-alerts {
    padding: 10px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ip-page-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 3px 10px rgba(15, 23, 42, 0.04);
    animation: ipPageAlertIn 0.22s ease-out both;
}

@keyframes ipPageAlertIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ip-page-alert-icon {
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ip-page-alert-body {
    flex: 1 1 auto;
    min-width: 0;
}

.ip-page-alert-title {
    display: block;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.005em;
}

.ip-page-alert-msg {
    color: #475569;
    margin-top: 3px;
    word-break: break-word;
}

.ip-page-alert-msg code {
    background: rgba(15, 23, 42, 0.07);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #334155;
}

.ip-page-alert-action {
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    align-self: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    color: #334155;
    flex-shrink: 0;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
    white-space: nowrap;
}

.ip-page-alert-action:hover {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.3);
}

.ip-page-alert-close {
    background: none;
    border: 0;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    align-self: flex-start;
    margin-left: 4px;
    transition: color 0.14s;
    font-family: system-ui, sans-serif;
}

.ip-page-alert-close:hover { color: #0f172a; }
.ip-page-alert-close:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Severity variants ─── */
.ip-page-alert--info {
    background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 60%);
    border-color: #bfdbfe;
}
.ip-page-alert--info .ip-page-alert-icon { color: #2563eb; }

.ip-page-alert--warning {
    background: linear-gradient(90deg, #fef3c7 0%, #fffbeb 60%);
    border-color: #fcd34d;
}
.ip-page-alert--warning .ip-page-alert-icon { color: #b45309; }

.ip-page-alert--error {
    background: linear-gradient(90deg, #fef2f2 0%, #fff7ed 60%);
    border-color: #fecaca;
}
.ip-page-alert--error .ip-page-alert-icon { color: #dc2626; }

@media (max-width: 575.98px) {
    .ip-page-alerts { padding: 8px 12px 0; }
    .ip-page-alert { flex-wrap: wrap; padding: 8px 12px; font-size: 12.5px; }
    .ip-page-alert-action { margin-top: 4px; }
}
