/* ============================================================
   B3 — Outbound Links Analyzer. Tool-specific styles.
   Base shell, hero, buttons, FAQ, and CTA come from
   redirect-checker.css (loaded first).
   Angular clip-path corners only — never border-radius.
   ============================================================ */

/* ---- Form -------------------------------------------------------------- */

.ola-form-wrap { margin: 40px 0 16px; }

.field-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.field-label .field-req { font-weight: 400; color: var(--neon-cyan); }

.ola-input-row { display: flex; gap: 12px; align-items: stretch; }

.ola-input {
    flex: 1 1 auto;
    width: 100%;
    padding: 14px 16px;
    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;
}
.ola-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
}

.ola-input-row .btn-primary { flex: 0 0 auto; white-space: nowrap; }

.rate-limit-note { font-size: 13px; margin-top: 10px; }

@media (max-width: 600px) {
    .ola-input-row { flex-direction: column; }
    .ola-input { font-size: 16px; flex-basis: auto; clip-path: none; }
    .ola-input-row .btn-primary { width: 100%; text-align: center; }
}

/* ---- Summary strip ---------------------------------------------------- */

.ola-output { margin-top: 36px; scroll-margin-top: 120px; }

.ola-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: var(--clip-card);
    background: rgba(13, 13, 20, 0.5);
}

.ola-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: var(--clip-badge);
    background: rgba(255, 255, 255, 0.03);
}
.ola-stat-num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--neon-cyan);
}
.ola-stat-num--warn { color: #ffd365; }
.ola-stat-num--note { color: #a78bfa; }
.ola-stat-num--info { color: #94a3b8; }
.ola-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.ola-truncated-note {
    flex: 1 0 100%;
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

@media (max-width: 560px) {
    .ola-summary-strip { gap: 8px; }
    .ola-stat { min-width: 64px; padding: 8px 10px; }
    .ola-stat-num { font-size: 24px; }
}

/* ---- Domain group accordion ------------------------------------------- */

.ola-groups { margin-bottom: 8px; }

.ola-group {
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    clip-path: var(--clip-badge);
    background: rgba(20, 22, 30, 0.55);
}

.ola-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.ola-group-header::-webkit-details-marker { display: none; }

.ola-group-domain {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--neon-cyan);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ola-group-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 0 auto;
}

.ola-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 2px 8px;
    border: 1px solid;
    clip-path: var(--clip-badge);
}
.ola-chip--ok   { color: #5af0cb; border-color: rgba(90, 240, 203, 0.3); background: rgba(90, 240, 203, 0.05); }
.ola-chip--info { color: #94a3b8; border-color: rgba(148, 163, 184, 0.25); background: rgba(148, 163, 184, 0.04); }
.ola-chip--note { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.3); background: rgba(196, 181, 253, 0.05); }
.ola-chip--warn { color: #fcd34d; border-color: rgba(252, 211, 77, 0.3); background: rgba(252, 211, 77, 0.05); }

.ola-group-toggle {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-muted);
    transition: transform .2s;
}
details[open] .ola-group-toggle { transform: rotate(180deg); }

/* ---- Per-link table inside a group ------------------------------------- */

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

.ola-link-table th {
    padding: 7px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    white-space: nowrap;
}

.ola-link-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
    word-break: break-word;
}

.ola-link-table tr:last-child td { border-bottom: none; }

.ola-link-href {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neon-cyan);
    opacity: .85;
    text-decoration: none;
    word-break: break-all;
    display: block;
    max-width: 340px;
}
.ola-link-href:hover { opacity: 1; text-decoration: underline; }

.ola-link-anchor {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-primary);
}
.ola-link-anchor--empty {
    font-style: italic;
    color: var(--text-muted);
    font-size: 12px;
}

.ola-rel-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 2px 7px;
    border: 1px solid;
    clip-path: var(--clip-badge);
    white-space: nowrap;
}
.ola-rel-ok    { color: #5af0cb; border-color: rgba(90, 240, 203, 0.3); background: rgba(90, 240, 203, 0.05); }
.ola-rel-info  { color: #94a3b8; border-color: rgba(148, 163, 184, 0.25); background: rgba(148, 163, 184, 0.04); }
.ola-rel-note  { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.3); background: rgba(196, 181, 253, 0.05); }
.ola-rel-warn  { color: #fcd34d; border-color: rgba(252, 211, 77, 0.3); background: rgba(252, 211, 77, 0.05); }

@media (max-width: 640px) {
    .ola-link-table thead { display: none; }
    .ola-link-table tr {
        display: block;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .ola-link-table td {
        display: block;
        padding: 3px 0;
        border: none;
    }
    .ola-link-href { max-width: 100%; }
}

/* ---- Zero-state -------------------------------------------------------- */

.ola-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    clip-path: var(--clip-badge);
}

/* ---- Actions ----------------------------------------------------------- */

.ola-actions { margin-top: 22px; }

@media (max-width: 600px) {
    .ola-actions .btn-secondary { width: 100%; text-align: center; }
    .product-cta a.btn-primary,
    .product-cta a.btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 0 10px;
    }
}
