/**
 * Featured Posts Sidebar Shortcode
 */

.tp-featured-sidebar {
	width: 100%;
	padding: 24px 20px;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tp-featured-sidebar__header {
	margin-bottom: 22px;
}

.tp-featured-sidebar__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.2px;
}

.tp-featured-sidebar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #e50914;
}

.tp-featured-sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tp-featured-sidebar__item {
	display: grid;
	grid-template-columns: 34px 68px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
}

.tp-featured-sidebar__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	color: #e50914;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 2px 10px rgba(229, 9, 20, 0.12);
}

.tp-featured-sidebar__thumb {
	display: block;
	width: 68px;
	height: 58px;
	border-radius: 6px;
	overflow: hidden;
	background: #f3f3f3;
	text-decoration: none;
}

.tp-featured-sidebar__thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.25s ease, filter 0.25s ease;
}

.tp-featured-sidebar__item:hover .tp-featured-sidebar__thumb img {
	transform: scale(1.06);
	filter: brightness(0.96);
}

.tp-featured-sidebar__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f2f2f2, #dddddd);
}

.tp-featured-sidebar__post-title {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.55;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tp-featured-sidebar__post-title a {
	color: inherit;
	text-decoration: none;
}

.tp-featured-sidebar__post-title a:hover {
	color: #e50914;
}

.tp-featured-sidebar__empty {
	margin: 0;
	padding: 12px 0;
	font-size: 14px;
	color: #888;
	text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
	.tp-featured-sidebar {
		padding: 22px 18px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.tp-featured-sidebar__item {
		grid-template-columns: 32px 64px minmax(0, 1fr);
		gap: 10px;
	}

	.tp-featured-sidebar__thumb {
		width: 64px;
		height: 54px;
	}

	.tp-featured-sidebar__post-title {
		font-size: 13.5px;
	}
}