/**
 * Zona të zhytjes widget
 * Tokens from globals.css only.
 *
 * @package HelloElementorChild
 */

.hec-dive,
.hec-dive *,
.hec-dive *::before,
.hec-dive *::after {
	box-sizing: border-box;
}

.hec-dive {
	padding: var(--space-2xl) 0;
	font-family: var(--font-body);
	color: var(--color-ink);
	background:
		radial-gradient(ellipse 80% 50% at 0% 0%, rgba(17, 138, 178, 0.1), transparent 55%),
		var(--color-frost);
}

.hec-dive__container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--space-md);
}

.hec-dive__main {
	display: grid;
	gap: var(--space-xl);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hec-dive__decision {
	padding: var(--space-xl);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-left: 5px solid var(--color-sea);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
}

.hec-dive__decision-label {
	margin: 0 0 var(--space-sm);
	font-family: var(--font-heading);
	font-size: 0.8rem;
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-sea);
}

.hec-dive__decision-text {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: var(--font-weight-medium);
	line-height: 1.65;
	color: var(--color-ink);
}

.hec-dive__materials-heading {
	margin: 0 0 var(--space-md);
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-ink);
}

.hec-dive__materials-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
}

.hec-dive__material {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.15rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: var(--font-weight-semibold);
	color: var(--color-ink);
	text-decoration: none;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	transition:
		border-color var(--transition-base),
		box-shadow var(--transition-base),
		transform var(--transition-base),
		color var(--transition-base);
}

.hec-dive__material i {
	color: var(--color-sea);
}

.hec-dive__material:hover {
	border-color: var(--color-sea);
	color: var(--color-sea);
	box-shadow: var(--shadow-medium);
	transform: translateY(-2px);
}

.hec-dive__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-md);
}

.hec-dive__gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	box-shadow: var(--shadow-soft);
	text-decoration: none;
}

.hec-dive__gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-base);
}

.hec-dive__gallery-item:hover img {
	transform: scale(1.04);
}

.hec-dive__gallery-zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(7, 59, 76, 0.32);
	color: var(--color-surface);
	font-size: 1.25rem;
	opacity: 0;
	transition: opacity var(--transition-fast);
	pointer-events: none;
}

.hec-dive__gallery-item:hover .hec-dive__gallery-zoom,
.hec-dive__gallery-item:focus-visible .hec-dive__gallery-zoom {
	opacity: 1;
}

@media (max-width: 900px) {
	.hec-dive__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 540px) {
	.hec-dive__gallery {
		grid-template-columns: 1fr;
	}

	.hec-dive__materials-list {
		flex-direction: column;
	}

	.hec-dive__material {
		width: 100%;
		justify-content: flex-start;
	}
}
