/**
 * BYTF Top Categories - frontend styles
 */

.bytf-tc-list {
	--bytf-tc-radius: 6px;
	--bytf-tc-height: 96px;
	--bytf-tc-gap: 16px;
	--bytf-tc-accent: #f0a500;
	--bytf-tc-plain-bg: #8f8f8f;

	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--bytf-tc-gap);
}

.bytf-tc-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bytf-tc-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--bytf-tc-height);
	padding: 18px 20px;
	border-radius: var(--bytf-tc-radius);
	overflow: hidden;
	text-align: center;
	text-decoration: none;
	background-color: var(--bytf-tc-plain-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bytf-tc-card:hover,
.bytf-tc-card:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* Dark gradient overlay so text stays legible over any image. */
.bytf-tc-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.15) 0%,
		rgba(0, 0, 0, 0.5) 100%
	);
	pointer-events: none;
}

/* Plain (no image) cards get a flat, slightly darker wash. */
.bytf-tc-card--plain .bytf-tc-overlay {
	background: rgba(0, 0, 0, 0.06);
}

.bytf-tc-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	line-height: 1.25;
}

.bytf-tc-name {
	color: #fff;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.2px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.bytf-tc-count {
	color: var(--bytf-tc-accent);
	font-weight: 700;
	font-size: 0.95rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* On plain cards, keep the count readable in white instead of accent. */
.bytf-tc-card--plain .bytf-tc-count {
	color: #fff;
}
