/**
 * Listora - Integrations (companion directory) screen.
 * Family header band + card grid for companion plugins. Desktop + iPad admin screen.
 * Token-only per INV-14 — raw hex fallbacks replaced with the canonical design
 * tokens (or their wp-admin equivalents), all defined in src/variables/colors.css.
 */

/* ── Family header / showcase band ──────────────────────────────────────── */
.listora-fam-header {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 22px;
	margin: 0 0 20px;
	border: 1px solid var(--listora-border, var(--listora-wp-admin-border));
	border-radius: 12px;
	background: var(--listora-bg-elevated);
}

.listora-fam-header__mark {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.listora-fam-header__body { flex: 1; min-width: 0; }

.listora-fam-header__title {
	margin: 0 0 2px;
	font-size: 17px;
	font-weight: 700;
	color: var(--listora-wp-admin-text);
}

.listora-fam-header__desc {
	margin: 0 0 8px;
	color: var(--listora-wp-admin-text-muted);
	max-width: 70ch;
}

.listora-fam-header__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
	color: var(--listora-info);
}
.listora-fam-header__link [data-lucide] { width: 16px; height: 16px; }
.listora-fam-header__link:hover { text-decoration: underline; }

/* ── Card logo ───────────────────────────────────────────────────────────── */
.listora-integration-card__logo {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 8px;
}

.listora-integrations-page .listora-page-header__title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.listora-integrations-page .listora-page-header__desc {
	margin: 4px 0 0;
	color: var(--listora-text-muted, var(--listora-wp-admin-text-muted));
	max-width: 70ch;
}

.listora-integrations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	margin: 16px 0 24px;
}

.listora-integration-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border: 1px solid var(--listora-border, var(--listora-wp-admin-border));
	border-radius: 10px;
	background: var(--listora-surface, var(--listora-bg-elevated));
}

.listora-integration-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.listora-integration-card__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.listora-integration-card__why {
	margin: 0;
	color: var(--listora-text-muted, var(--listora-wp-admin-text-muted));
	line-height: 1.5;
}

.listora-integration-card__unlocks {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--listora-success);
	font-size: 13px;
}

.listora-integration-card__unlocks [data-lucide] {
	width: 16px;
	height: 16px;
}

.listora-integration-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

/* Status badge. */
.listora-status-badge {
	flex: 0 0 auto;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

.listora-status-badge--success {
	background: var(--listora-success-bg);
	color: var(--listora-success);
}

.listora-status-badge--warning {
	background: var(--listora-warning-bg);
	color: var(--listora-warning);
}

.listora-status-badge--muted {
	background: var(--listora-surface-2, var(--listora-wp-admin-bg-row-hover));
	color: var(--listora-text-muted, var(--listora-wp-admin-text-muted));
}

.listora-integrations-footnote {
	color: var(--listora-text-muted, var(--listora-wp-admin-text-muted));
}

@media (max-width: 782px) {
	.listora-fam-header { flex-wrap: wrap; }
	.listora-integrations-grid { grid-template-columns: 1fr; }
}
