/* Subdomain Finder - tool-specific overrides on top of shared
 * primitives in code/assets/css/tools.css.
 */

/* ========================================================================
   Form labels / hints
   ======================================================================== */
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin: 14px 0 6px 0;
}
.field-label:first-child {
    margin-top: 0;
}
.field-hint {
    margin-left: 6px;
    color: var(--ink-500);
    font-weight: 400;
    font-size: 12px;
}
.bulk-count.is-over {
    color: var(--brand-red);
    font-weight: 600;
}

/* ========================================================================
   Quota chip (single horizontal pill)
   ======================================================================== */
.quota-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 12px 0 0;
    border-radius: 999px;
    background: var(--ink-50);
    border: 1px solid var(--ink-100);
    font-size: 13px;
    color: var(--ink-700);
}
.quota-chip-icon {
    display: inline-flex;
    align-items: center;
    color: var(--brand);
}
.quota-chip-icon svg {
    width: 16px;
    height: 16px;
}
.quota-chip-text {
    font-feature-settings: var(--tnum);
    font-weight: 500;
}
.quota-chip.is-warning {
    background: #fef9c3;
    border-color: #fde68a;
    color: #854d0e;
}
.quota-chip.is-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: var(--bad-fg);
}

/* ========================================================================
   Results subhead - "5 root domains, 36 subdomains found" summary line
   that sits between the sticky results-header and the table thead in
   bulk mode.
   ======================================================================== */
.results-subhead {
    padding: 10px 16px;
    font-size: 12.5px;
    color: var(--ink-600);
    background: var(--ink-50);
    border-bottom: 1px solid var(--ink-100);
}
.results-subhead strong {
    color: var(--ink);
    font-weight: 600;
}

/* ========================================================================
   Results table - subdomain + 8 metric columns (single mode) or 9
   columns (bulk mode, with Root Domain prepended).
   ======================================================================== */
.results-table th.th-num,
.results-table td.td-num {
    text-align: center;
    font-feature-settings: var(--tnum);
    min-width: 80px;
}
.results-table td.td-num {
    font-size: 15px;
    font-weight: 600;
}
.results-table td.td-num.is-muted {
    color: var(--ink-400);
    font-weight: 400;
}

.results-table th[data-col="root_domain"] { min-width: 180px; }
.results-table th[data-col="subdomain"]   { min-width: 220px; width: 28%; }
.results-table th[data-col="etv"]         { min-width: 100px; }
.results-table th[data-col="total_keywords"]    { min-width: 110px; }
.results-table th[data-col="domain_authority"]  { min-width: 70px; }
.results-table th[data-col="page_rank"]         { min-width: 70px; }
.results-table th[data-col="website_authority"] { min-width: 70px; }
.results-table th[data-col="spam_score"]        { min-width: 80px; }
.results-table th[data-col="ref_domains"]       { min-width: 90px; }
.results-table th[data-col="ref_backlinks"]     { min-width: 100px; }

.results-table .cell-link {
    color: var(--brand);
    word-break: break-all;
}

/* ========================================================================
   Metric badges (DA / PR / WA / Spam Score)
   ======================================================================== */
.metric-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    min-width: 36px;
    text-align: center;
    font-feature-settings: var(--tnum);
}
/* For DA / PR / WA (higher is better) */
.metric-badge.is-high   { background: #dcfce7; color: #166534; }
.metric-badge.is-medium { background: #fef9c3; color: #854d0e; }
.metric-badge.is-low    { background: #fee2e2; color: #991b1b; }
.metric-badge.is-muted  { background: transparent; color: var(--ink-300); font-weight: 400; }

/* For spam score (higher is worse - invert palette) */
.spam-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    min-width: 36px;
    text-align: center;
    font-feature-settings: var(--tnum);
}
.spam-badge.is-good   { background: #dcfce7; color: #166534; }
.spam-badge.is-medium { background: #fef9c3; color: #854d0e; }
.spam-badge.is-bad    { background: #fee2e2; color: #991b1b; }
.spam-badge.is-muted  { background: transparent; color: var(--ink-300); font-weight: 400; }

/* No-data row: every metric cell shows a muted dash. */
.results-table tr.is-no-data td.td-num {
    color: var(--ink-300);
    font-weight: 400;
}

/* Disabled primary button */
.primary-btn:disabled,
.primary-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
