/**
 * "See all" end-of-rail card — 4 template variants.
 *
 * Appears as the final card in a product rail carousel, after the last
 * product card. Visually distinct from product cards but slot-compatible
 * (same size, same scroll-snap behaviour, same hover affordance).
 *
 * Phase 5-G — Homepage Sections module.
 */

/* ============================================================================
 * Base — shared by all 4 variants
 * ============================================================================ */

.lpk-see-all {
	/* Width is controlled by layout.css carousel sizing rules (parallel to
	   .product-card flex-basis at each breakpoint). Height stretches to
	   match sibling product cards via the flex container's default
	   align-items: stretch — DO NOT set min-height here. */
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-md, 10px);
	overflow: hidden;
	text-decoration: none;
	color: var(--color-text-primary, #1A1A1A);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.lpk-see-all:hover { transform: translateY(-2px); }
.lpk-see-all:focus-visible {
	outline: 2px solid var(--color-accent-mint, #00ECC2);
	outline-offset: 2px;
}

/* ============================================================================
 * Variant 1: MINIMAL — plain centered text + arrow circle. Default.
 * ============================================================================ */

.lpk-see-all--minimal {
	background: var(--color-surface, #FFFFFF);
	border: 1px dashed var(--color-border, #D1D5DB);
	padding: 16px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
}
.lpk-see-all--minimal:hover {
	border-color: var(--color-accent-mint, #00ECC2);
	background: var(--color-accent-mint-50, #F0FDFA);
}
.lpk-see-all--minimal__arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-accent-mint-50, #F0FDFA);
	color: var(--color-accent-mint-dark, #00B89E);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lpk-see-all--minimal:hover .lpk-see-all--minimal__arrow {
	background: var(--color-accent-mint, #00ECC2);
	color: var(--color-text-primary, #1A1A1A);
	transform: translateX(4px);
}
.lpk-see-all--minimal__text {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-primary, #1A1A1A);
}
.lpk-see-all--minimal__sub {
	font-size: 12px;
	color: var(--color-text-secondary, #6B7280);
}

/* ============================================================================
 * Variant 2: COUNTER — big "+N" number + label + CTA
 * ============================================================================ */

.lpk-see-all--counter {
	background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 60%);
	border: 1px solid var(--color-border, #E5E7EB);
	padding: 24px 16px;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.lpk-see-all--counter:hover {
	border-color: var(--color-accent-mint, #00ECC2);
	box-shadow: 0 8px 24px rgba(0, 236, 194, 0.12);
}
.lpk-see-all--counter__plus {
	font-size: 36px;
	font-weight: 300;
	color: var(--color-accent-mint-dark, #00B89E);
	line-height: 1;
}
.lpk-see-all--counter__count {
	font-size: 48px;
	font-weight: 800;
	color: var(--color-text-primary, #1A1A1A);
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 4px 0;
}
.lpk-see-all--counter__label {
	font-size: 12px;
	color: var(--color-text-secondary, #6B7280);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}
.lpk-see-all--counter__cta {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-accent-mint-dark, #00B89E);
	margin-top: 12px;
}
.lpk-see-all--counter__cta span {
	transition: transform 0.15s ease;
	display: inline-block;
}
.lpk-see-all--counter:hover .lpk-see-all--counter__cta span {
	transform: translateX(4px);
}

/* ============================================================================
 * Variant 3: BRAND — dark card with mint accent. Premium feel.
 * ============================================================================ */

.lpk-see-all--brand {
	background: #0F172A;
	color: #FFFFFF;
	padding: 20px;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}
.lpk-see-all--brand::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -20%;
	width: 200%;
	height: 200%;
	background: radial-gradient(ellipse at top right, rgba(0, 236, 194, 0.18) 0%, transparent 50%);
	pointer-events: none;
}
.lpk-see-all--brand:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.lpk-see-all--brand__top {
	position: relative;
	z-index: 1;
}
.lpk-see-all--brand__eyebrow {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-accent-mint, #00ECC2);
	margin-bottom: 8px;
}
.lpk-see-all--brand__title {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
	color: #FFFFFF;
}
.lpk-see-all--brand__cta {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--color-accent-mint, #00ECC2);
	margin-top: 16px;
}
.lpk-see-all--brand__cta-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--color-accent-mint, #00ECC2);
	color: #0F172A;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}
.lpk-see-all--brand:hover .lpk-see-all--brand__cta-icon {
	transform: translateX(4px);
}

/* ============================================================================
 * Variant 4: IMAGE — operator-uploaded background image
 * ============================================================================ */

.lpk-see-all--image {
	background-size: cover;
	background-position: center;
	background-color: #1F2937;     /* fallback while image loads */
	color: #FFFFFF;
	padding: 0;
	position: relative;
	overflow: hidden;
}
.lpk-see-all--image:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.lpk-see-all--image__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
	pointer-events: none;
}
.lpk-see-all--image__content {
	position: relative;
	z-index: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1;
	color: #FFFFFF;
}
.lpk-see-all--image__eyebrow {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.9;
	margin-bottom: 4px;
}
.lpk-see-all--image__title {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 12px;
	color: #FFFFFF;
}
.lpk-see-all--image__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	align-self: flex-start;
	transition: background 0.15s ease, color 0.15s ease;
}
.lpk-see-all--image:hover .lpk-see-all--image__cta {
	background: var(--color-accent-mint, #00ECC2);
	color: #0F172A;
}

/* ============================================================================
 * Reduced motion — disable hover transforms for users with prefers-reduced-motion
 * ============================================================================ */

@media (prefers-reduced-motion: reduce) {
	.lpk-see-all,
	.lpk-see-all--minimal__arrow,
	.lpk-see-all--counter__cta span,
	.lpk-see-all--brand__cta-icon {
		transition: none;
	}
	.lpk-see-all:hover {
		transform: none;
	}
}
