/* =Links — AMD Gamer Hub Style
-------------------------------------------------------------- */

.home-links-section {
	background: linear-gradient(180deg, #242424 0%, #000000 100%);
	border-width: 2px 0 2px 0;
	border-style: solid;
	border-color: rgba(81, 81, 81, 1);
}

.home-links-section__inner {
	display: flex;
	align-items: stretch;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
}

/* Link item */
.home-links-item {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	transition: background 0.3s ease;
}

/* Vertical dividers with 16px top/bottom gap */
.home-links-item + .home-links-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 16px;
	bottom: 16px;
	width: 1px;
	background: #515151;
	z-index: 1;
}

/* First item left border */
.home-links-item:first-child {
	border-left: 1px solid #515151;
	border-image: linear-gradient(to bottom, transparent 16px, #515151 16px, #515151 calc(100% - 16px), transparent calc(100% - 16px)) 1;
}

/* Last item right border */
.home-links-item:last-child {
	border-right: 1px solid #515151;
	border-image: linear-gradient(to bottom, transparent 16px, #515151 16px, #515151 calc(100% - 16px), transparent calc(100% - 16px)) 1;
}

.home-links-item__label {
	font-family: 'Klavika', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: center;
	position: relative;
	z-index: 1;
}

/* Red glow hover effect */
.home-links-item::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	background: radial-gradient(ellipse at center, rgba(130, 2, 1, 0.6) 0%, transparent 65%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.home-links-item:hover::after {
	opacity: 1;
}

.home-links-item:hover .home-links-item__label {
	color: #fff;
}


/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
	.home-links-section {
		border-width: 2px 0;
		border-style: solid;
		border-color: rgba(81, 81, 81, 1);
	}

	.home-links-section__inner {
		display: grid;
		grid-template-columns: repeat(6, 1fr);
		padding: 0;
	}

	/* Reset ALL desktop pseudo-elements */
	.home-links-item::before,
	.home-links-item::after {
		display: none !important;
	}

	.home-links-item:first-child,
	.home-links-item:last-child {
		border-image: none;
		border-left: none;
		border-right: none;
	}

	/* All items base */
	.home-links-item {
		padding: 24px 16px;
	}

	/* Hover glow — re-enable ::after */
	.home-links-item:hover::after {
		display: block !important;
	}

	/* Row 1: 2 items, each span 3 cols */
	.home-links-item:nth-child(1) {
		grid-column: 1 / 4;
		border-bottom: 2px solid #515151;
	}

	.home-links-item:nth-child(2) {
		grid-column: 4 / 7;
		border-bottom: 2px solid #515151 !important;
		border-image: none !important;
	}

	/* Row 2: 3 items, each span 2 cols */
	.home-links-item:nth-child(3) {
		grid-column: 1 / 3;
	}

	.home-links-item:nth-child(4) {
		grid-column: 3 / 5;
	}

	.home-links-item:nth-child(5) {
		grid-column: 5 / 7;
	}

	/* Mobile dividers — dedicated elements via box-shadow on left border items */
	.home-links-item:nth-child(2),
	.home-links-item:nth-child(4),
	.home-links-item:nth-child(5) {
		border-left: 1px solid #515151;
		border-image: linear-gradient(to bottom, transparent 16px, #515151 16px, #515151 calc(100% - 16px), transparent calc(100% - 16px)) 1;
	}
}
