/* home.css — homepage only (pageStyle: home). Hero, home stats,
   genre/filter chip tabs, filter bar + empty state. Loaded with global.css. */

/* =====================================================
	 Home Hero
	 ===================================================== */

.home-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 65% 30%, rgba(176,123,252,0.18) 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 15% 85%, rgba(86,176,255,0.12) 0%, transparent 60%),
		radial-gradient(ellipse 50% 40% at 85% 75%, rgba(248,87,166,0.10) 0%, transparent 60%),
		linear-gradient(180deg, #0b1220 0%, #060b17 100%);
	border-bottom: 1px solid #1d3045;
	margin-bottom: 3rem;
}

.home-hero__stars {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.85;
	pointer-events: none;
	z-index: 0;
}

.home-hero__floats {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.home-hero__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 3.5rem 1.5rem 3rem;
	position: relative;
	z-index: 1;
}

.home-hero__title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	padding-bottom: 0.3em;
	filter: drop-shadow(0 0 30px rgba(176,123,252,0.45));
}

.home-hero__title-song {
	color: #dddddd;
	-webkit-text-stroke: 1px #dddddd;
}

.home-hero__title-suey {
	background: linear-gradient(135deg, #f857a6, #b07bfc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	-webkit-text-stroke: 0.5px transparent;
	padding-right: 0.08em;
}

.home-hero__tagline {
	font-size: clamp(1.1rem, 2.5vw, 1.4rem);
	color: #8b9bb4;
	margin-bottom: 1rem;
}

.home-hero__description {
	max-width: 600px;
	color: #8b9bb4;
	line-height: 1.65;
	font-size: 0.97rem;
}

@property --count {
	syntax: '<integer>';
	initial-value: 0;
	inherits: false;
}

@keyframes count-up {
	from { --count: 0; opacity: 0; }
	to   { --count: var(--target, 0); opacity: 1; }
}

.home-stats {
	display: flex;
	gap: 2rem;
	margin-top: 1.5rem;
}

.home-stat__number {
	display: block;
	line-height: 1;
	min-width: 4ch;
	font-size: 1.6rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	color: #dddddd;
}

@supports (color: hsl(from red h s l)) {
	.home-stat__number {
		font-size: 0;
		opacity: 0;
		counter-reset: n var(--count);
		animation: count-up 1.8s ease-out forwards;
	}
	.home-stat__number::after {
		content: counter(n);
		display: inline-block;
		min-width: 4ch;
		font-size: 1.6rem;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
		letter-spacing: -0.03em;
		color: #dddddd;
	}
}

.home-stat {
	text-align: center;
}

.home-stat__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4a5a72;
	margin-top: 0.3rem;
}

.hero-chip {
	position: absolute;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	pointer-events: none;
	padding: 0.22rem 0.65rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	opacity: 0;
	animation: hero-float linear 1 both;
	will-change: translate, opacity;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.hero-chip--name {
	background: rgba(205,217,229,0.07);
	color: #cdd9e5;
	border: 1px solid rgba(205,217,229,0.18);
}

.hero-chip--purple {
	background: rgba(176,123,252,0.15);
	color: #b07bfc;
	border: 1px solid rgba(176,123,252,0.35);
	box-shadow: 0 0 10px rgba(176,123,252,0.12);
}

.hero-chip--magenta {
	background: rgba(248,87,166,0.15);
	color: #f857a6;
	border: 1px solid rgba(248,87,166,0.35);
	box-shadow: 0 0 10px rgba(248,87,166,0.12);
}

.hero-chip--blue {
	background: rgba(86,176,255,0.15);
	color: #56b0ff;
	border: 1px solid rgba(86,176,255,0.35);
	box-shadow: 0 0 10px rgba(86,176,255,0.12);
}

.hero-chip--cyan {
	background: rgba(61,214,245,0.12);
	color: #3dd6f5;
	border: 1px solid rgba(61,214,245,0.3);
	box-shadow: 0 0 10px rgba(61,214,245,0.1);
}

.hero-chip--high {
	background: rgba(61,220,132,0.15);
	color: #3ddc84;
	border: 1px solid rgba(61,220,132,0.35);
	box-shadow: 0 0 10px rgba(61,220,132,0.12);
}

.hero-chip--mid {
	background: rgba(255,210,63,0.15);
	color: #ffd23f;
	border: 1px solid rgba(255,210,63,0.35);
	box-shadow: 0 0 10px rgba(255,210,63,0.12);
}

.hero-chip--low {
	background: rgba(255,107,107,0.15);
	color: #ff6b6b;
	border: 1px solid rgba(255,107,107,0.35);
	box-shadow: 0 0 10px rgba(255,107,107,0.12);
}

.hero-chip--none {
	background: rgba(74,85,104,0.18);
	color: #8b9bb4;
	border: 1px solid rgba(74,85,104,0.3);
}

@keyframes hero-float {
	0%   { opacity: 0; translate: 0px 0px; }
	8%   { opacity: 0.5; }
	92%  { opacity: 0.5; }
	100% { opacity: 0; translate: var(--tx, 0px) var(--ty, -40px); }
}

@media (max-width: 991.98px) {
	.home-hero__inner {
		backdrop-filter: blur(1px);
		-webkit-backdrop-filter: blur(1px);
		border-radius: 8px;
	}
}

.grid-heading-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem 0.75rem;
	margin: 1rem 0 0.75rem;
}

.grid-heading {
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 0;
}

.grid-heading-row .filter-bar {
	margin: 0;
}

.filter-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text-muted);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter-toggle-btn:hover,
.filter-toggle-btn[aria-expanded="true"] {
	border-color: rgba(176, 123, 252, 0.45);
	color: var(--text);
}

.filter-toggle-btn__arrow {
	font-size: 0.7rem;
	opacity: 0.6;
	transition: transform 0.2s ease;
}

.filter-toggle-btn[aria-expanded="true"] .filter-toggle-btn__arrow {
	transform: rotate(180deg);
}

.filter-bar--toggleable {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin-top: 0;
	margin-bottom: 0;
	transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}

.filter-bar--toggleable.is-open {
	max-height: 200px;
	opacity: 1;
	margin-top: 0.5rem;
	margin-bottom: 1.25rem;
	transition: max-height 0.35s ease-in, opacity 0.3s ease-in, margin 0.35s ease-in;
}

.filter-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
}

.filter-row__label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	min-width: 3.5rem;
	flex-shrink: 0;
}

.genre-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.genre-filter {
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: #aaa;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.genre-filter:hover {
	color: var(--text);
	border-color: var(--text-muted);
}

.genre-filter.active {
	background: rgba(176, 123, 252, 0.14);
	border-color: rgba(176, 123, 252, 0.45);
	color: var(--accent-2);
	box-shadow: 0 0 10px rgba(176, 123, 252, 0.18);
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text-muted);
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter-chip:hover {
	border-color: rgba(176, 123, 252, 0.45);
	color: var(--text);
}

.filter-chip.active {
	background: rgba(176, 123, 252, 0.14);
	border-color: rgba(176, 123, 252, 0.45);
	color: var(--accent-2);
}

.filter-chip-divider {
	display: block;
	width: 1px;
	height: 1.2rem;
	background: var(--border);
	margin: 0 0.25rem;
	align-self: center;
}

/* Filter bar */
.filter-bar {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1.75rem;
	flex-wrap: wrap;
}


.filter-empty {
	padding: 3rem 2rem;
	text-align: center;
	background: color-mix(in srgb, var(--accent-2) 12%, transparent);
	border: 1px dashed color-mix(in srgb, var(--accent-2) 55%, transparent);
	border-radius: var(--radius);
	margin-top: 0.5rem;
}

.filter-empty__heading {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 0.4rem;
}

.filter-empty__sub {
	font-size: 0.88rem;
	color: var(--text-muted);
}
