/*
 * LMS Experience — base component layer.
 *
 * Every value comes from the --lx-* tokens printed inline (LX_Tokens::css()),
 * which are inherited from the site's design system. Components are prefixed
 * with .lx- so they never collide with MasterStudy, the theme or Elementor.
 */

/* ---------- Buttons ---------- */
.lx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border: 1.5px solid transparent;
	border-radius: var(--lx-radius-btn);
	font-family: var(--lx-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lx-btn:focus-visible {
	outline: 2px solid var(--lx-accent);
	outline-offset: 2px;
}

.lx-btn--primary {
	background: var(--lx-accent);
	color: #fff !important;
}

.lx-btn--primary:hover {
	background: var(--lx-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(var(--lx-accent-rgb), 0.28);
}

.lx-btn--ghost {
	background: transparent;
	border-color: var(--lx-accent);
	color: var(--lx-accent) !important;
}

.lx-btn--ghost:hover {
	background: var(--lx-accent-tint);
}

.lx-btn--soft {
	background: var(--lx-accent-tint);
	color: var(--lx-accent) !important;
}

.lx-btn--sm {
	min-height: 34px;
	padding: 6px 14px;
	font-size: 13px;
}

/* ---------- Cards & panels ---------- */
.lx-card {
	background: var(--lx-surface);
	border: 1px solid rgba(var(--lx-primary-rgb), 0.09);
	border-radius: var(--lx-radius);
	box-shadow: 0 8px 24px rgba(var(--lx-primary-rgb), 0.06);
}

.lx-panel {
	background: var(--lx-wash);
	border-radius: var(--lx-radius-lg);
}

.lx-panel--dark {
	background: linear-gradient(135deg, var(--lx-primary) 0%, var(--lx-primary-dark) 100%);
	color: #fff;
}

/* ---------- Utility ---------- */
.lx-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
