/* ============================================================
   AI Crawler Access Checker. 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.
   Hex literals only for any green/glow: --neon-green/--glow-green
   are dashboard-only tokens, absent from the public shell.
   ============================================================ */

/* ---- Inline code in body copy ----------------------------------------- */

.tools-page code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    padding: 1px 5px;
    color: var(--neon-cyan);
    background: rgba(0, 245, 212, 0.07);
    border: 1px solid rgba(0, 245, 212, 0.18);
    clip-path: var(--clip-badge);
    word-break: break-word;
}

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

.aicc-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); }

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

.aicc-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;
}
.aicc-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
}

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

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

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

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

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

/* ---- "No robots.txt" banner ------------------------------------------- */

/* Same specificity battle as the banner — `.tools-page p` would mute the most
   important line in the result to 70% white; .tools-page prefix keeps it solid. */
.tools-page .aicc-summary-headline { color: var(--text-primary); }

/* .tools-page prefix raises specificity above redirect-checker.css's
   `.tools-page p { color: ... }`, which would otherwise mute this to white. */
.tools-page .aicc-banner {
    margin: 0 0 16px;
    padding: 14px 18px;
    font-size: 14px;
    color: #fcd34d;
    border: 1px solid rgba(252, 211, 77, 0.3);
    clip-path: var(--clip-badge);
    background: rgba(252, 211, 77, 0.06);
}

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

.aicc-summary {
    padding: 20px 22px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left-width: 4px;
    clip-path: var(--clip-card);
    background: rgba(13, 13, 20, 0.6);
}
.aicc-summary--all_allowed,
.aicc-summary--training_opted_out { border-left-color: #2ee6a6; }
.aicc-summary--blocking_search { border-left-color: #ff5d6c; }
.aicc-summary--mixed { border-left-color: #fcd34d; }

.aicc-summary-headline {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.35;
}
.aicc-summary-detail {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #c6c9d4);
    margin: 0 0 14px;
}

.aicc-count-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.aicc-count-chip {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 5px 12px;
    clip-path: var(--clip-badge);
    border: 1px solid transparent;
}
.aicc-count-chip--ok {
    color: #2ee6a6;
    background: rgba(46, 230, 166, 0.08);
    border-color: rgba(46, 230, 166, 0.3);
}
.aicc-count-chip--blocked {
    color: #ff5d6c;
    background: rgba(255, 93, 108, 0.08);
    border-color: rgba(255, 93, 108, 0.3);
}

/* ---- Group blocks ------------------------------------------------------ */

.aicc-group { margin-bottom: 26px; }

/* .tools-page prefix beats redirect-checker.css's `.tools-page h3 { color:
   var(--neon-cyan) }`, so group titles stay white and don't merge with the
   cyan bot tokens below them. */
.tools-page .aicc-group-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.aicc-group-blurb {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 12px;
}

/* ---- Verdict table ----------------------------------------------------- */

.aicc-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(13, 13, 20, 0.5);
}
.aicc-table thead th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}
.aicc-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}
.aicc-table tbody tr:last-child td { border-bottom: none; }

.aicc-cell-bot { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.aicc-bot-token {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--neon-cyan);
}
.aicc-bot-vendor { font-size: 12px; color: var(--text-muted); }
.aicc-bot-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: 2px; }

.aicc-cell-rule {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-word;
}

/* ---- Pills + badges ---------------------------------------------------- */

.aicc-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 3px 10px;
    clip-path: var(--clip-badge);
    white-space: nowrap;
}
.aicc-pill--allowed {
    color: #2ee6a6;
    background: rgba(46, 230, 166, 0.1);
    border: 1px solid rgba(46, 230, 166, 0.35);
}
.aicc-pill--blocked {
    color: #ff5d6c;
    background: rgba(255, 93, 108, 0.1);
    border: 1px solid rgba(255, 93, 108, 0.35);
}

.aicc-honors {
    display: inline-block;
    font-size: 12px;
    line-height: 1.4;
}
.aicc-honors--yes { color: var(--text-secondary, #c6c9d4); }
.aicc-honors--user-initiated { color: #fcd34d; }
.aicc-honors--no { color: #ff9d6c; }

/* ---- Honest caveat ----------------------------------------------------- */

.aicc-caveat {
    margin: 6px 0 8px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid rgba(252, 211, 77, 0.5);
    clip-path: var(--clip-badge);
    background: rgba(13, 13, 20, 0.45);
}

/* ---- Error ------------------------------------------------------------- */

.aicc-error-msg {
    padding: 16px 20px;
    border: 1px solid rgba(255, 93, 108, 0.4);
    clip-path: var(--clip-badge);
    background: rgba(255, 93, 108, 0.07);
}

/* ---- CTA token stack -------------------------------------------------- */

.cta-stack {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--neon-cyan);
    margin: 4px 0 16px;
}

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

.aicc-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Responsive: stack table rows into cards on mobile ---------------- */

@media (max-width: 680px) {
    .aicc-table, .aicc-table tbody, .aicc-table tr, .aicc-table td { display: block; width: 100%; }
    .aicc-table thead { display: none; }
    .aicc-table { border: none; background: none; }
    .aicc-table tr {
        margin-bottom: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        clip-path: var(--clip-card);
        background: rgba(13, 13, 20, 0.5);
        padding: 4px 2px;
    }
    .aicc-table tbody td { border-bottom: none; padding: 8px 14px; }
    /* The td goes display:block here, killing .aicc-cell-bot's flex column, so the
       inline spans would run together (name+vendor+note on one line). Stack them
       explicitly and restore the gap. */
    .aicc-cell-bot .aicc-bot-token,
    .aicc-cell-bot .aicc-bot-vendor,
    .aicc-cell-bot .aicc-bot-note { display: block; }
    .aicc-cell-bot .aicc-bot-token,
    .aicc-cell-bot .aicc-bot-vendor { margin-bottom: 2px; }
    .aicc-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-mono);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 4px;
    }
    .aicc-actions { flex-direction: column; }
    .aicc-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;
    }
}
