/** Post List **/
.post-list-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.post-list-container {
	position: relative;
	display: flex;
	gap: 18px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	background-color: var(--rs-surface);
	color: var(--rs-text);
	transition: transform var(--rs-transition), box-shadow var(--rs-transition), border-color var(--rs-transition);
}

.post-list-container:hover {
	border-color: transparent;
	box-shadow: var(--rs-shadow);
	transform: translateY(-2px);
}

.post-list-container .post-list-left {
	position: relative;
	flex: 0 0 34%;
	max-width: 280px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--rs-radius-sm);
	background-color: var(--rs-surface-2);
}

.post-list-container .post-list-left .post-list-featured-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.post-list-container:hover .post-list-featured-image {
	transform: scale(1.06);
}

.post-list-container .post-list-middle {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.post-list-container .post-list-middle .post-category-badge {
	align-self: flex-start;
}

.post-list-container .post-list-middle .post-list-title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.post-list-container .post-list-middle .post-list-title a {
	color: var(--rs-text);
}

.post-list-container:hover .post-list-title a {
	color: var(--rs-primary);
}

.post-list-container .post-list-middle .post-list-description {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--rs-text-muted);
	font-size: .9rem;
	line-height: 1.65;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.post-list-container .post-list-middle .post-list-other-detail {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: auto;
	padding-top: 4px;
	color: var(--rs-text-muted);
	font-size: .8rem;
}

.post-list-container .post-list-middle .post-list-other-detail i {
	margin-right: 5px;
}

.post-list-container .post-list-middle .post-list-other-detail .post-list-views {
	font-weight: 600;
}

.post-list-rank {
	position: absolute;
	top: 8px;
	left: 8px;
	min-width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border-radius: 8px;
	background-color: rgba(18, 24, 51, .78);
	color: #fff;
	font-size: .9rem;
	font-weight: 800;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.post-list-rank-top {
	background: var(--rs-brand-gradient);
}

/** Post Grid Card **/
.post-list-grid {
	flex-direction: column;
	gap: 0;
	height: 100%;
	padding: 0;
	overflow: hidden;
}

.post-list-grid .post-list-left {
	flex: none;
	max-width: none;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.post-list-grid .post-list-middle {
	padding: 14px 16px 16px;
}

.post-list-container.post-list-grid .post-list-middle .post-list-title {
	font-size: 1rem;
}

.post-list-container.post-list-grid .post-list-middle .post-list-description {
	font-size: .85rem;
}

@media (max-width: 575.98px) {
	.post-list-container {
		gap: 12px;
		padding: 10px;
		border-radius: 12px;
	}

	.post-list-container .post-list-left {
		flex-basis: 38%;
		aspect-ratio: 4 / 3;
	}

	.post-list-container .post-list-middle .post-list-title {
		font-size: .975rem;
	}

	.post-list-container .post-list-middle .post-list-description,
	.post-list-container .post-list-middle .post-category-badge {
		display: none;
	}

	.post-list-container .post-list-middle .post-list-other-detail {
		gap: 2px 12px;
		font-size: .75rem;
	}

	.post-list-grid {
		padding: 0;
	}

	.post-list-grid .post-list-left {
		aspect-ratio: 16 / 9;
	}

	.post-list-container.post-list-grid .post-list-middle .post-list-description {
		display: -webkit-box;
	}
}

/** No Post **/
.no-post-container {
	padding: 48px 16px;
	color: var(--rs-text-muted);
	text-align: center;
}

.no-post-container .no-post-image {
	padding: 10px;
}

.no-post-container .no-post-image img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	box-shadow: var(--rs-shadow);
}

.no-post-container .no-post-text {
	font-size: 1.05rem;
}

/** Sidebar **/
.site-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
}

.sidebar-widget {
	padding: 20px;
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	background-color: var(--rs-surface);
	box-shadow: var(--rs-shadow-sm);
}

.sidebar-widget-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 1.1rem;
	font-weight: 700;
}

.sidebar-widget-title i {
	color: var(--rs-primary);
}

.sidebar-popular-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-popular-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--rs-border);
}

.sidebar-popular-item:first-child {
	padding-top: 0;
}

.sidebar-popular-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.sidebar-popular-rank {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background-color: var(--rs-surface-2);
	color: var(--rs-text-muted);
	font-size: .8rem;
	font-weight: 800;
}

.sidebar-popular-item-top .sidebar-popular-rank {
	background: var(--rs-brand-gradient);
	color: #fff;
}

.sidebar-popular-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sidebar-popular-link {
	display: -webkit-box;
	overflow: hidden;
	color: var(--rs-text);
	font-size: .95rem;
	font-weight: 500;
	line-height: 1.5;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.sidebar-popular-link:hover {
	color: var(--rs-primary);
}

.sidebar-popular-views {
	color: var(--rs-text-muted);
	font-size: .75rem;
}

.sidebar-popular-views i {
	margin-right: 4px;
}

.sidebar-follow-text {
	margin: -4px 0 14px;
	color: var(--rs-text-muted);
	font-size: .875rem;
}

@media (min-width: 992px) {
	.site-sidebar-sticky {
		position: sticky;
		top: calc(var(--rs-nav-height) + 20px);
	}

	.admin-bar .site-sidebar-sticky {
		top: calc(var(--rs-nav-height) + 52px);
	}
}
