/* ── SEO Toolkit page ─────────────────────────────────────────── */

.seo-budget-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--accent-violet-dim);
    color: var(--accent-violet-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.seo-form { display: flex; flex-direction: column; gap: 16px; }
.seo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
}
.seo-checkbox input { width: 16px; height: 16px; accent-color: var(--accent-violet); }

.seo-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 0; color: var(--text-muted); }

/* Score ring + category bars */
.seo-score-row {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.seo-score-ring {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.seo-score-inner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.seo-score-num { font-size: 34px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.seo-score-cap { font-size: var(--text-xs); color: var(--text-muted); }
.seo-categories { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.seo-cat-head { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 4px; }
.seo-bar { height: 8px; background: var(--bg-elevated); border-radius: var(--radius-full); overflow: hidden; }
.seo-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.6s var(--ease, ease); }

.seo-section { margin-top: 28px; }
.seo-section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Comparison */
.seo-compare-summary {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: 14px;
}
.seo-compare-summary.ahead { background: rgba(16,185,129,0.1); color: var(--accent-green); }
.seo-compare-summary.behind { background: rgba(245,158,11,0.1); color: var(--accent-orange); }

.seo-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.seo-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.seo-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.seo-url-cell { color: var(--text-primary); font-weight: 500; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gap-pos { color: var(--accent-green); font-weight: 600; }
.gap-neg { color: var(--accent-red); font-weight: 600; }

.seo-keywords { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seo-kw-label { font-size: var(--text-sm); color: var(--text-muted); margin-right: 4px; }
.seo-kw {
    padding: 4px 10px;
    background: var(--accent-violet-dim);
    color: var(--accent-violet-light);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Action plan */
.seo-plan-summary { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: 12px; line-height: 1.6; }
.seo-plan-focus {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--accent-violet-dim);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: 18px;
}
.seo-plan-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.seo-plan-col { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.seo-plan-col h5 { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.seo-plan-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.seo-plan-col li { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; padding-left: 16px; position: relative; }
.seo-plan-col li::before { content: '→'; position: absolute; left: 0; color: var(--accent-violet-light); }

/* Checks list */
.seo-checks { display: flex; flex-direction: column; gap: 6px; }
.seo-check {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    font-size: var(--text-sm);
}
.seo-check.pass { color: var(--text-secondary); }
.seo-check.pass span:first-child { color: var(--accent-green); }
.seo-check.fail span:first-child { color: var(--accent-red); }
.seo-check-label { color: var(--text-primary); }
.seo-check-detail { color: var(--text-muted); font-size: var(--text-xs); text-align: right; }

.seo-score-chip {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 700;
    font-size: var(--text-xs);
}

.badge-violet {
    background: var(--accent-violet-dim); color: var(--accent-violet-light);
    border: 1px solid rgba(124,58,237,0.3);
}

@media (max-width: 768px) {
    .seo-plan-cols { grid-template-columns: 1fr; }
    .seo-score-row { justify-content: center; }
    .seo-check-detail { display: none; }
}
