/**
 * INZC Storefront Block — Niches & Categories CSS
 *
 * Modular stylesheet for the Niches block (influenzic/niches / [inzc_storefront_niches]):
 * V1 horizontal category marquee ticker, niche cards, pill strip, and V2 category icon tiles.
 *
 * @package Influenzic
 * @version 1.0.0
 */

/* ==========================================================================
   1. V1 HORIZONTAL CATEGORY MARQUEE, NICHE CARDS & PILL STRIP
   ========================================================================== */

.inzc-sf-category-ticker,
.inzc-sf-category-bar,
.hero-marquee-wrap {
	position: relative;
	width: 100%;
	height: 54px;
	overflow: hidden;
	background-color: var(--inzc-sf-bg);
	border-top: 1px solid var(--inzc-sf-card-border);
	border-bottom: 1px solid var(--inzc-sf-card-border);
	box-sizing: border-box;
	user-select: none;
	display: flex;
	align-items: center;
	margin-top: 0 !important;
	margin-block-start: 0 !important;
	margin-bottom: 0 !important;
	margin-block-end: 0 !important;
}

.inzc-sf-ticker-fade {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100px;
	z-index: 5;
	pointer-events: none;
}

.inzc-sf-ticker-fade--left {
	left: 0;
	background: linear-gradient(90deg, var(--inzc-sf-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

.inzc-sf-ticker-fade--right {
	right: 0;
	background: linear-gradient(270deg, var(--inzc-sf-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

[data-inzc-theme="dark"] .inzc-sf-ticker-fade--left {
	background: linear-gradient(90deg, #0b0f19 0%, rgba(11, 15, 25, 0) 100%);
}

[data-inzc-theme="dark"] .inzc-sf-ticker-fade--right {
	background: linear-gradient(270deg, #0b0f19 0%, rgba(11, 15, 25, 0) 100%);
}

.inzc-sf-ticker-track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: 40px;
	animation: inzc-sf-hero-marquee 38s linear infinite;
	will-change: transform;
}

.inzc-sf-category-ticker:hover .inzc-sf-ticker-track,
.inzc-sf-category-bar:hover .inzc-sf-ticker-track {
	animation-play-state: paused;
}

@keyframes inzc-sf-hero-marquee {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

.inzc-sf-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--inzc-sf-muted-color);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color 0.15s ease;
}

.inzc-sf-ticker-item:hover {
	color: var(--inzc-primary, #6366f1);
}

.inzc-sf-ticker-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: rgba(99, 102, 241, 0.45);
	display: inline-block;
	flex-shrink: 0;
}

.inzc-sf-niches--cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.inzc-sf-niche-card {
	background-color: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 12px;
	padding: 24px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all 0.2s ease;
}

.inzc-sf-niche-card:hover {
	transform: translateY(-4px);
	border-color: var(--inzc-primary, #6366f1);
	box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

.inzc-sf-niche-icon {
	font-size: 32px;
	margin-bottom: 12px;
}

.inzc-sf-niche-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--inzc-sf-title-color);
	margin: 0 0 4px;
}

.inzc-sf-niche-count {
	font-size: 13px;
	color: var(--inzc-sf-muted-color);
}

.inzc-sf-niches--strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 0;
}

.inzc-sf-strip-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background-color: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 9999px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--inzc-sf-title-color);
	transition: all 0.15s ease;
}

.inzc-sf-strip-item:hover {
	border-color: var(--inzc-primary, #6366f1);
	color: var(--inzc-primary, #6366f1);
	transform: translateY(-2px);
}

/* ==========================================================================
   2. V2 CATEGORY ICON TILES
   ========================================================================== */

.inzc-sf-v2-categories-section {
	padding: 28px 0 36px;
}

.inzc-sf-v2-cat-grid {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 12px;
}

.inzc-sf-v2-cat-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--inzc-sf-heading, #0f172a);
	text-decoration: none;
	transition: transform 0.18s ease;
}

.inzc-sf-v2-cat-tile:hover {
	transform: translateY(-3px);
}

.inzc-sf-v2-cat-tile:hover .inzc-sf-v2-cat-icon {
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.inzc-sf-v2-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 102px;
	height: 60px;
	border-radius: 14px;
	transition: box-shadow 0.18s ease;
}

.inzc-sf-v2-cat-icon--rose {
	background: #fdf2f8;
	color: #e11d48;
}

.inzc-sf-v2-cat-icon--purple {
	background: #f5f3ff;
	color: #9333ea;
}

.inzc-sf-v2-cat-icon--emerald {
	background: #ecfdf5;
	color: #10b981;
}

.inzc-sf-v2-cat-icon--blue {
	background: #eff6ff;
	color: #2563eb;
}

.inzc-sf-v2-cat-icon--amber {
	background: #fffbeb;
	color: #f59e0b;
}

.inzc-sf-v2-cat-icon--indigo {
	background: #eef2ff;
	color: #6366f1;
}

.inzc-sf-v2-cat-icon--coral {
	background: #fff1f2;
	color: #ef4444;
}

.inzc-sf-v2-cat-icon--sky {
	background: #e0f2fe;
	color: #0284c7;
}

.inzc-sf-v2-cat-icon--teal {
	background: #ecfeff;
	color: #16a34a;
}

.inzc-sf-v2-cat-icon--pink {
	background: #fce7f3;
	color: #db2777;
}

[data-inzc-theme="dark"] .inzc-sf-v2-cat-icon {
	background: rgba(255, 255, 255, 0.06);
}

.inzc-sf-v2-cat-tile .inzc-sf-v2-cat-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--inzc-sf-heading, #0f172a);
	text-align: center;
}

/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1120px) {
	.inzc-sf-v2-cat-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 992px) {
	.inzc-sf-niches--cards {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: calc(44% - 12px);
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 12px;
		scrollbar-width: thin;
		scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
	}

	.inzc-sf-niches--cards>* {
		scroll-snap-align: start;
		min-width: 0;
	}

	.inzc-sf-niches--cards::-webkit-scrollbar {
		height: 4px;
	}

	.inzc-sf-niches--cards::-webkit-scrollbar-track {
		background: transparent;
	}

	.inzc-sf-niches--cards::-webkit-scrollbar-thumb {
		background: rgba(99, 102, 241, 0.35);
		border-radius: 9999px;
	}
}

@media (max-width: 640px) {
	.inzc-sf-niches--cards {
		grid-auto-columns: 83%;
		gap: 16px;
	}

	.inzc-sf-niches--cards>* {
		min-width: 265px;
	}

	.inzc-sf-v2-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}