/* ==========================================================================
   Hello Marketplace — Elementor Widget Styles
   ========================================================================== */

/* -- Auctions widget header ------------------------------------------------ */
.hm-auctions-widget__title,
.hm-vendors-widget__title,
.hm-category-widget__title {
	font-family: var(--hm-font-display);
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 700;
	color: var(--hm-text);
	margin: 0 0 8px;
	line-height: 1.2;
}

.hm-auctions-widget__subtitle {
	color: var(--hm-text-muted);
	font-size: 16px;
	margin: 0 0 24px;
}

/* -- Horizontal scroll vendor variant ------------------------------------- */
.hm-vendor-grid--scroll {
	display: flex !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 16px;
	padding-bottom: 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.hm-vendor-grid--scroll::-webkit-scrollbar {
	height: 6px;
}

.hm-vendor-grid--scroll::-webkit-scrollbar-thumb {
	background: var(--hm-border);
	border-radius: 3px;
}

.hm-vendor-grid--scroll .hm-vendor-card {
	flex: 0 0 200px;
	scroll-snap-align: start;
}

/* -- Category tiles ------------------------------------------------------- */
.hm-category-grid {
	display: grid;
	gap: 20px;
}

.hm-category-tile {
	position: relative;
	display: block;
	border-radius: var(--hm-radius-lg);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	text-decoration: none;
	transition: transform var(--hm-transition), box-shadow var(--hm-transition);
	box-shadow: var(--hm-shadow-sm);
}

.hm-category-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--hm-shadow-lg);
}

.hm-category-tile__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s ease;
}

.hm-category-tile:hover .hm-category-tile__img {
	transform: scale(1.05);
}

.hm-category-tile__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(10, 37, 64, 0.75) 100%);
}

.hm-category-tile__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	color: #fff;
}

.hm-category-tile__name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}

.hm-category-tile__count {
	font-size: 12px;
	opacity: 0.9;
	letter-spacing: 0.02em;
}

/* -- Countdown banner widget ---------------------------------------------- */
.hm-countdown-banner {
	border-radius: var(--hm-radius-xl);
	padding: 48px 32px;
	color: #fff;
	text-align: center;
	box-shadow: var(--hm-shadow-lg);
	position: relative;
	overflow: hidden;
}

.hm-countdown-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
	pointer-events: none;
}

.hm-countdown-banner__content {
	position: relative;
	z-index: 1;
	max-width: 700px;
	margin: 0 auto;
}

.hm-countdown-banner__title {
	font-family: var(--hm-font-display);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	margin: 0 0 12px;
	color: #fff;
	line-height: 1.1;
}

.hm-countdown-banner__subtitle {
	font-size: 16px;
	opacity: 0.9;
	margin: 0 0 28px;
}

.hm-countdown--banner {
	background: transparent;
	box-shadow: none;
	padding: 0;
	margin: 0 0 28px;
}

.hm-countdown--banner .hm-countdown-block {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	padding: 16px 8px;
}

.hm-countdown--banner .hm-countdown-block span {
	font-size: 40px;
}

.hm-countdown-banner__cta {
	display: inline-block;
	padding: 14px 36px;
	background: #fff;
	color: var(--hm-text);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: transform var(--hm-transition), box-shadow var(--hm-transition);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hm-countdown-banner__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* -- Stats strip ---------------------------------------------------------- */
.hm-stats-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	padding: 32px 20px;
	background: var(--hm-bg-alt);
	border-radius: var(--hm-radius-lg);
	border: 1px solid var(--hm-border);
}

.hm-stats-strip__item {
	text-align: center;
	padding: 12px;
}

.hm-stats-strip__value {
	font-family: var(--hm-font-display);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	color: var(--hm-accent);
	line-height: 1;
	margin-bottom: 8px;
	font-variant-numeric: tabular-nums;
}

.hm-stats-strip__label {
	font-size: 13px;
	color: var(--hm-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 500;
}

/* -- Mobile adjustments --------------------------------------------------- */
@media (max-width: 640px) {
	.hm-category-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.hm-auction-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
	}
	.hm-countdown-banner {
		padding: 32px 20px;
	}
	.hm-countdown--banner .hm-countdown-block span {
		font-size: 28px;
	}
}

/* -- Accessibility: reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.hm-auction-card,
	.hm-vendor-card,
	.hm-category-tile,
	.hm-category-tile__img,
	.hm-countdown-banner__cta,
	.hm-auction-card__img img {
		transition: none !important;
		animation: none !important;
	}
	.hm-auction-card:hover,
	.hm-vendor-card:hover,
	.hm-category-tile:hover {
		transform: none;
	}
}

/* -- Dark mode support (auto, respects system preference) ----------------- */
@media (prefers-color-scheme: dark) {
	.hm-auto-dark {
		--hm-bg:         #0a0f1a;
		--hm-bg-alt:     #0f172a;
		--hm-border:     #1e293b;
		--hm-text:       #f1f5f9;
		--hm-text-muted: #cbd5e1;
		--hm-text-soft:  #94a3b8;
	}
}
