/*
 * GPL SEO Friendly URL Checker — tool-only UI.
 * Shared chrome (.gpl-tool, .mt-stat-card, .mt-results-card, .mt-dt-top, .mt-result-table,
 * .gpl-tag, form controls, buttons) comes from the GPL theme and is not duplicated here.
 * Type scale matches the other GuestPostLinks checkers: 1rem titles, 0.875rem help text,
 * 14px results, 13px filters, 12px badges.
 */

.gplsfuc-fields {
    display: grid;
    gap: 1em;
}

.gplsfuc-field.form-control {
    align-items: stretch;
    gap: 0.75em;
}

.gplsfuc-field > label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 0;
}

.gplsfuc-field > label > span:not(.gpl-tag) {
    color: var(--gpl-tool-text-soft, #666);
    font-size: 0.875rem;
    font-weight: 400;
}

.gplsfuc-url-count.is-over {
    font-weight: 600;
}

.gplsfuc-input-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    color: var(--gpl-tool-text-soft, #666);
    font-size: 0.875rem;
}

.gplsfuc-tool .gplsfuc-text-button {
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--gpl-tool-blue, #4166e1) !important;
    font: inherit;
    font-weight: 600;
    line-height: inherit;
    text-decoration: underline;
    text-transform: none;
    cursor: pointer;
}

.gplsfuc-tool .gplsfuc-text-button:hover {
    text-decoration: none;
}

.gplsfuc-tool .gplsfuc-text-button:focus-visible {
    outline: 3px solid var(--gpl-tool-focus-ring, rgba(65, 102, 225, 0.28));
    outline-offset: 2px;
}

.gplsfuc-tip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 1em;
    text-align: left;
}

.gplsfuc-tip strong {
    color: var(--gpl-tool-ink, #1f2937);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.gplsfuc-tip p {
    margin: 0;
    color: var(--gpl-tool-text-soft, #666);
    font-size: 0.875rem;
    line-height: 1.35;
}

.gplsfuc-tool .motta-alert {
    margin-bottom: 10px;
    text-align: start;
}

.gplsfuc-results {
    padding: 10px 0;
    color: var(--gpl-tool-ink, #1f2937);
    font-size: 14px;
    scroll-margin-top: 20px;
}

.gplsfuc-filterbar {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin: 6px 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--gpl-tool-line, #eaedf2);
    border-radius: var(--mt-border__radius, 8px);
    background: var(--gpl-tool-surface, #fff);
}

.gplsfuc-filter-title {
    color: var(--gpl-tool-label, #374151);
    font-weight: 700;
}

.gplsfuc-frange {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gpl-tool-label, #374151);
    font-size: 13px;
}

.gplsfuc-frange label {
    margin: 0;
    font-weight: 600;
}

.gplsfuc-tool .gplsfuc-frange select {
    width: auto;
    min-width: 160px;
    height: 34px;
    margin: 0;
    padding: 7px 28px 7px 12px;
    border: 1px solid var(--gpl-tool-line, #eaedf2);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat calc(100% - 10px) center / 12px 8px;
    box-shadow: none;
    color: var(--gpl-tool-label, #374151);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.gplsfuc-tool .gplsfuc-frange select:hover {
    border-color: var(--gpl-tool-line-hover, #cbd5e1);
    background-color: var(--gpl-tool-surface-hover, #f9fafb);
}

.gplsfuc-tool .gplsfuc-frange select:focus {
    border-color: var(--gpl-tool-line-hover, #cbd5e1);
    background-color: var(--gpl-tool-surface, #fff);
    outline: 3px solid var(--gpl-tool-focus-ring, rgba(65, 102, 225, 0.28));
    outline-offset: 2px;
}

.gplsfuc-note {
    margin: 0 0 16px;
    padding: 10px 16px;
    border: 1px solid #f5c78a;
    border-radius: 8px;
    background: #fff4e5;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}

.gplsfuc-tool .mt-dt-top input,
.gplsfuc-tool .mt-dt-top select {
    min-height: 0;
    box-shadow: none;
}

.gplsfuc-tool .mt-dt-top .dt-button {
    white-space: nowrap;
}

.gplsfuc-tool .mt-dt-top .gplsfuc-dt-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    order: 0;
    margin-right: auto;
}

.gplsfuc-tool .mt-dt-top .dt-buttons {
    order: 1;
}

.gplsfuc-tool .mt-dt-top .mt-dt-top-right {
    order: 2;
}

.gplsfuc-tool .dt-button i.success {
    color: green !important;
}

.gplsfuc-tool .mt-result-table code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #eef1f6;
    color: var(--gpl-tool-label, #374151);
    font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.gplsfuc-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.gplsfuc-score.is-friendly {
    background: rgba(19, 188, 150, 0.08);
    color: #0f9a7b;
}

.gplsfuc-score.is-improve {
    background: #fff4e5;
    color: #c45a26;
}

.gplsfuc-score.is-poor {
    background: rgba(242, 24, 80, 0.08);
    color: #f21951;
}

.gplsfuc-issues {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gplsfuc-tool .gplsfuc-details {
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--gpl-tool-blue, #4166e1) !important;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: inherit;
    text-decoration: underline;
    text-transform: none;
    cursor: pointer;
}

.gplsfuc-tool .gplsfuc-details:hover {
    text-decoration: none;
}

.gplsfuc-tool .gplsfuc-details:focus-visible {
    outline: 3px solid var(--gpl-tool-focus-ring, rgba(65, 102, 225, 0.28));
    outline-offset: 2px;
}

.gplsfuc-detail td {
    padding: 12px 16px !important;
    background: var(--gpl-tool-blue-bg, #f4f7fa) !important;
    text-align: left !important;
}

.gplsfuc-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gplsfuc-checks > div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--gpl-tool-line, #eaedf2);
    border-radius: 8px;
    background: var(--gpl-tool-surface, #fff);
    font-size: 13px;
    text-align: left;
}

.gplsfuc-checks strong,
.gplsfuc-checks span {
    display: block;
}

.gplsfuc-checks strong {
    margin-bottom: 2px;
    color: var(--gpl-tool-label, #374151);
    font-weight: 600;
}

.gplsfuc-checks span {
    color: var(--gpl-tool-muted, #6b7280);
}

.gplsfuc-checks .is-pass strong {
    color: #0f9a7b;
}

.gplsfuc-checks .is-warn strong {
    color: #c45a26;
}

.gplsfuc-checks .is-fail strong {
    color: #f21951;
}

.gplsfuc-no-row td {
    padding: 24px;
    color: var(--gpl-tool-muted, #6b7280);
    text-align: center !important;
}

@media (max-width: 820px) {
    .gplsfuc-checks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .gplsfuc-filterbar {
        gap: 12px;
    }

    .gplsfuc-frange {
        width: 100%;
    }

    .gplsfuc-tool .gplsfuc-frange select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .gplsfuc-input-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
}
