/**
 * JR Modern Blocks — Painéis Interativos
 * Painéis de imagem expansíveis (o ativo alarga via flex-grow).
 */

.jr-ipanels {
	display: flex;
	gap: 10px;
	height: 420px;
	width: 100%;
	overflow: hidden;
}

.jr-ipanel {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #1f2937;
	cursor: pointer;
	text-decoration: none;
	transition: flex-grow 500ms cubic-bezier(0.4, 0, 0.2, 1);
	will-change: flex-grow;
}

.jr-ipanel.is-active {
	flex-grow: 5;
}

/* Overlay em gradiente (base para o rótulo) */
.jr-ipanel__overlay {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to top, rgba(17, 24, 39, 0.35), transparent 60%);
}

/* Rótulo */
.jr-ipanel__label {
	position: absolute;
	left: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 18px;
}

.jr-ipanel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-size: 1.05rem;
}

.jr-ipanel__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.jr-ipanel__title {
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 400ms ease, transform 400ms ease;
	transition-delay: 120ms;
}

/* O título só aparece no painel ativo */
.jr-ipanel.is-active .jr-ipanel__title {
	opacity: 1;
	transform: translateX(0);
}

@media (max-width: 767px) {
	.jr-ipanels {
		flex-direction: column;
		height: auto;
	}
	.jr-ipanel {
		height: 90px;
	}
	.jr-ipanel.is-active {
		height: 240px;
	}
	.jr-ipanel__title {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jr-ipanel,
	.jr-ipanel__title {
		transition: none;
	}
}
