/**
 * White-Label CRM + Social — base styles.
 *
 * Colours come from the --wlcs-* custom properties, which are set at runtime
 * from wlcs_brand() (see helpers.php / bootstrap enqueue). Never hardcode a
 * brand colour here — reference the tokens so the UI recolours per host site.
 *
 * Fallback values below keep the UI sane if the inline :root block is missing.
 */

:root {
	--wlcs-primary: #2563eb;
	--wlcs-accent: #7c3aed;
	--wlcs-text: #1f2933;
	--wlcs-muted: #6b7280;
	--wlcs-surface: #ffffff;
	--wlcs-radius: 8px;
	--wlcs-border: #e5e7eb;
}

/* ---- Admin settings page ---- */
.wlcs-admin h2 {
	margin-top: 1.6em;
	padding-bottom: .35em;
	border-bottom: 1px solid var(--wlcs-border);
	color: var(--wlcs-text);
}

.wlcs-admin .wlcs-color-swatch {
	display: inline-block;
	width: 22px;
	height: 22px;
	vertical-align: middle;
	margin-left: 6px;
	border: 1px solid var(--wlcs-border);
	border-radius: 4px;
}

/* ---- Shared UI primitives (used by front-end modules in later steps) ---- */
.wlcs-ui {
	color: var(--wlcs-text);
	/* Inherit theme typography rather than imposing a font. */
	font-family: inherit;
}

.wlcs-card {
	background: var(--wlcs-surface);
	border: 1px solid var(--wlcs-border);
	border-radius: var(--wlcs-radius);
	padding: 1rem 1.25rem;
}

.wlcs-btn {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	background: var(--wlcs-primary);
	color: #fff;
	border: none;
	border-radius: var(--wlcs-radius);
	padding: .55em 1em;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}

.wlcs-btn:hover {
	filter: brightness(0.94);
}

.wlcs-btn--accent {
	background: var(--wlcs-accent);
}

.wlcs-btn--ghost {
	background: transparent;
	color: var(--wlcs-primary);
	border: 1px solid var(--wlcs-primary);
}

.wlcs-tag {
	display: inline-block;
	background: color-mix(in srgb, var(--wlcs-primary) 12%, transparent);
	color: var(--wlcs-primary);
	border-radius: 999px;
	padding: .12em .7em;
	font-size: .82em;
}

.wlcs-muted {
	color: var(--wlcs-muted);
}
