/* ==========================================================================
   DeshipOS — Feature Showcase widget
   Intro header + alternating "zig-zag" feature rows (visual + checklist).
   Mobile-first: rows stack (image on top) below 960px, split into two
   columns above it. Depends on assets/css/base.css for design tokens.
   ========================================================================== */

.deshipos-fshow {
	--dfs-accent:    var(--dew-brand, #16A34A);
	--dfs-accent-2:  var(--dew-brand-strong, #15803D);
	--dfs-soft:      var(--dew-brand-soft, rgba(22, 163, 74, .12));
	--dfs-soft:      color-mix(in srgb, var(--dfs-accent) 14%, transparent);
	--dfs-ink:       var(--dew-ink, #0F172A);
	--dfs-text:      var(--dew-text, #1E293B);
	--dfs-muted:     var(--dew-muted, #475569);
	--dfs-divider:   var(--dew-divider, #E2E8F0);
	--dfs-card-bg:   var(--dew-bg, #FFFFFF);

	box-sizing: border-box;
	width: 100%;
	padding: 56px 20px;
	background: transparent;
	color: var(--dfs-text);
}
.deshipos-fshow *,
.deshipos-fshow *::before,
.deshipos-fshow *::after { box-sizing: border-box; }

.deshipos-fshow__inner {
	max-width: 1140px;
	margin: 0 auto;
}

/* ==========================================================================
   Intro header
   ========================================================================== */
.deshipos-fshow__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	max-width: 720px;
	margin: 0 auto 48px;
}

.deshipos-fshow__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dfs-accent-2);
	background: var(--dfs-soft);
	padding: 6px 14px;
	border-radius: 999px;
}

.deshipos-fshow__heading {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: var(--dew-tracking-tight);
	color: var(--dfs-ink);
}

.deshipos-fshow__subheading {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--dfs-muted);
}

/* ==========================================================================
   Rows
   ========================================================================== */
.deshipos-fshow__rows {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.deshipos-fshow__row {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 32px;
}

/* ==========================================================================
   Media side
   ========================================================================== */
.deshipos-fshow__media {
	position: relative;
}

/* Soft brand glow behind the frame for a little depth. */
.deshipos-fshow__media::before {
	content: "";
	position: absolute;
	inset: auto -6% -8% -6%;
	height: 70%;
	background: radial-gradient(60% 100% at 50% 100%, var(--dfs-soft), transparent 70%);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

.deshipos-fshow__media-frame {
	position: relative;
	z-index: 1;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	background: var(--dfs-card-bg);
	border: 1px solid var(--dfs-divider);
	box-shadow: var(--dew-shadow-lg);
}

.deshipos-fshow__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* No-image fallback: large icon on a brand gradient panel. */
.deshipos-fshow__media-frame--icon {
	display: grid;
	place-items: center;
	border: 0;
	background: linear-gradient(135deg, var(--dfs-accent) 0%, var(--dfs-accent-2) 100%);
}
.deshipos-fshow__media-frame--icon::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(40% 40% at 80% 15%, rgba(255, 255, 255, .25), transparent 70%),
		radial-gradient(45% 45% at 15% 85%, rgba(255, 255, 255, .14), transparent 70%);
	pointer-events: none;
}
.deshipos-fshow__media-icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	color: #FFFFFF;
	line-height: 1;
}
.deshipos-fshow__media-icon i   { font-size: clamp(48px, 9vw, 84px); color: #FFFFFF; }
.deshipos-fshow__media-icon svg { width: clamp(48px, 9vw, 84px); height: clamp(48px, 9vw, 84px); fill: #FFFFFF; }
.deshipos-fshow__media-icon svg path,
.deshipos-fshow__media-icon svg g,
.deshipos-fshow__media-icon svg circle,
.deshipos-fshow__media-icon svg rect,
.deshipos-fshow__media-icon svg polygon { fill: #FFFFFF; }

/* Floating icon chip over an uploaded image. */
.deshipos-fshow__chip {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--dfs-card-bg);
	color: var(--dfs-accent);
	box-shadow: var(--dew-shadow-md);
}
.deshipos-fshow__chip i   { font-size: 22px; color: var(--dfs-accent); }
.deshipos-fshow__chip svg { width: 22px; height: 22px; fill: var(--dfs-accent); }
.deshipos-fshow__chip svg path,
.deshipos-fshow__chip svg g,
.deshipos-fshow__chip svg circle,
.deshipos-fshow__chip svg rect,
.deshipos-fshow__chip svg polygon { fill: var(--dfs-accent); }

/* ==========================================================================
   Content side
   ========================================================================== */
.deshipos-fshow__content {
	min-width: 0;
}

.deshipos-fshow__badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dfs-accent-2);
	background: var(--dfs-soft);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.deshipos-fshow__title {
	margin: 0 0 12px;
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: var(--dew-tracking-tight);
	color: var(--dfs-ink);
}

.deshipos-fshow__desc {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--dfs-muted);
}

/* Checklist — single column on small screens, two columns when wider. */
.deshipos-fshow__list {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px 24px;
}
.deshipos-fshow__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--dfs-text);
}
.deshipos-fshow__check {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--dfs-accent);
}

/* CTA link */
.deshipos-fshow__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--dfs-accent-2);
	text-decoration: none;
}
.deshipos-fshow__cta svg {
	transition: transform var(--dew-dur-base) var(--dew-ease-out);
}
.deshipos-fshow__cta:hover svg { transform: translateX(4px); }
.deshipos-fshow__cta:hover     { color: var(--dfs-accent); }

/* ==========================================================================
   Responsive — split into two columns + enable the zig-zag flip at ≥600px
   (checklist two columns) and ≥960px (full side-by-side layout).
   ========================================================================== */
@media (min-width: 600px) {
	.deshipos-fshow__list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 960px) {
	.deshipos-fshow {
		padding: 80px 40px;
	}
	.deshipos-fshow__head {
		margin-bottom: 64px;
	}
	.deshipos-fshow__rows {
		gap: 72px;
	}
	.deshipos-fshow__row {
		grid-template-columns: 1fr 1fr;
		gap: 56px;
	}
	/* Zig-zag: push the visual to the right column on flipped rows. */
	.deshipos-fshow__row--flip .deshipos-fshow__media {
		order: 2;
	}
}

/* ==========================================================================
   Accessibility — honour reduced-motion.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.deshipos-fshow__cta svg { transition-duration: .01ms; }
}
