/**
 * Pracownie — zakładki i karty.
 */

.pracownie-hero-meta__chip {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 50rem;
	background: var(--bs-secondary-bg);
	line-height: 1.35;
}

.pracownie-hero-meta__chip > .bi {
	flex-shrink: 0;
	width: 1em;
	text-align: center;
}

.lg-sticky-top {
	position: static;
	top: auto;
}

@media (min-width: 992px) {
	.lg-sticky-top {
		position: sticky;
		top: var(--eureka-sticky-top, 5.5rem);
	}
}

/* —— Sidebar: wybór pracowni (Lovable) —— */
.pracownie-tabs-nav {
	display: block;
	background: #fff;
	border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
	border-radius: 1.5rem;
	padding: 0.75rem;
	box-shadow: var(--eureka-shadow-card);
}

.pracownie-tabs-nav__label {
	margin: 0;
	padding: 0.35rem 0.75rem 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bs-secondary-color);
}

.pracownie-tabs-nav__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.pracownie-tab-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.7rem 1rem;
	border: none;
	border-radius: 1rem;
	background: transparent;
	color: var(--bs-body-color);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pracownie-tab-btn__text {
	display: block;
}

.pracownie-tab-btn:hover:not(.is-active) {
	background: var(--bs-secondary-bg);
}

.pracownie-tab-btn.is-active,
.pracownie-tab-btn.active {
	color: #fff;
	background: var(--eureka-gradient-primary);
	box-shadow: var(--eureka-shadow-glow);
}

.pracownie-tab-btn:focus {
	outline: none;
}

.pracownie-tab-btn:focus-visible {
	outline: 2px solid var(--eureka-primary);
	outline-offset: 2px;
}

@media (min-width: 992px) {
	.pracownie-tabs-nav {
		min-width: 17.5rem;
	}
}

/* —— Karta pracowni —— */
.pracownia-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.pracownia-hero:not(.pracownia-hero--with-image) {
	min-height: 16rem;
}

.pracownia-hero:not(.pracownia-hero--with-image) .pracownia-hero__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.pracownia-hero--with-image {
	aspect-ratio: 16 / 9;
	min-height: 16rem;
	background: #1f2937;
}

.pracownia-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #1f2937;
}

.pracownia-hero:not(.pracownia-hero--with-image) .pracownia-hero__media {
	display: none;
}

.pracownia-hero__carousel {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.pracownia-hero__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.pracownia-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgb(245 241 236 / 0.97) 0%,
		rgb(248 244 239 / 0.88) 42%,
		transparent 72%
	);
}

.pracownia-hero--carousel .pracownia-hero__carousel .pracownia-hero__photo {
	opacity: 0;
	transition: opacity 1.1s ease-in-out;
}

.pracownia-hero--carousel .pracownia-hero__carousel .pracownia-hero__photo.is-active {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.pracownia-hero--carousel .pracownia-hero__carousel .pracownia-hero__photo {
		transition: none;
	}
}

.pracownia-hero__body {
	position: relative;
	z-index: 2;
}

.pracownia-hero--with-image .pracownia-hero__body {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: inherit;
	background: transparent;
}

.pracownia-hero__field-badge {
	align-self: flex-end;
	margin-bottom: auto;
}

.pracownia-hero--with-image .pracownia-hero__field-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	margin: 0;
}

@media (min-width: 768px) {
	.pracownia-hero--with-image .pracownia-hero__field-badge {
		top: 1.25rem;
		right: 1.25rem;
	}
}

.pracownia-hero__title {
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--bs-secondary-color);
}

.pracownia-hero--with-image .pracownia-hero__content .badge {
	background: rgba(255, 255, 255, 0.95) !important;
	color: #111827 !important;
}

.pracownie-panel .eureka-kierunek-block-title {
	font-size: clamp(1.35rem, 2vw, 1.65rem);
	line-height: 1.2;
	color: var(--eureka-navy, #0e2341);
}

.pracownia-hero--rose:not(.pracownia-hero--with-image) .pracownia-hero__body { background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(236, 72, 153, 0.04)); }
.pracownia-hero--amber:not(.pracownia-hero--with-image) .pracownia-hero__body { background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(249, 115, 22, 0.04)); }
.pracownia-hero--fuchsia:not(.pracownia-hero--with-image) .pracownia-hero__body { background: linear-gradient(135deg, rgba(217, 70, 239, 0.12), rgba(236, 72, 153, 0.04)); }
.pracownia-hero--emerald:not(.pracownia-hero--with-image) .pracownia-hero__body { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(20, 184, 166, 0.04)); }
.pracownia-hero--blue:not(.pracownia-hero--with-image) .pracownia-hero__body { background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.04)); }
.pracownia-hero--lime:not(.pracownia-hero--with-image) .pracownia-hero__body { background: linear-gradient(135deg, rgba(132, 204, 22, 0.14), rgba(34, 197, 94, 0.04)); }
.pracownia-hero--slate:not(.pracownia-hero--with-image) .pracownia-hero__body { background: linear-gradient(135deg, rgba(51, 65, 85, 0.1), rgba(113, 113, 122, 0.04)); }
.pracownia-hero--yellow:not(.pracownia-hero--with-image) .pracownia-hero__body { background: linear-gradient(135deg, rgba(234, 179, 8, 0.14), rgba(245, 158, 11, 0.04)); }

.pracownia-hero--rose:not(.pracownia-hero--with-image) { background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(236, 72, 153, 0.08)); }
.pracownia-hero--amber:not(.pracownia-hero--with-image) { background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(249, 115, 22, 0.08)); }
.pracownia-hero--fuchsia:not(.pracownia-hero--with-image) { background: linear-gradient(135deg, rgba(217, 70, 239, 0.2), rgba(236, 72, 153, 0.08)); }
.pracownia-hero--emerald:not(.pracownia-hero--with-image) { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.08)); }
.pracownia-hero--blue:not(.pracownia-hero--with-image) { background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.08)); }
.pracownia-hero--lime:not(.pracownia-hero--with-image) { background: linear-gradient(135deg, rgba(132, 204, 22, 0.22), rgba(34, 197, 94, 0.08)); }
.pracownia-hero--slate:not(.pracownia-hero--with-image) { background: linear-gradient(135deg, rgba(51, 65, 85, 0.18), rgba(113, 113, 122, 0.08)); }
.pracownia-hero--yellow:not(.pracownia-hero--with-image) { background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(245, 158, 11, 0.08)); }

.pracownia-equip-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--bs-primary);
}

.pracownie-panel iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
