/**
 * Smart SEO Booster — settings screen (tabbed, card-based).
 * Uses logical properties for RTL safety.
 */

.smart-seo-settings .smart-seo-tabs {
	margin-block-end: 0;
}

.smart-seo-settings .nav-tab {
	cursor: pointer;
	font: inherit;
	background: #f6f7f7;
}

.smart-seo-settings .nav-tab:focus-visible {
	outline: 2px solid var(--ssb-primary, #2563eb);
	outline-offset: -2px;
}

/*
 * Card background must track the same variables as its text color. The
 * .ssb-app wrapper sets `color: var(--ssb-ink)` at the page level (near-white
 * in OS dark mode) so it reaches every plain WP-core `.card`/`.form-table`
 * element too — but those keep a hardcoded white background, which washes
 * the text out to near-invisible. Pairing background+color here fixes it
 * everywhere this class is used (Settings, Setup Wizard, Redirects, Bulk
 * Editor, Import all share the `.smart-seo-settings` wrapper).
 */
.smart-seo-settings .smart-seo-card,
.smart-seo-settings .card {
	background: var(--ssb-card, #fff);
	color: var(--ssb-ink, #1e293b);
	border-color: var(--ssb-line, #dcdcde);
}

.smart-seo-settings .smart-seo-card h2,
.smart-seo-settings .smart-seo-card h3,
.smart-seo-settings .smart-seo-card label,
.smart-seo-settings .smart-seo-card p,
.smart-seo-settings .form-table th,
.smart-seo-settings .form-table td {
	color: var(--ssb-ink, #1e293b);
}

.smart-seo-settings .smart-seo-card .description,
.smart-seo-settings .description {
	color: var(--ssb-muted, #64748b);
}

.smart-seo-settings .smart-seo-card {
	max-width: none;
	margin-block-start: 0;
	border-start-start-radius: 0;
	border-start-end-radius: 0;
	padding: 8px 20px 16px;
}

.smart-seo-settings .smart-seo-card > h2 {
	margin-block-start: 12px;
}

.smart-seo-settings .smart-seo-panel[hidden] {
	display: none;
}

.smart-seo-settings .form-table th {
	inline-size: 240px;
}

.smart-seo-settings .form-table code {
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
}

/* ---------- Setup wizard ---------- */
.smart-seo-wizard .smart-seo-card {
	max-width: 640px;
	padding: 8px 24px 20px;
}

.smart-seo-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.smart-seo-steps li {
	padding: 6px 14px;
	border-radius: 16px;
	background: #f0f0f1;
	color: #50575e;
	font-size: 13px;
}

.smart-seo-steps li a {
	color: inherit;
	text-decoration: none;
}

.smart-seo-tutorial-nav {
	margin-top: 16px;
}

.smart-seo-steps li.current {
	background: var(--ssb-primary, #2563eb);
	color: #fff;
	font-weight: 600;
}

.smart-seo-steps li.done {
	background: #d5e5d5;
	color: #1e4620;
}

/* ---------- Brand mark (decorative, celebratory screens) ---------- */
.ssb-line-icon {
	display: block;
}

.smart-seo-done {
	text-align: center;
}

.smart-seo-done .ssb-line-icon {
	margin: 4px auto 12px;
}

.ssb-tutorial-hero {
	float: inline-end;
	margin-inline-start: 16px;
}

/* ---------- Brand marks next to third-party integration fields ---------- */
.ssb-brand-ico {
	display: inline-flex;
	vertical-align: middle;
	margin-inline-end: 6px;
	border-radius: 4px;
	overflow: hidden;
}

.ssb-brand-ico svg {
	inline-size: 100%;
	block-size: 100%;
}

.smart-seo-pro-badge {
	display: inline-block;
	margin-inline-start: 4px;
	padding: 1px 7px;
	border-radius: 10px;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}

/* Comfortable spacing on small screens. */
@media screen and (max-width: 782px) {
	.smart-seo-settings .form-table th {
		inline-size: auto;
	}
	.smart-seo-settings .nav-tab {
		margin-inline-end: 2px;
	}
}
