/**
 * VINAGO HOMEPAGE LEARNING CARD — additive stylesheet
 *
 * Mobile-first, uses existing design tokens. No redesign of homepage.
 * Discovery entry point only.
 *
 * @package VINAGO\HelpCenter
 * @version 1.0.0
 */

.vlc-section {
	width: 100%;
	padding: clamp(1.25rem, 4vw, 2.5rem) 1rem 3rem;
}

.vlc-container {
	max-width: var(--ep12-container-max, 768px);
	margin: 0 auto;
}

.vlc-header {
	margin-bottom: 1rem;
	text-align: center;
}

.vlc-title {
	font-size: clamp(1.25rem, 4.5vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 0.4rem;
	color: var(--md-on-surface, #111827);
}

.vlc-subtitle {
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0 auto;
	max-width: 560px;
	color: var(--md-on-surface-variant, #6b7280);
}

/* ─── STEPS GRID ─── */
.vlc-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.vlc-step {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	min-height: 48px;
	text-decoration: none;
	background: var(--md-surface, #ffffff);
	border: 1px solid var(--md-outline-variant, #e5e7eb);
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.vlc-step:hover {
	border-color: var(--md-primary, #2563eb);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.vlc-step:active {
	transform: scale(0.99);
}

.vlc-step:focus-visible,
.vlc-cat:focus-visible,
.vlc-cta-btn:focus-visible {
	outline: 2px solid var(--md-primary, #2563eb);
	outline-offset: 2px;
}

.vlc-step-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background: rgba(37, 99, 235, 0.08);
	border-radius: 11px;
}

.vlc-step-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.vlc-step-label {
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--md-primary, #2563eb);
}

.vlc-step-title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--md-on-surface, #111827);
	margin-top: 2px;
}

.vlc-step-meta {
	font-size: 0.75rem;
	line-height: 1.2;
	color: var(--md-on-surface-variant, #6b7280);
	margin-top: 2px;
}

/* ─── CATEGORIES ─── */
.vlc-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 1rem;
}

.vlc-cat {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.5rem 0.9rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--md-on-surface-variant, #374151);
	background: var(--md-surface, #ffffff);
	border: 1px solid var(--md-outline-variant, #e5e7eb);
	border-radius: 999px;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.vlc-cat:hover {
	border-color: var(--md-primary, #2563eb);
	color: var(--md-primary, #2563eb);
}

/* ─── CTA ─── */
.vlc-cta {
	margin-top: 1.25rem;
	text-align: center;
}

.vlc-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.8rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	color: #ffffff;
	background: var(--md-primary, #2563eb);
	border-radius: 12px;
	transition: background 0.15s ease, transform 0.05s ease;
}

.vlc-cta-btn:hover {
	background: #1d4ed8;
}

.vlc-cta-btn:active {
	transform: scale(0.98);
}

/* ─── RESPONSIVE ─── */
@media (min-width: 640px) {
	.vlc-steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.vlc-steps {
		grid-template-columns: repeat(4, 1fr);
	}

	.vlc-step {
		flex-direction: column;
	}
}

/* ─── DARK MODE ─── */
.ep12-dark .vlc-step,
body.dark .vlc-step,
.dark .vlc-step,
[data-theme="dark"] .vlc-step,
.ep12-dark .vlc-cat,
body.dark .vlc-cat,
.dark .vlc-cat,
[data-theme="dark"] .vlc-cat {
	background: #1e293b;
	border-color: #334155;
}

.ep12-dark .vlc-title,
body.dark .vlc-title,
.dark .vlc-title,
[data-theme="dark"] .vlc-title,
.ep12-dark .vlc-step-title,
body.dark .vlc-step-title,
.dark .vlc-step-title,
[data-theme="dark"] .vlc-step-title {
	color: #f1f5f9;
}

.ep12-dark .vlc-cat,
body.dark .vlc-cat,
.dark .vlc-cat,
[data-theme="dark"] .vlc-cat {
	color: #cbd5e1;
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
	.vlc-step,
	.vlc-cta-btn,
	.vlc-cat {
		transition: none;
	}
}