/* ============================================================
   A5 — Nofollow / dofollow bulk checker
   Tool-specific styles. Page shell, hero, buttons, FAQ, CTA and
   design tokens come from /static/css/tools/redirect-checker.css
   (loaded first) and /static/landing/styles.css.
   Angular clip-path corners only — never border-radius.
   ============================================================ */

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

.nf-form-section {
    margin: 32px 0 16px;
}

.nf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.nf-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.nf-input,
.nf-textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.5;
    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;
}

.nf-textarea {
    min-height: 150px;
    resize: vertical;
}

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

@media (max-width: 760px) {
    /* 16px stops iOS Safari from auto-zooming on focus. */
    .nf-input,
    .nf-textarea { font-size: 16px; }
}

.nf-help {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.nf-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nf-count {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
}

.nf-count-over {
    color: #ffd365;
}

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

.nf-output {
    margin-top: 28px;
}

.nf-summary {
    margin-bottom: 18px;
}

.nf-summary-head {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary, #b8c0c8);
    margin: 0 0 12px;
}

.nf-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nf-pill {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    clip-path: var(--clip-badge);
    border: 1px solid;
}

.nf-pill-dofollow { color: #5af0cb; border-color: rgba(0, 245, 212, 0.5); background: rgba(0, 245, 212, 0.07); }
.nf-pill-nofollow { color: #ffd365; border-color: rgba(255, 184, 0, 0.5); background: rgba(255, 184, 0, 0.07); }
.nf-pill-mixed    { color: #d9a8ff; border-color: rgba(176, 116, 255, 0.5); background: rgba(176, 116, 255, 0.07); }
.nf-pill-sponsored { color: #d9a8ff; border-color: rgba(176, 116, 255, 0.5); background: rgba(176, 116, 255, 0.07); }
.nf-pill-ugc      { color: #8fb8ff; border-color: rgba(96, 150, 255, 0.5); background: rgba(96, 150, 255, 0.07); }
.nf-pill-not_found { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); }
.nf-pill-error    { color: #ff9b9b; border-color: rgba(255, 87, 87, 0.5); background: rgba(255, 87, 87, 0.08); }

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

.nf-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Top-right cut only — keep the brand angle but never clip the bottom
       horizontal scrollbar (a full --clip-card cuts the bottom-left corner). */
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    background: rgba(13, 13, 20, 0.6);
}

/* Hidden on desktop; on narrow screens the table scrolls horizontally and the
   Anchor column is off-screen, so hint that it's there. */
.nf-scroll-hint {
    display: none;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 8px;
}

@media (max-width: 760px) {
    .nf-scroll-hint { display: block; }
}

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

.nf-table th,
.nf-table td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.nf-table th {
    font-family: var(--font-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.nf-table tbody tr:last-child td {
    border-bottom: none;
}

.nf-cell-donor a {
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    word-break: break-all;
}

/* ---- Rel badges -------------------------------------------------------- */

.nf-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    margin: 0 5px 5px 0;
    clip-path: var(--clip-badge);
    border: 1px solid;
}

.nf-badge-dofollow  { color: #5af0cb; border-color: rgba(0, 245, 212, 0.5); background: rgba(0, 245, 212, 0.08); }
.nf-badge-nofollow  { color: #ffd365; border-color: rgba(255, 184, 0, 0.5); background: rgba(255, 184, 0, 0.08); }
.nf-badge-sponsored { color: #d9a8ff; border-color: rgba(176, 116, 255, 0.5); background: rgba(176, 116, 255, 0.08); }
.nf-badge-ugc       { color: #8fb8ff; border-color: rgba(96, 150, 255, 0.5); background: rgba(96, 150, 255, 0.08); }
.nf-badge-not_found { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.14); }
.nf-badge-error     { color: #ff9b9b; border-color: rgba(255, 87, 87, 0.5); background: rgba(255, 87, 87, 0.08); }
.nf-badge-mixed     { color: #d9a8ff; border-color: rgba(176, 116, 255, 0.5); background: rgba(176, 116, 255, 0.08); }

.nf-more {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ---- Output actions ---------------------------------------------------- */

.nf-output-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

@media (max-width: 480px) {
    .nf-output-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Product-CTA buttons live inside a <p> — the rule above doesn't reach
       them, so stack them full-width on small screens. */
    .product-cta a.btn-primary,
    .product-cta a.btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 0 10px;
    }
}

/* Low-commitment transitional CTA under the buttons. */
.cta-soft {
    font-size: 13px;
    color: var(--text-muted);
    margin: 14px 0 0;
}
