/**
 * HLxHub — Featured Mobiles
 *
 * File:
 * assets/css/archive-mobile/featured-mobiles.css
 *
 * Purpose:
 * Premium responsive Featured Mobiles section
 */

/* =========================================================
   1. SECTION
========================================================= */

.hlx-featured-mobiles {
	--hlx-featured-primary: #2563eb;
	--hlx-featured-primary-dark: #1746b8;
	--hlx-featured-cyan: #06b6d4;
	--hlx-featured-text: #152238;
	--hlx-featured-muted: #64748b;
	--hlx-featured-border: #e8eef6;

	position: relative;
	isolation: isolate;
	width: 100%;
	padding: 75px 0 85px;
	overflow: hidden;
	background:
		radial-gradient(
			ellipse at 95% 0%,
			rgba(59, 130, 246, 0.08),
			transparent 38%
		),
		linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
	color: var(--hlx-featured-text);
	font-family: inherit;
}

/* =========================================================
   2. CONTAINER
========================================================= */

.hlx-featured-mobiles__container {
	width: min(1240px, calc(100% - 48px));
	margin: 0 auto;
}

/* =========================================================
   3. SECTION HEADER
========================================================= */

.hlx-featured-mobiles__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 25px;
	margin-bottom: 34px;
}

.hlx-featured-mobiles__heading {
	max-width: 690px;
}

.hlx-featured-mobiles__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: #2563eb;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.7px;
	text-transform: uppercase;
}

.hlx-featured-mobiles__eyebrow::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 3px;
	border-radius: 5px;
	background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.hlx-featured-mobiles__title {
	margin: 0;
	color: #152238;
	font-size: clamp(30px, 3.5vw, 43px);
	font-weight: 850;
	line-height: 1.15;
	letter-spacing: -1.5px;
}

.hlx-featured-mobiles__title span {
	background: linear-gradient(100deg, #2563eb, #06b6d4);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hlx-featured-mobiles__description {
	max-width: 610px;
	margin: 13px 0 0;
	color: #718096;
	font-size: 14px;
	line-height: 1.8;
}

/* =========================================================
   4. VIEW ALL BUTTON
========================================================= */

.hlx-featured-mobiles__view-all {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 17px;
	border: 1px solid rgba(37, 99, 235, 0.22);
	border-radius: 11px;
	background: #ffffff;
	color: #2563eb !important;
	font-size: 12px;
	font-weight: 750;
	text-decoration: none !important;
	box-shadow: 0 5px 18px rgba(37, 99, 235, 0.06);
	transition:
		transform 0.25s ease,
		background 0.25s ease,
		box-shadow 0.25s ease;
}

.hlx-featured-mobiles__view-all span {
	font-size: 17px;
	transition: transform 0.25s ease;
}

.hlx-featured-mobiles__view-all:hover {
	transform: translateY(-2px);
	background: #eff6ff;
	box-shadow: 0 9px 22px rgba(37, 99, 235, 0.12);
	color: #1746b8 !important;
}

.hlx-featured-mobiles__view-all:hover span {
	transform: translateX(4px);
}

.hlx-featured-mobiles__view-all:focus-visible,
.hlx-featured-mobiles__button:focus-visible,
.hlx-featured-mobiles__name a:focus-visible,
.hlx-featured-mobiles__image-link:focus-visible {
	outline: 3px solid rgba(14, 165, 233, 0.65);
	outline-offset: 4px;
}

/* =========================================================
   5. GRID
========================================================= */

.hlx-featured-mobiles__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	align-items: stretch;
}

/* =========================================================
   6. CARD
========================================================= */

.hlx-featured-mobiles__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e8eef6;
	border-radius: 19px;
	background: #ffffff;
	box-shadow:
		0 7px 25px rgba(15, 23, 42, 0.045),
		0 2px 6px rgba(15, 23, 42, 0.025);
	transition:
		transform 0.3s ease,
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.hlx-featured-mobiles__card:hover {
	transform: translateY(-7px);
	border-color: rgba(37, 99, 235, 0.28);
	box-shadow:
		0 20px 42px rgba(30, 64, 175, 0.11),
		0 5px 12px rgba(15, 23, 42, 0.045);
}

/* =========================================================
   7. IMAGE LINK
========================================================= */

.hlx-featured-mobiles__image-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 17px 16px 0;
	background:
		radial-gradient(
			ellipse at 50% 50%,
			rgba(59, 130, 246, 0.12),
			transparent 68%
		),
		linear-gradient(145deg, #f6f9ff, #edf4ff);
	text-decoration: none !important;
}

.hlx-featured-mobiles__image-link::after {
	content: "";
	position: absolute;
	right: 14%;
	bottom: 0;
	left: 14%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(37, 99, 235, 0.12),
		transparent
	);
}

/* Featured badge */

.hlx-featured-mobiles__badge {
	position: absolute;
	z-index: 2;
	top: 15px;
	left: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 30px;
	background: linear-gradient(135deg, #2563eb, #0ea5e9);
	color: #ffffff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	box-shadow: 0 5px 13px rgba(37, 99, 235, 0.23);
}

/* =========================================================
   8. IMAGE
========================================================= */

.hlx-featured-mobiles__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 205px;
	overflow: hidden;
}

.hlx-featured-mobiles__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 12px 13px rgba(15, 23, 42, 0.10));
	transition:
		transform 0.4s ease,
		filter 0.4s ease;
}

.hlx-featured-mobiles__card:hover .hlx-featured-mobiles__image {
	transform: translateY(-5px) scale(1.045);
	filter: drop-shadow(0 17px 17px rgba(15, 23, 42, 0.15));
}

/* Placeholder */

.hlx-featured-mobiles__image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 115px;
	height: 175px;
	border: 3px solid #cbd5e1;
	border-radius: 20px;
	background: linear-gradient(145deg, #e2e8f0, #f8fafc);
	color: #64748b;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 15px 25px rgba(15, 23, 42, 0.10);
}

/* =========================================================
   9. CARD BODY
========================================================= */

.hlx-featured-mobiles__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 19px 17px 17px;
}

.hlx-featured-mobiles__name {
	margin: 0;
	color: #17243b;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.3px;
	overflow-wrap: anywhere;
}

.hlx-featured-mobiles__name a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.hlx-featured-mobiles__name a:hover {
	color: #2563eb !important;
}

/* =========================================================
   10. PROCESSOR
=====

/* =========================================================
   11. DETAILS
========================================================= */

.hlx-featured-mobiles__details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 9px;
	margin-top: 17px;
	padding: 12px 0;
	border-top: 1px solid #edf1f7;
	border-bottom: 1px solid #edf1f7;
}

/* Rating */

.hlx-featured-mobiles__rating {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.hlx-featured-mobiles__rating > span:first-child {
	color: #f59e0b;
	font-size: 15px;
	line-height: 1;
}

.hlx-featured-mobiles__rating strong {
	color: #24344e;
	font-size: 13px;
	font-weight: 850;
}

.hlx-featured-mobiles__rating-label {
	color: #94a3b8;
	font-size: 10px;
	font-weight: 600;
}

/* Price */

.hlx-featured-mobiles__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	min-width: 0;
}

.hlx-featured-mobiles__price > span {
	color: #94a3b8;
	font-size: 9px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.7px;
}

.hlx-featured-mobiles__price strong {
	color: #13834b;
	font-size: 15px;
	font-weight: 850;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

/* =========================================================
   12. REVIEW BUTTON
========================================================= */

.hlx-featured-mobiles__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 43px;
	margin-top: auto;
	padding: 10px 12px;
	border: 1px solid rgba(37, 99, 235, 0.15);
	border-radius: 10px;
	background: linear-gradient(135deg, #eff6ff, #f0f9ff);
	color: #2563eb !important;
	font-size: 11px;
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
	transition:
		background 0.25s ease,
		color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.hlx-featured-mobiles__button span {
	font-size: 16px;
	transition: transform 0.25s ease;
}

.hlx-featured-mobiles__button:hover {
	transform: translateY(-2px);
	border-color: transparent;
	background: linear-gradient(135deg, #2563eb, #1746b8);
	color: #ffffff !important;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.hlx-featured-mobiles__button:hover span {
	transform: translateX(4px);
}

/* =========================================================
   13. LAPTOP / SMALL DESKTOP
========================================================= */

@media (max-width: 1100px) {
	.hlx-featured-mobiles__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 19px;
	}

	.hlx-featured-mobiles__image-wrap {
		height: 195px;
	}
}

/* =========================================================
   14. TABLET
========================================================= */

@media (max-width: 767px) {
	.hlx-featured-mobiles {
		padding: 55px 0 60px;
	}

	.hlx-featured-mobiles__container {
		width: calc(100% - 36px);
	}

	.hlx-featured-mobiles__header {
		align-items: flex-start;
		gap: 15px;
		margin-bottom: 25px;
	}

	.hlx-featured-mobiles__title {
		font-size: clamp(27px, 5vw, 35px);
		letter-spacing: -1px;
	}

	.hlx-featured-mobiles__description {
		margin-top: 10px;
		font-size: 12px;
	}

	.hlx-featured-mobiles__view-all {
		min-height: 39px;
		gap: 6px;
		padding: 0 11px;
		font-size: 10px;
	}

	.hlx-featured-mobiles__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 15px;
	}

	.hlx-featured-mobiles__image-wrap {
		height: 185px;
	}

	.hlx-featured-mobiles__body {
		padding: 15px 13px 13px;
	}

	.hlx-featured-mobiles__name {
		font-size: 14px;
	}

	.hlx-featured-mobiles__processor {
		font-size: 10px;
	}

	.hlx-featured-mobiles__details {
		gap: 7px;
		margin-top: 12px;
		padding: 10px 0;
	}

	.hlx-featured-mobiles__price strong {
		font-size: 13px;
	}
}

/* =========================================================
   15. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
	.hlx-featured-mobiles {
		padding: 42px 0 48px;
	}

	.hlx-featured-mobiles__container {
		width: calc(100% - 28px);
	}

	.hlx-featured-mobiles__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		margin-bottom: 20px;
	}

	.hlx-featured-mobiles__title {
		font-size: 29px;
	}

	.hlx-featured-mobiles__description {
		font-size: 12px;
		line-height: 1.7;
	}

	.hlx-featured-mobiles__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 11px;
	}

	.hlx-featured-mobiles__card {
		border-radius: 14px;
	}

	.hlx-featured-mobiles__image-link {
		padding: 14px 8px 0;
	}

	.hlx-featured-mobiles__image-wrap {
		height: 145px;
	}

	.hlx-featured-mobiles__badge {
		top: 9px;
		left: 8px;
		padding: 5px 7px;
		font-size: 8px;
	}

	.hlx-featured-mobiles__body {
		padding: 12px 10px 10px;
	}

	.hlx-featured-mobiles__name {
		font-size: 12px;
		line-height: 1.4;
	}

	.hlx-featured-mobiles__processor {
		min-height: 31px;
		margin-top: 6px;
		font-size: 9px;
	}

	.hlx-featured-mobiles__details {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
		margin-top: 10px;
		padding: 9px 0;
	}

	.hlx-featured-mobiles__rating-label {
		font-size: 9px;
	}

	.hlx-featured-mobiles__price {
		align-items: flex-start;
	}

	.hlx-featured-mobiles__price strong {
		font-size: 13px;
	}

	.hlx-featured-mobiles__button {
		min-height: 37px;
		gap: 5px;
		padding: 7px 5px;
		border-radius: 8px;
		font-size: 9px;
	}

	.hlx-featured-mobiles__button span {
		font-size: 13px;
	}
}

/* =========================================================
   16. EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 340px) {
	.hlx-featured-mobiles__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 15px;
	}

	.hlx-featured-mobiles__image-wrap {
		height: 210px;
	}

	.hlx-featured-mobiles__body {
		padding: 15px;
	}

	.hlx-featured-mobiles__name {
		font-size: 15px;
	}

	.hlx-featured-mobiles__details {
		flex-direction: row;
		align-items: center;
	}

	.hlx-featured-mobiles__price {
		align-items: flex-end;
	}
}

/* =========================================================
   17. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
	.hlx-featured-mobiles *,
	.hlx-featured-mobiles *::before,
	.hlx-featured-mobiles *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
