/* Nexus Curved Flip Card - frontend styles
   Design bilkul original card jaisa hai. "Flip Horizontal" sirf ek CSS
   mirror hai (scaleX(-1)) - shape/notch/circle doosri taraf chala jata hai,
   lekin text aur icon readable/normal rehte hain (counter-transform trick).
   Koi animation nahi, bas static mirrored layout jab switch "Yes" ho. */

.ncfc-wrapper {
	position: relative;
	width: 100%;
	max-width: 360px;
	height: 380px;
	margin: 0 auto;
	transform: translate(var(--ncfc-card-tx, 0px), var(--ncfc-card-ty, 0px));
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.ncfc-wrapper.ncfc-hover-lift:hover {
	transform: translate(var(--ncfc-card-tx, 0px), calc(var(--ncfc-card-ty, 0px) - 6px));
}

/* ---- Card face (single side, same as original .custom-card-body) ---- */
.ncfc-face {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	transition: filter 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	/* box-shadow would be clipped away by the shape's clip-path, so shadow
	   is applied via filter:drop-shadow() instead - this follows the actual
	   clipped/curved outline correctly. Values come from the widget's Shadow
	   controls via the --ncfc-shadow / --ncfc-shadow-hover CSS variables. */
	filter: drop-shadow(var(--ncfc-shadow, 0px 10px 30px rgba(0, 0, 0, 0.1)));
}

.ncfc-wrapper:hover .ncfc-face {
	filter: drop-shadow(var(--ncfc-shadow-hover, 0px 20px 40px rgba(0, 0, 0, 0.18)));
}

/* ---- Mirror / Flip Horizontal ---- */
.ncfc-wrapper.ncfc-mirrored .ncfc-face {
	transform: scaleX(-1);
}

/* Move content to the right side on flip - text/icon stay normal-facing
   (never mirrored/backwards), only their position moves across. */
.ncfc-wrapper.ncfc-mirrored .ncfc-content {
	align-items: flex-end;
}

.ncfc-wrapper.ncfc-mirrored .ncfc-heading,
.ncfc-wrapper.ncfc-mirrored .ncfc-description {
	text-align: right;
}

.ncfc-wrapper.ncfc-mirrored .ncfc-icon {
	justify-content: flex-end;
}

/* ---- Content ---- */
.ncfc-content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ncfc-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 40px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.ncfc-icon img,
.ncfc-icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ncfc-heading {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin: 0 0 16px 0;
}

.ncfc-description {
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
	opacity: 0.9;
	margin: 0;
}

/* Button sits fixed inside the notch cut-out (bottom-left pocket), not in
   the normal content flow - matches the reference design exactly and stays
   put regardless of how much heading/description text there is. */
.ncfc-btn {
	position: absolute;
	left: 8%;
	bottom: 3.5%;
	width: 35%;
	transform: translate(var(--ncfc-btn-tx, 0px), var(--ncfc-btn-ty, 0px));
	z-index: 4;
	display: inline-block;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	padding: 10px 20px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: opacity 0.3s ease, left 0.5s cubic-bezier(0.25, 1, 0.5, 1), right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ncfc-btn:hover {
	opacity: 0.85;
}

/* ---- Decorative circle (bottom-right corner, same as original) ---- */
.ncfc-circle {
	position: absolute;
	bottom: -40px;
	right: -40px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}

/* ---- Hidden SVG clip-path defs ---- */
.ncfc-svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}

/* ---- Responsive fallback ---- */
@media (max-width: 767px) {
	.ncfc-wrapper {
		height: auto;
		min-height: 340px;
	}
}
