/* ============================================================
   Glass Widgets for Elementor — Core Styles
   v0.3.1 | Glass Cannon
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */

.gw-ferris-carousel {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	overflow: hidden;
	position: relative;
}

/* ── Wheel column ─────────────────────────────────────────── */

.gw-fc-wheel-col {
	position: relative;
	width: 50%;
	flex-shrink: 0;
	overflow: hidden;
	height: 520px;
}

/* ── Track ────────────────────────────────────────────────── */

.gw-fc-track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ══════════════════════════════════════════════════════════
   CARDS
   Three slots defined in CSS:
     .slot-active  — center, large  (right side)
     .slot-prev    — top-left,  small
     .slot-next    — bottom-left, small
     .slot-hidden  — off screen (no transition shown)

   All cards are absolutely positioned.
   JS just swaps the slot class to trigger the CSS transition.
   ══════════════════════════════════════════════════════════ */

.gw-fc-card {
	position: absolute;
	border-radius: 18px;
	overflow: hidden;
	cursor: pointer;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* Smooth transition between slot positions */
	transition:
		top     0.55s cubic-bezier(0.65, 0, 0.35, 1),
		left    0.55s cubic-bezier(0.65, 0, 0.35, 1),
		width   0.55s cubic-bezier(0.65, 0, 0.35, 1),
		height  0.55s cubic-bezier(0.65, 0, 0.35, 1),
		opacity 0.55s cubic-bezier(0.65, 0, 0.35, 1),
		box-shadow 0.55s ease;
	will-change: top, left, width, height, opacity;
}

/* ── Active slot: fills most of the column, right-aligned ── */
.gw-fc-card.slot-active {
	top:     10%;
	left:    15%;
	width:   82%;
	height:  80%;
	opacity: 1;
	z-index: 5;
	box-shadow: 0 20px 60px rgba(0,0,0,0.50);
}

/* ── Prev slot: top-left, small ──────────────────────────── */
.gw-fc-card.slot-prev {
	top:     5%;
	left:    4%;
	width:   34%;
	height:  32%;
	opacity: 0.75;
	z-index: 3;
	box-shadow: 0 6px 20px rgba(0,0,0,0.30);
}

/* ── Next slot: bottom-left, small ──────────────────────── */
.gw-fc-card.slot-next {
	top:     63%;
	left:    4%;
	width:   34%;
	height:  32%;
	opacity: 0.75;
	z-index: 3;
	box-shadow: 0 6px 20px rgba(0,0,0,0.30);
}

/* ── Far slots (2 or more away) — hidden off left edge ───── */
.gw-fc-card.slot-far-prev,
.gw-fc-card.slot-far-next {
	top:     32%;
	left:    -40%;
	width:   25%;
	height:  22%;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
}

/* ── Enter animation: slide in from left rotating clockwise ─
   Applied when a card moves from next → active             */
.gw-fc-card.is-entering {
	animation: gwEnterFromNext 0.55s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* ── Exit animation: slide out to top-right (clockwise)
   Applied when active → prev direction                     */
.gw-fc-card.is-exiting {
	animation: gwExitToPrev 0.55s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes gwEnterFromNext {
	from {
		top:    63%; left: 4%;
		width:  34%; height: 32%;
		opacity: 0.75;
	}
	to {
		top:    10%; left: 15%;
		width:  82%; height: 80%;
		opacity: 1;
	}
}

@keyframes gwExitToPrev {
	from {
		top:    10%; left: 15%;
		width:  82%; height: 80%;
		opacity: 1;
	}
	to {
		top:    5%; left: 4%;
		width:  34%; height: 32%;
		opacity: 0.75;
	}
}

/* ── Navigation buttons ──────────────────────────────────── */

.gw-fc-nav {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 40px; height: 40px;
	border: none;
	background: rgba(255,255,255,0.14);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 30;
	transition: background 0.22s ease;
}
.gw-fc-nav:hover { background: rgba(255,255,255,0.30); }
.gw-fc-nav svg   { width: 18px; height: 18px; }
.gw-fc-nav--prev { top: 8px; }
.gw-fc-nav--next { bottom: 8px; }

/* ── Panel column ─────────────────────────────────────────── */

.gw-fc-panel-col {
	width: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: stretch;
}

.gw-fc-panel {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #16213e;
	border-radius: 20px;
}

.gw-fc-panel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease;
	display: flex;
	align-items: center;
}
.gw-fc-panel__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
	inset: unset;
}
.gw-fc-panel__slide.is-leaving {
	opacity: 0;
	pointer-events: none;
	position: absolute;
	inset: 0;
}

.gw-fc-panel__inner {
	padding: 40px 48px;
	width: 100%;
}
.gw-fc-panel__heading {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
	line-height: 1.2;
}
.gw-fc-panel__text {
	color: rgba(255,255,255,0.75);
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 28px;
}
.gw-fc-panel__text p            { margin: 0 0 12px; }
.gw-fc-panel__text p:last-child { margin-bottom: 0; }

.gw-fc-panel__btn {
	display: inline-block;
	padding: 12px 28px;
	background: #fff;
	color: #1a1a2e;
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	border-radius: 50px;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.gw-fc-panel__btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Mobile ≤767px ───────────────────────────────────────── */

@media (max-width: 767px) {
	.gw-ferris-carousel   { flex-direction: column; }

	.gw-fc-wheel-col {
		width: 100% !important;
	}
	.gw-fc-panel-col {
		width: 100% !important;
		flex: none;
	}
	.gw-fc-panel          { border-radius: 0 0 20px 20px; min-height: unset; }
	.gw-fc-panel__inner   { padding: 26px 22px; }
	.gw-fc-panel__heading { font-size: 1.45rem; }

	/* Tighter slots on mobile */
	.gw-fc-card.slot-active { top: 8%; left: 20%; width: 75%; height: 75%; }
	.gw-fc-card.slot-prev   { top: 4%; left: 3%; width: 30%; height: 28%; }
	.gw-fc-card.slot-next   { top: 65%; left: 3%; width: 30%; height: 28%; }
}
