/* ═══════════════════════════════════════════════════════════════════
   /css/alerts.css — shared alert-list styles.
   Loaded by /alerts.php (standalone page) and /index.php (Alerts tab pane).
   ─────────────────────────────────────────────────────────────────── */

/* ── Search bar ────────────────────────────────────────── */
.al-search {
    position: relative;
    margin-bottom: 14px;
}
.al-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--c-border2);
    background: rgba(255,255,255,.03);
    border-radius: 100px;
    color: var(--c-text1);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.al-search input::placeholder { color: var(--c-text3); }
.al-search input:focus {
    border-color: var(--c-text2);
    background: rgba(255,255,255,.05);
}
.al-search-icon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--c-text3);
    pointer-events: none;
}

.al-empty-search {
    text-align: center;
    padding: 40px 24px;
    color: var(--c-text3);
}
.al-empty-search-icon { font-size: 28px; margin-bottom: 6px; }
.al-empty-search-h {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ── List + rows ───────────────────────────────────────── */
.al-list { display: flex; flex-direction: column; gap: 8px; }

.al-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--c-bg2);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-border);
    border-radius: 10px;
    color: var(--c-text2);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
}
.al-row:hover {
    border-color: var(--c-border2);
    background: var(--c-bg3, rgba(255,255,255,.02));
}
.al-row:active { transform: translateX(1px); }
.al-row-flip   { border-left-color: #16c784; }
.al-row-sl     { border-left-color: #e5091a; }
.al-row-target { border-left-color: var(--c-warn, #f59e0b); }

.al-row-body  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.al-row-title {
    font-size: 14px; font-weight: 600;
    color: var(--c-text1);
    letter-spacing: -.005em;
    line-height: 1.35;
}
.al-row-sub {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--c-text3);
    letter-spacing: .02em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.al-row-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.al-row-age {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--c-text3);
    letter-spacing: .04em; text-transform: uppercase;
    white-space: nowrap;
}
.al-row-chev {
    color: var(--c-text3);
    font-size: 22px; line-height: 1;
    transition: transform .15s ease, color .15s ease;
}
.al-row:hover .al-row-chev { color: var(--c-text1); transform: translateX(3px); }

/* ── Empty / loading states ────────────────────────────── */
.al-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 56px 24px;
    border: 1px dashed var(--c-border);
    border-radius: 14px;
}
.al-empty-icon { color: var(--c-warn, #f59e0b); margin-bottom: 18px; }
.al-empty-icon svg { width: 56px; height: 56px; filter: drop-shadow(0 0 28px rgba(245,158,11,.55)); }
.al-empty-h {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: .03em; line-height: 1;
    color: var(--c-text1);
    margin: 0 0 10px;
}
.al-empty-p {
    font-size: 14px;
    color: var(--c-text2); line-height: 1.55;
    max-width: 42ch;
    margin: 0 0 22px;
}
.al-empty-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    background: var(--c-red); color: #fff;
    border: 0; border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.al-empty-cta:hover  { background: #c50815; }

.al-loading {
    text-align: center;
    padding: 40px 24px;
    color: var(--c-text3);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase;
}

.al-cap {
    text-align: center;
    margin-top: 24px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--c-text3);
    letter-spacing: .12em; text-transform: uppercase;
}

/* ── Standalone-page chrome (only used by /alerts.php) ─── */
.al-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 32px 80px;
}
@media (max-width: 760px) {
    .al-shell { padding: 32px 16px 100px; }
}
.al-hero { margin-bottom: 32px; }
.al-eyebrow {
    display: inline-block;
    padding: 5px 11px;
    background: rgba(245,158,11,.10);
    color: var(--c-warn, #f59e0b);
    font-family: 'DM Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(245,158,11,.24);
    margin-bottom: 16px;
}
.al-h {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: clamp(48px, 7vw, 72px);
    line-height: 1;
    letter-spacing: .015em;
    color: var(--c-text1);
    margin: 0 0 10px;
}
.al-sub {
    font-size: 15px;
    color: var(--c-text2);
    line-height: 1.55;
    max-width: 56ch;
    margin: 0;
}
