/* SEO tool styles */

.seo-form { display: flex; flex-direction: column; gap: 14px; }
.seo-help { font-size: .8125rem; color: var(--color-text-muted); margin: 8px 0 0; }

/* SERP preview */
.seo-serp-card { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 18px; max-width: 600px; }
.seo-serp-label { font-size: .6875rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.seo-serp-url { font-size: .8125rem; color: #006621; margin-bottom: 4px; word-break: break-all; }
.seo-serp-title { font-size: 1.25rem; line-height: 1.3; color: #1a0dab; font-weight: 400; margin-bottom: 4px; cursor: pointer; }
.seo-serp-title.is-truncated::after { content: '…'; opacity: .6; }
.seo-serp-desc { font-size: .875rem; color: #4d5156; line-height: 1.45; }
.seo-serp-desc.is-truncated::after { content: '…'; opacity: .6; }

.seo-serp-stats { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.seo-serp-stat { font-size: .8125rem; padding: 6px 10px; border-radius: 6px; background: #F0FDF4; color: #15803D; }
.seo-serp-stat.is-warn { background: #FEF3C7; color: #B45309; }
.seo-serp-stat.is-ok { background: #F0FDF4; color: #15803D; }

/* Pixel tester bars */
.seo-pix-row { margin-bottom: 16px; }
.seo-pix-label { font-size: .8125rem; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
.seo-pix-bar { height: 12px; background: var(--color-bg); border-radius: 6px; overflow: hidden; }
.seo-pix-fill { height: 100%; background: linear-gradient(90deg, #15803D, #65A30D); transition: width .2s ease; }
.seo-pix-fill.is-over { background: linear-gradient(90deg, #DC2626, #B91C1C); }
.seo-pix-meta { font-size: .75rem; color: var(--color-text-muted); margin-top: 4px; }

/* Anchor distribution bars */
.seo-bars { display: flex; flex-direction: column; gap: 8px; }
.seo-bar-row { display: grid; grid-template-columns: 100px 1fr 110px; gap: 10px; align-items: center; }
.seo-bar-label { font-size: .8125rem; font-weight: 600; color: var(--color-text); }
.seo-bar-track { height: 18px; background: var(--color-bg); border-radius: 4px; overflow: hidden; }
.seo-bar-fill { height: 100%; transition: width .2s ease; }
.seo-bar-val { font-size: .8125rem; color: var(--color-text); text-align: right; }
.seo-bar-pct { color: var(--color-text-muted); }

@media (max-width: 575.98px) {
    .seo-bar-row { grid-template-columns: 1fr; gap: 4px; }
    .seo-bar-val { text-align: left; }
}
