/* =============================================================
   Trending widget — front page right sidebar (replaces Lucky Draw)
   Real vd_link data: top 5 by views, rank + logo + name + views
   ============================================================= */

.vd-trend-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 14px;
}

.vd-trend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 12px;
	transition: background .2s;
}

.vd-trend-item:hover {
	background: var(--vd-inset);
}

.vd-trend-rank {
	flex: none;
	width: 18px;
	font-size: 13px;
	font-weight: 800;
	color: var(--vd-text-3);
	text-align: center;
}

/* Medal colors for the top three. */
.vd-trend-item:nth-child(1) .vd-trend-rank {
	color: #f59e0b;
}

.vd-trend-item:nth-child(2) .vd-trend-rank {
	color: #94a3b8;
}

.vd-trend-item:nth-child(3) .vd-trend-rank {
	color: #d97706;
}

.vd-trend-logo {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
}

.vd-trend-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vd-trend-logo-ph {
	font-size: 15px;
	font-weight: 800;
	color: var(--vd-primary);
}

.vd-trend-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.vd-trend-body b {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--vd-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vd-trend-body small {
	font-size: 12px;
	color: var(--vd-text-3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Category pill + business type on one line (pill stays, text truncates).
   overflow + max-width:0 keep the nowrap text out of the row's
   min-content, so the widget can't push the page wider on phones. */
.vd-trend-sub {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	overflow: hidden;
}

.vd-trend-sub small {
	flex: 1;
	min-width: 0;
	max-width: 0;
}

.vd-trend-tag {
	flex: none;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
}

.vd-trend-views {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--vd-text-3);
}

.vd-trend-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-top: 12px;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--vd-primary);
	background: var(--vd-primary-soft);
	border-radius: 999px;
	transition: filter .2s;
}

.vd-trend-more:hover {
	filter: brightness(0.97);
}
