/**
 * Featured Portfolio Showcase — Card Style 6
 *
 * Interactive expanding capsule gallery (Awwwards-style row).
 *
 * @package Zouetech_Portfolio
 */

.ztp-fs--card-style-6 {
	--ztp-fs-s6-bg: #000000;
	--ztp-fs-s6-gap: 12px;
	--ztp-fs-s6-radius: 999px;
	--ztp-fs-s6-height: clamp(420px, 62vh, 640px);
	--ztp-fs-s6-grow: 1;
	--ztp-fs-s6-grow-center: 1.35;
	--ztp-fs-s6-grow-expanded: 3.5;
	--ztp-fs-s6-grow-collapsed: 0.55;
	--ztp-fs-s6-duration: 450ms;
	--ztp-fs-s6-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ztp-fs-s6-img-fit: cover;
	--ztp-fs-s6-img-bright: 0.88;
	--ztp-fs-s6-img-contrast: 1.02;
	--ztp-fs-s6-img-saturate: 0.35;
	--ztp-fs-s6-img-bright-active: 1;
	--ztp-fs-s6-img-saturate-active: 1;
	--ztp-fs-s6-glass-bg: rgba(255, 255, 255, 0.14);
	--ztp-fs-s6-glass-blur: 16px;
	--ztp-fs-s6-glass-radius: 18px;
	--ztp-fs-s6-glass-pad: 16px 18px;
	--ztp-fs-s6-glass-border: rgba(255, 255, 255, 0.28);
	--ztp-fs-s6-glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	--ztp-fs-s6-glass-inset: 18px;
	--ztp-fs-s6-title-color: #ffffff;
	--ztp-fs-s6-cat-color: rgba(255, 255, 255, 0.78);
	--ztp-fs-s6-field-color: rgba(255, 255, 255, 0.9);
	--ztp-fs-s6-divider: rgba(255, 255, 255, 0.28);
	--ztp-fs-s6-stage-pad: clamp(16px, 3vw, 40px);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	color: #fff;
}

.ztp-fs--card-style-6.is-fit-contain {
	--ztp-fs-s6-img-fit: contain;
}

.ztp-fs--card-style-6 .ztp-fs__s6-stage {
	width: 100%;
	padding: var(--ztp-fs-s6-stage-pad);
	background: var(--ztp-fs-s6-bg);
	border-radius: calc(var(--ztp-fs-s6-radius) * 0.08 + 12px);
}

.ztp-fs--card-style-6 .ztp-fs__s6-row {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: var(--ztp-fs-s6-gap);
	width: 100%;
	height: var(--ztp-fs-s6-height);
	min-height: 280px;
}

.ztp-fs--card-style-6 .ztp-fs__card--s6 {
	position: relative;
	display: flex;
	flex: var(--ztp-fs-s6-grow) 1 0;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--ztp-fs-s6-radius);
	background: transparent;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
	outline: none;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	transform-origin: center center;
	isolation: isolate;
	cursor: pointer;
	transition: filter var(--ztp-fs-s6-duration) var(--ztp-fs-s6-ease);
}

.ztp-fs--card-style-6 .ztp-fs__card--s6.is-hidden {
	display: none !important;
}

/* Idle: center card slightly wider */
.ztp-fs--card-style-6 .ztp-fs__s6-row:not(.is-active) .ztp-fs__card--s6.is-center {
	flex-grow: var(--ztp-fs-s6-grow-center);
}

.ztp-fs--card-style-6 .ztp-fs__s6-row.is-active .ztp-fs__card--s6.is-expanded {
	flex-grow: var(--ztp-fs-s6-grow-expanded);
	z-index: 2;
}

.ztp-fs--card-style-6 .ztp-fs__s6-row.is-active .ztp-fs__card--s6.is-collapsed {
	flex-grow: var(--ztp-fs-s6-grow-collapsed);
}

.ztp-fs--card-style-6.has-arrow-cursor .ztp-fs__card--s6 {
	cursor: none;
}

.ztp-fs--card-style-6.has-arrow-cursor .ztp-fs__card--s6::after {
	content: "";
	position: absolute;
	top: var(--ztp-fs-s6-cursor-y, 50%);
	left: var(--ztp-fs-s6-cursor-x, 50%);
	z-index: 6;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transform: translate3d(0, 0, 0) scale(0.85);
	transition: opacity 180ms ease, transform 180ms ease;
}

.ztp-fs--card-style-6.has-arrow-cursor .ztp-fs__card--s6.is-cursor-on::after {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
}

.ztp-fs--card-style-6 .ztp-fs__card--s6:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.ztp-fs--card-style-6 .ztp-fs__s6-media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: inherit;
}

.ztp-fs--card-style-6 .ztp-fs__s6-media-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.ztp-fs--card-style-6 .ztp-fs__s6-media-link--empty {
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
}

.ztp-fs--card-style-6 .ztp-fs__s6-media-link img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: var(--ztp-fs-s6-img-fit);
	object-position: center;
	transform: translate3d(0, 0, 0) scale(1);
	filter: brightness(var(--ztp-fs-s6-img-bright)) contrast(var(--ztp-fs-s6-img-contrast)) saturate(var(--ztp-fs-s6-img-saturate));
	transition:
		transform var(--ztp-fs-s6-duration) var(--ztp-fs-s6-ease),
		filter var(--ztp-fs-s6-duration) var(--ztp-fs-s6-ease);
	pointer-events: none;
	will-change: transform, filter;
}

.ztp-fs--card-style-6 .ztp-fs__card--s6.is-expanded .ztp-fs__s6-media-link img,
.ztp-fs--card-style-6 .ztp-fs__s6-row:not(.is-active) .ztp-fs__card--s6.is-center .ztp-fs__s6-media-link img {
	filter: brightness(var(--ztp-fs-s6-img-bright-active)) contrast(var(--ztp-fs-s6-img-contrast)) saturate(var(--ztp-fs-s6-img-saturate-active));
}

.ztp-fs--card-style-6.has-hover-anim .ztp-fs__card--s6.is-expanded .ztp-fs__s6-media-link img {
	transform: translate3d(0, 0, 0) scale(1.04);
}

.ztp-fs--card-style-6 .ztp-fs__s6-card-link {
	position: absolute;
	inset: 0;
	z-index: 4;
	border-radius: inherit;
}

/* Glass panel — visible only when expanded */
.ztp-fs--card-style-6 .ztp-fs__s6-glass {
	position: absolute;
	z-index: 5;
	left: var(--ztp-fs-s6-glass-inset);
	bottom: var(--ztp-fs-s6-glass-inset);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	max-width: min(78%, 280px);
	padding: var(--ztp-fs-s6-glass-pad);
	border: 1px solid var(--ztp-fs-s6-glass-border);
	border-radius: var(--ztp-fs-s6-glass-radius);
	background: var(--ztp-fs-s6-glass-bg);
	box-shadow: var(--ztp-fs-s6-glass-shadow);
	-webkit-backdrop-filter: blur(var(--ztp-fs-s6-glass-blur));
	backdrop-filter: blur(var(--ztp-fs-s6-glass-blur));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(0, 10px, 0);
	transition:
		opacity calc(var(--ztp-fs-s6-duration) * 0.85) var(--ztp-fs-s6-ease),
		transform calc(var(--ztp-fs-s6-duration) * 0.85) var(--ztp-fs-s6-ease),
		visibility 0s linear var(--ztp-fs-s6-duration);
}

.ztp-fs--card-style-6 .ztp-fs__card--s6.is-expanded .ztp-fs__s6-glass {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	transition-delay: 0s, 0s, 0s;
}

.ztp-fs--card-style-6 .ztp-fs__s6-title {
	margin: 0;
	padding: 0;
	font-size: clamp(0.95rem, 1.1vw, 1.125rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ztp-fs-s6-title-color);
}

.ztp-fs--card-style-6 .ztp-fs__s6-title a,
.ztp-fs--card-style-6 .ztp-fs__s6-title span {
	color: inherit;
	text-decoration: none;
}

.ztp-fs--card-style-6 .ztp-fs__s6-title a:hover {
	opacity: 0.85;
}

.ztp-fs--card-style-6 .ztp-fs__s6-category {
	margin: 0;
	padding: 0;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ztp-fs-s6-cat-color);
}

.ztp-fs--card-style-6 .ztp-fs__s6-divider {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0.35rem 0 0.15rem;
	background: var(--ztp-fs-s6-divider);
}

.ztp-fs--card-style-6 .ztp-fs__s6-field {
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.04em;
	color: var(--ztp-fs-s6-field-color);
}

/* FLIP animating: suppress nested transitions that fight transform */
.ztp-fs--card-style-6.is-flipping .ztp-fs__card--s6 {
	pointer-events: none;
}

.ztp-fs--card-style-6.is-flipping .ztp-fs__s6-media-link img {
	transition: none;
}

@media (max-width: 1024px) {
	.ztp-fs--card-style-6 {
		--ztp-fs-s6-height: clamp(360px, 55vh, 520px);
		--ztp-fs-s6-gap: 10px;
	}
}

@media (max-width: 767px) {
	.ztp-fs--card-style-6 {
		--ztp-fs-s6-height: clamp(420px, 70vh, 560px);
		--ztp-fs-s6-gap: 0;
		--ztp-fs-s6-stage-pad: 12px;
	}

	.ztp-fs--card-style-6 .ztp-fs__s6-glass {
		max-width: min(88%, 260px);
	}

	.ztp-fs--card-style-6.has-arrow-cursor .ztp-fs__card--s6 {
		cursor: pointer;
	}

	.ztp-fs--card-style-6.has-arrow-cursor .ztp-fs__card--s6::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ztp-fs--card-style-6 {
		--ztp-fs-s6-duration: 1ms;
	}

	.ztp-fs--card-style-6 .ztp-fs__card--s6,
	.ztp-fs--card-style-6 .ztp-fs__s6-media-link img,
	.ztp-fs--card-style-6 .ztp-fs__s6-glass {
		transition: none !important;
	}
}
