/* ============================================================
   C1 — SERP Position 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 -------------------------------------------------------------- */

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

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

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

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

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

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

/* Below tablet the stacked full-width inputs make a content-width button look
   small and detached — stretch it to match them from 768px down. */
@media (max-width: 768px) {
    .spc-form .btn-primary { align-self: stretch; width: 100%; text-align: center; }
}

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

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

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

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

.spc-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);
}
.spc-verdict--found   { border-left-color: var(--neon-cyan); }
.spc-verdict--missing { border-left-color: #fcd34d; }

.spc-verdict-rank {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--neon-cyan);
}
.spc-verdict-mark {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: #fcd34d;
}
/* Specificity bump (.spc-verdict scope) so the base `.tools-page p` muted
   colour doesn't win — the verdict sentence reads full-strength next to #rank. */
.spc-verdict .spc-verdict-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
}

@media (max-width: 560px) {
    .spc-verdict { gap: 14px; padding: 16px; }
    .spc-verdict-rank { font-size: 34px; }
}

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

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

.spc-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;
}

.spc-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);
}
.spc-row--target {
    border-color: rgba(0, 245, 212, 0.45);
    background: rgba(0, 245, 212, 0.06);
}

.spc-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;
}
.spc-row--target .spc-row-pos { color: var(--neon-cyan); }

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

.spc-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;
}
.spc-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;
}
.spc-row-url:hover { opacity: 1; text-decoration: underline; }

.spc-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: #041014;
    background: var(--neon-cyan);
    padding: 3px 9px;
    clip-path: var(--clip-badge);
}

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

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

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

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