/* ============================================================
   C3 — Keyword Cannibalization Checker. Tool-specific styles.
   Base shell, hero, buttons, FAQ, CTA come from
   redirect-checker.css (loaded first).
   Angular clip-path corners only — never border-radius.
   ============================================================ */

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

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

.kc-form { display: flex; flex-direction: column; gap: 16px; }

.kc-field { display: flex; flex-direction: column; gap: 6px; }

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

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

.kc-form .btn-primary { align-self: flex-start; }

.rate-limit-note { font-size: 12px; margin: 2px 0 0; }

@media (max-width: 768px) {
    .kc-form .btn-primary { align-self: stretch; width: 100%; text-align: center; }
}

@media (max-width: 600px) {
    .kc-input { font-size: 16px; clip-path: none; }
}

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

.kc-output { margin-top: 36px; scroll-margin-top: 140px; }

/* ---- Verdict banner --------------------------------------------------- */

.kc-verdict {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 4px;
    clip-path: var(--clip-card);
    background: rgba(13, 13, 20, 0.5);
}
.kc-verdict--cannibalized { border-left-color: #fcd34d; }   /* amber: worth attention */
.kc-verdict--clean        { border-left-color: var(--neon-cyan); }
.kc-verdict--missing      { border-left-color: rgba(255, 255, 255, 0.25); }

.kc-verdict-mark {
    flex: 0 0 auto;
    min-width: 44px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-muted);
}
.kc-verdict--cannibalized .kc-verdict-mark { color: #fcd34d; }
.kc-verdict--clean .kc-verdict-mark        { color: var(--neon-cyan); }

.kc-verdict .kc-verdict-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
}

@media (max-width: 560px) {
    .kc-verdict { gap: 14px; padding: 16px; }
    .kc-verdict-mark { font-size: 32px; min-width: 34px; }
}

/* ---- Your competing pages (the hits) ----------------------------------- */

.kc-hits {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(252, 211, 77, 0.3);
    border-left-width: 3px;
    border-left-color: #fcd34d;
    clip-path: var(--clip-card);
    background: rgba(252, 211, 77, 0.05);
}

.kc-hits-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fcd34d;
    margin-bottom: 12px;
}

.kc-hit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.kc-hit:last-child { border-bottom: 0; padding-bottom: 0; }

.kc-hit-pos {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: #fcd34d;
    line-height: 1.5;
    min-width: 34px;
}
.kc-hit-body { flex: 1 1 auto; min-width: 0; }
.kc-hit-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}
.kc-hit-url {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neon-cyan);
    opacity: .85;
    text-decoration: none;
    word-break: break-all;
}
.kc-hit-url:hover { opacity: 1; text-decoration: underline; }

/* ---- Page-1 list ------------------------------------------------------- */

.kc-list { margin-bottom: 20px; }

.kc-list-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.kc-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: var(--clip-badge);
    background: rgba(20, 22, 30, 0.5);
}
.kc-row--target {
    border-color: rgba(252, 211, 77, 0.45);
    background: rgba(252, 211, 77, 0.06);
}

.kc-row-pos {
    flex: 0 0 auto;
    width: 30px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1.4;
}
.kc-row--target .kc-row-pos { color: #fcd34d; }

.kc-row-body { flex: 1 1 auto; min-width: 0; }

.kc-row-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.kc-row-url {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neon-cyan);
    opacity: .8;
    text-decoration: none;
    word-break: break-all;
}
.kc-row-url:hover { opacity: 1; text-decoration: underline; }

.kc-row-tag {
    flex: 0 0 auto;
    align-self: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1a1400;
    background: #fcd34d;
    padding: 3px 9px;
    clip-path: var(--clip-badge);
}

/* ---- Note + actions ---------------------------------------------------- */

.kc-note {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    clip-path: var(--clip-badge);
}

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

@media (max-width: 600px) {
    .kc-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;
    }
}
