/**
 * QRIX Navigation Bar — Styles
 */

/* ==========================================================================
   Nav Bar Container — always 3 equal columns (grid)
   ========================================================================== */

.qrix-nav-bar {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	width: 100%;
	height: 120px;
	gap: 4px;
	overflow: hidden;
}

/* ==========================================================================
   Nav Card — fixed grid position so layout never shifts
   ========================================================================== */

.qrix-nav-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-decoration: none;
	cursor: pointer;
}

/* Each card is pinned to its column regardless of siblings */
.qrix-nav-card--prev { grid-column: 1; }
.qrix-nav-card--up   { grid-column: 2; }
.qrix-nav-card--next { grid-column: 3; }

/* Empty card (no target found) */
.qrix-nav-card--empty {
	pointer-events: none;
	cursor: default;
}

/* ==========================================================================
   Background Image
   ========================================================================== */

.qrix-nav-card-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.4s ease;
}

.qrix-nav-card:hover .qrix-nav-card-bg {
	transform: scale(1.04);
}

/* ==========================================================================
   Overlay
   ========================================================================== */

.qrix-nav-card-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(32, 44, 32, 0.78);
	transition: background-color 0.3s ease;
}

/* ==========================================================================
   Text Content
   ========================================================================== */

.qrix-nav-card-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	padding: 0 24px;
	text-align: center;
	line-height: 1.3;
	max-width: 100%;
}

.qrix-nav-arrow {
	flex-shrink: 0;
	font-size: 1.1em;
	line-height: 1;
}

.qrix-nav-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	.qrix-nav-bar {
		flex-direction: column;
		height: auto;
	}

	.qrix-nav-card {
		height: 80px;
	}

	.qrix-nav-title {
		white-space: normal;
	}
}
