/* ============================================================
   A3 — Lost Backlink Detector (Lite) — authed free monitoring
   Shared tokens, buttons, hero, FAQ, CTA, chips come from
   redirect-checker.css (loaded first). Angular clip-path only —
   NEVER border-radius.
   ============================================================ */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---- Panel + auth note ------------------------------------------------- */

.lbd-panel { margin: 32px 0 8px; }

.lbd-auth-note {
    margin: 0 0 8px;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary, #b8c0c8);
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-left-width: 3px;
    clip-path: var(--clip-card);
}

.lbd-auth-note a { color: var(--neon-cyan); font-weight: 600; text-decoration: none; }
.lbd-auth-note a:hover { text-decoration: underline; }

.lbd-auth-note-text { margin: 0 0 16px; }

/* Inner action row is flex; the OUTER .lbd-auth-note stays block so its
   `hidden` toggle keeps working (UA [hidden]{display:none} is not overridden). */
.lbd-auth-note-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }

/* `.lbd-auth-note a` colours links cyan; the primary button needs its dark
   on-cyan label back, or it would be cyan-on-cyan (invisible). */
.lbd-auth-note .btn-primary { color: var(--bg-deep); }
.lbd-auth-note .btn-primary:hover { text-decoration: none; }

/* ---- Add form --------------------------------------------------------- */

.lbd-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(13, 13, 20, 0.6);
    border: 1px solid rgba(0, 245, 212, 0.2);
    clip-path: var(--clip-card);
}

/* `display:flex` above outranks the UA `[hidden]{display:none}`, so the JS
   `form.hidden = true` (anon visitors) would otherwise leave the form visible
   next to the "create an account" note. Restore the hidden behaviour. */
.lbd-form[hidden] { display: none; }

.lbd-field { display: flex; flex-direction: column; }

.lbd-form .field-label { display: block; margin-bottom: 6px; }

.lbd-input {
    width: 100%;
    padding: 13px 15px;
    font-family: var(--font-mono);
    font-size: 15px;
    background: rgba(13, 13, 20, 0.85);
    border: 1px solid rgba(0, 245, 212, 0.3);
    clip-path: var(--clip-badge);
    color: var(--text-primary);
    transition: border-color .2s, box-shadow .2s;
}

.lbd-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
}

@media (max-width: 720px) {
    .lbd-input { font-size: 16px; }  /* iOS no-zoom */
}

.lbd-hint {
    margin: 6px 0 0;
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* rel select + submit on ONE axis (label above, equal height row) */
.lbd-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.lbd-field--rel { flex: 0 0 160px; }
.lbd-field--rel .lbd-input { height: 100%; }

.lbd-row .btn-primary {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 13px 22px;
}

@media (max-width: 560px) {
    .lbd-row { flex-direction: column; align-items: stretch; }
    .lbd-field--rel { flex: 1 1 auto; }
    .lbd-row .btn-primary { align-self: stretch; width: 100%; }
}

/* ---- Results ---------------------------------------------------------- */

.lbd-results { margin-top: 24px; }

.lbd-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.lbd-results-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
}

.lbd-quota {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #7fe8d4;
    background: rgba(0, 245, 212, 0.07);
    border: 1px solid rgba(0, 245, 212, 0.25);
    padding: 3px 10px;
    clip-path: var(--clip-badge);
}

.lbd-table-scroll { overflow-x: auto; }

.lbd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lbd-table thead th {
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    background: rgba(13, 13, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    white-space: nowrap;
}

.lbd-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.lbd-table tbody tr:hover { background: rgba(0, 245, 212, 0.03); }

.lbd-table td { padding: 10px 12px; vertical-align: top; line-height: 1.4; }

.col-donor, .col-target { min-width: 200px; max-width: 320px; }
.col-status { width: 120px; }
.col-checked { width: 100px; white-space: nowrap; color: var(--text-muted); }
.col-actions { width: 90px; text-align: right; }

.lbd-url {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-secondary, #b8c0c8);
    word-break: break-all;
}

/* ---- Status badges ---------------------------------------------------- */

.lbd-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 9px;
    clip-path: var(--clip-badge);
}

.lbd-st-ok      { background: rgba(0, 245, 212, 0.13); color: #5af0cb; }
.lbd-st-warn    { background: rgba(255, 184, 0, 0.14); color: #ffd365; }
.lbd-st-err     { background: rgba(255, 87, 87, 0.16); color: #ff9b9b; }
.lbd-st-pending { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.lbd-substatus {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ---- Remove button ---------------------------------------------------- */

.lbd-remove {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: #ff9b9b;
    background: transparent;
    border: 1px solid rgba(255, 87, 87, 0.35);
    padding: 5px 12px;
    clip-path: var(--clip-badge);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.lbd-remove:hover { background: rgba(255, 87, 87, 0.12); border-color: rgba(255, 87, 87, 0.6); }
.lbd-remove:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Empty + note ----------------------------------------------------- */

.lbd-empty {
    margin: 16px 0 0;
    padding: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(13, 13, 20, 0.5);
    border: 1px dashed rgba(0, 245, 212, 0.25);
    clip-path: var(--clip-card);
}

.lbd-note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.lbd-note strong { color: var(--text-secondary, #b8c0c8); }
