/* ═══════════════════════════════════════════════════════════════════
   WAVE 3 - SEO Comparators
   Shared styles for the three side-by-side comparison renderers:
     • schema-markup-diff
     • internal-link-opportunity-finder
     • content-gap-quick-scan
   Prefix: w3sc- (Wave 3 SEO Comparators)
═══════════════════════════════════════════════════════════════════ */

.w3sc-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 767px) {
    .w3sc-grid {
        grid-template-columns: 1fr;
    }
}

.w3sc-card {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 18px;
}

.w3sc-card__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin: 0 0 10px 0;
}

.w3sc-card__url {
    font-size: 0.8125rem;
    color: #64748B;
    word-break: break-all;
    margin-bottom: 10px;
}

.w3sc-card--a { border-left: 4px solid #2563EB; }
.w3sc-card--b { border-left: 4px solid #DC2626; }

.w3sc-section {
    margin-top: 18px;
}

.w3sc-section__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.w3sc-section__hint {
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0 0 10px 0;
}

.w3sc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin: 2px;
}

.w3sc-badge--common { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.w3sc-badge--missing { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.w3sc-badge--neutral { background: #F1F5F9; color: #334155; border: 1px solid #E2E8F0; }
.w3sc-badge--info    { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

.w3sc-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.w3sc-empty {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 14px;
    color: #64748B;
    font-size: 0.875rem;
    text-align: center;
}

/* schema diff field-level details */
.w3sc-type-block {
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #FAFAFA;
}

.w3sc-type-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.w3sc-type-block__name {
    font-weight: 700;
    color: #0F172A;
    font-size: 0.9375rem;
}

.w3sc-prop {
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.75rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 3px 8px;
    margin: 2px;
    display: inline-block;
}

.w3sc-prop--added   { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.w3sc-prop--removed { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }

/* internal-link tables */
.w3sc-target-banner {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
    border: 1.5px solid #BFDBFE;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.w3sc-target-banner__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1D4ED8;
    letter-spacing: 0.04em;
}

.w3sc-target-banner__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 4px 0 2px 0;
    word-break: break-word;
}

.w3sc-target-banner__url {
    font-size: 0.8125rem;
    color: #64748B;
    word-break: break-all;
}

.w3sc-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.w3sc-table thead th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #E2E8F0;
    font-weight: 700;
    color: #334155;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.w3sc-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: top;
}

.w3sc-table tbody tr.is-linked {
    opacity: 0.5;
}

.w3sc-table tbody tr.is-linked td {
    background: #F8FAFC;
}

.w3sc-anchor {
    font-weight: 700;
    color: #1D4ED8;
}

.w3sc-snippet {
    color: #475569;
    font-style: italic;
    font-size: 0.8125rem;
}

.w3sc-mark {
    background: #FEF3C7;
    color: #92400E;
    padding: 0 3px;
    border-radius: 3px;
    font-style: normal;
    font-weight: 700;
}

/* content-gap keyword chips */
.w3sc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    padding: 4px 10px;
    margin: 3px;
    color: #334155;
}

.w3sc-chip__count {
    font-weight: 700;
    color: #1D4ED8;
    font-size: 0.75rem;
}

.w3sc-headings {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}

.w3sc-headings li {
    padding: 6px 10px;
    border-left: 3px solid #E2E8F0;
    margin-bottom: 4px;
    background: #F8FAFC;
    font-size: 0.875rem;
}

.w3sc-headings .h-1 { border-left-color: #1D4ED8; padding-left: 10px; font-weight: 700; }
.w3sc-headings .h-2 { border-left-color: #2563EB; padding-left: 18px; font-weight: 600; }
.w3sc-headings .h-3 { border-left-color: #60A5FA; padding-left: 26px; }
.w3sc-headings .h-4 { border-left-color: #93C5FD; padding-left: 34px; color: #475569; }

.w3sc-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: #1D4ED8;
    color: #fff;
    margin-right: 6px;
}

.w3sc-tag.h-2 { background: #2563EB; }
.w3sc-tag.h-3 { background: #60A5FA; }
.w3sc-tag.h-4 { background: #93C5FD; color: #0F172A; }

.w3sc-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8125rem;
    color: #475569;
    margin-top: 6px;
}

.w3sc-meta-row__item strong { color: #0F172A; }
