/* SEO Audit group — additions on top of the v2 form kit (v2-forms.css).
   Loaded by every /seo-audit/ page right after v2-forms.css. */

/* kit candidate: a long tab strip (7 sibling tools). Tabs share the width and
   cut long descriptions; below 1280px the strip scrolls sideways instead. */
.tform-tabs--many .tform-tab { flex: 1 1 0; min-width: 0; }
.tform-tabs--many .tform-tab > b, .tform-tabs--many .tform-tab > span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1280px) {
    .tform-tabs--many { overflow-x: auto; }
    .tform-tabs--many .tform-tab { flex: 1 0 auto; min-width: 140px; }
}

/* kit candidate: radio pills — pick one of a few numbers (pages to crawl) */
.tform-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Same frame and height as the fields (40 = 32 + 3px padding + 1px border), like .tform-seg in v2-forms.css */
.tform-pills-set { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); max-width: 100%; }
.tform-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-sm); color: var(--text-3); font-size: 13.5px; font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; }
.tform-pill:hover { color: var(--text); }
.tform-pill > input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tform-pill:has(> input[type="radio"]:checked) { background: var(--bg-hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tform-pill:has(> input[type="radio"]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.tform-pill .tform-input, .tform-pills > .tform-input { width: 92px; height: 30px; padding: 0 8px; font-size: 13.5px; text-align: center; }
.tform-pills > .tform-input { height: 40px; }
.tform-pills input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.tform-pills input[type="number"]::-webkit-inner-spin-button, .tform-pills input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tform-pills .tform-or-word { font-size: 13px; color: var(--text-3); }

/* kit candidate: file drop zone */
.tform-drop { display: grid; justify-items: center; gap: 6px; padding: 26px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--bg); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.tform-drop:hover, .tform-drop.drag-over { border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.04); }
.tform-drop:focus-visible { outline: none; border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.tform-drop.has-file { border-style: solid; border-color: rgba(var(--accent-rgb), 0.55); }
.tform-drop .upload-icon { color: var(--text-3); line-height: 0; }
.tform-drop .upload-icon svg { width: 22px; height: 22px; }
.tform-drop .upload-text { font-size: 14px; color: var(--text); }
.tform-drop .upload-formats { max-width: 46em; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.tform-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; color: var(--text-2); }

/* kit candidate: status / progress lines at the bottom of the card */
.tform-status { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.tform-bar { height: 3px; overflow: hidden; background: var(--line); }
.tform-bar > i, .tform-bar > .bar, .tform-bar > .progress-fill { display: block; height: 100%; background: var(--accent); border-radius: 0; transition: width 0.3s; }
.tform-cost .tform-cost-note { color: var(--text-3); }

/* Two fields side by side (domain + location, URL + keyword) */
.tform-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 720px) {
    .tform-cols { grid-template-columns: 1fr; }
    .tform-status { padding: 12px 16px; }
}

/* Results sections follow the form section directly */
.app-container .hero-section--form > .tform { margin-bottom: 24px; }

/* kit candidate: on phones an info popover in the run bar spans the card width
   (anchored to the run bar), so it never runs past the screen edge */
@media (max-width: 720px) {
    .tform-run { position: relative; }
    .tform-run .tform-switch, .tform-run .tform-info { position: static; }
    .tform-run .tform-pop { left: 16px; right: 16px; width: auto; transform: none; bottom: calc(100% - 6px); }
}
@media (max-width: 720px) { .tform-opt > summary small { display: none; } }
