/* Website Traffic Checker - tool-specific overrides on top of the shared
 * tool primitives in code/assets/css/tools.css.
 *
 * Cross-tool primitives (mode toggle, input form, primary/ghost button,
 * progress region, errors region, results region, table base, sortable
 * headers, pagination, toasts, history region, sticky chrome, debug
 * panel, upgrade banner) live in tools.css. Only the bits genuinely
 * specific to this tool sit here:
 *
 *   1. Per-column widths on the 4-column results table (target / type /
 *      organic traffic / total keywords).
 *   2. Type badge styling inside the Type column (Domain / URL pills).
 *   3. The "no data" row treatment for muted dashes.
 */

/* ========================================================================
   Form layout - put the country dropdown alongside type select + submit
   ======================================================================== */
.input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}
.input-row .text-input {
    flex: 1 1 240px;
    min-width: 200px;
}
.input-row .type-select {
    flex: 0 0 auto;
    min-width: 0;
}
.input-row .primary-btn {
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .input-row {
        gap: 8px;
    }
    .input-row .text-input {
        flex-basis: 100%;
    }
    .input-row .type-select {
        flex: 1 1 0;
    }
    .input-row .primary-btn {
        flex-basis: 100%;
        justify-content: center;
    }
}

/* ========================================================================
   Results table - per-column sizing.

   Four columns total: Target (the user's input), Type (Domain/URL
   badge), Organic Traffic, Total Keywords.
   ======================================================================== */
.results-table th[data-col="target"] {
    width: 50%;
    min-width: 240px;
    text-align: left;
}
.results-table th[data-col="type"] {
    width: 12%;
    min-width: 90px;
}
.results-table th[data-col="etv"] {
    width: 19%;
    min-width: 130px;
}
.results-table th[data-col="total_keywords"] {
    width: 19%;
    min-width: 130px;
}

.results-table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.results-table .td-target {
    color: var(--ink);
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: -0.1px;
    word-break: break-all;
}
.results-table .td-target a {
    color: var(--ink);
    text-decoration: none;
}
.results-table .td-target a:hover {
    text-decoration: underline;
}
.results-table .td-etv,
.results-table .td-total_keywords {
    color: var(--ink);
    font-weight: 600;
    font-size: 15.5px;
    font-feature-settings: var(--tnum);
}
.results-table .td-no-data {
    color: var(--ink-400);
    font-weight: 500;
}

/* ========================================================================
   Type pill (Domain / URL) inside the Type column.

   Shared `.type-badge` lives in `tools.css` and styles the validator
   feedback badge inline with the form. Reuse the same pill shape inside
   the table for consistency.
   ======================================================================== */
.results-table .td-type .type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.1px;
}
.results-table .td-type .type-badge--domain {
    background: var(--ink-100);
    color: var(--ink-700);
}
.results-table .td-type .type-badge--url {
    background: rgba(56, 130, 220, 0.12);
    color: rgb(36, 92, 168);
}

/* Invalid-inputs modal chrome (.modal-backdrop, .modal-card,
   .modal-title, .modal-body, .modal-actions, .invalid-list) lives in
   shared code/assets/css/tools.css. WTC's invalid-inputs modal uses
   those primitives directly. */

/* Disabled state for "Continue with valid" when there are no valid
   lines to fall back to. The shared tools.css carries a
   `.primary-btn:disabled` rule already; this just adds the
   `[disabled]` attribute selector and the pointer-events:none
   tightening that WTC has relied on. */
.primary-btn:disabled,
.primary-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
