/* Post List Widget Styles - Horizontal Layout */
.pl-wrap {
	font-family: inherit;
}

/* Header Styles */
.pl-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.pl-header-icon {
	color: #3498db;
	font-size: 20px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
}

.pl-header-icon i {
	color: inherit;
	font-size: inherit;
}

.pl-header-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.pl-title {
	font-size: 24px;
	font-weight: 700;
	color: #222222;
	margin: 0;
	padding: 0;
}

.pl-header-divider {
	border: none;
	border-top: 1px solid #e0e0e0;
	margin: 0 0 20px 0;
	padding: 0;
}

/* List Container */
.pl-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Post Item */
.pl-item {
	margin-bottom: 30px;
}

.pl-item:last-child {
	margin-bottom: 0;
}

.pl-item-content {
	background-color: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pl-item-inner {
	display: flex;
	flex-direction: row;
	gap: 20px;
	padding: 20px;
	align-items: flex-start;
}

/* Image Position Classes */
.pl-item-inner.pl-image-right {
	flex-direction: row;
}

.pl-item-inner.pl-image-left {
	flex-direction: row-reverse;
}

/* Image Styles */
.pl-item-image {
	flex-shrink: 0;
	width: 40%;
	height: 200px;
	border-radius: 8px;
	overflow: hidden;
}

.pl-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.pl-item-image:hover img {
	transform: scale(1.05);
}

/* Content Info */
.pl-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Title */
.pl-item-title {
	font-size: 20px;
	font-weight: 600;
	color: #222222;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.pl-item-title a {
	color: inherit;
	text-decoration: none;
}

.pl-item-title a:hover {
	color: #3498db;
}

/* Excerpt */
.pl-item-excerpt {
	font-size: 14px;
	color: #666666;
	line-height: 1.6;
	margin: 0 0 16px 0;
}

/* Meta Information */
.pl-item-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #999999;
	margin-bottom: 20px;
}

.pl-item-date,
.pl-item-author {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pl-item-date::before {
	content: "Date: ";
	font-weight: normal;
}

.pl-item-author::before {
	content: "Author: ";
	font-weight: normal;
}

/* Button */
.pl-item-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background-color: #3498db;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	border: 2px solid transparent;
	cursor: pointer;
	align-self: flex-start;
	margin-top: auto;
	box-sizing: border-box;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pl-item-button:hover {
	background-color: #2980b9;
	color: #ffffff;
	text-decoration: none;
	border-color: #ffffff;
}

/* No Posts */
.pl-no-posts {
	text-align: center;
	padding: 40px 20px;
	color: #999999;
}

.pl-no-posts p {
	margin: 0;
	font-size: 16px;
}

/* Pagination */
.pl-pagination {
	margin-top: 40px;
	text-align: center;
}

.pl-pagination a,
.pl-pagination span {
	display: inline-block;
	padding: 10px 14px;
	margin: 0 4px;
	background-color: #f8f9fa;
	color: #6c757d;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	min-width: 44px;
	text-align: center;
	border: 1px solid #e9ecef;
}

.pl-pagination a:hover {
	background-color: #3498db;
	color: #ffffff;
	text-decoration: none;
	border-color: #3498db;
}

.pl-pagination .current {
	background-color: #3498db;
	color: #ffffff;
	border-color: #3498db;
}

/* Load More Button */
.pl-load-more {
	text-align: center;
	margin-top: 40px;
}

.pl-load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	background-color: #3498db;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

.pl-load-more-btn:hover {
	background-color: #2980b9;
	color: #ffffff;
}

.pl-load-more-btn.loading {
	opacity: 0.7;
	cursor: not-allowed;
}

.pl-load-more-btn.loading::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	border-top-color: transparent;
	animation: pl-spin 0.8s linear infinite;
}

@keyframes pl-spin {
	to {
		transform: rotate(360deg);
	}
}

/* AJAX Loading State */
.pl-wrap.pl-loading .pl-list {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.pl-page-link {
	display: inline-block;
	padding: 10px 14px;
	margin: 0 4px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pl-page-link:hover {
	background-color: #3498db;
	color: #fff;
	border-color: #3498db;
	text-decoration: none;
}

.pl-page-link.current {
	background-color: #3498db;
	color: #fff;
	border-color: #3498db;
	cursor: default;
}

/* Responsive Design */
@media (max-width: 768px) {
	.pl-item-inner,
	.pl-item-inner.pl-image-right,
	.pl-item-inner.pl-image-left {
		flex-direction: column;
		gap: 15px;
	}
	
	.pl-item-image {
		width: 100%;
		height: 200px;
	}
	
	.pl-item-info {
		padding: 0;
	}
	
	.pl-item-title {
		font-size: 18px;
	}
	
	.pl-item-meta {
		flex-wrap: wrap;
		gap: 12px;
		margin-bottom: 16px;
	}
	
	.pl-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.pl-pagination a,
	.pl-pagination span {
		padding: 8px 12px;
		margin: 0 2px;
		font-size: 13px;
		min-width: 40px;
	}
}

@media (max-width: 480px) {
	.pl-item {
		margin-bottom: 20px;
	}
	
	.pl-item-content {
		padding: 0;
	}
	
	.pl-item-inner {
		padding: 15px;
	}
	
	.pl-item-image {
		height: 180px;
	}
	
	.pl-item-title {
		font-size: 16px;
		margin-bottom: 8px;
	}
	
	.pl-item-excerpt {
		font-size: 13px;
		margin-bottom: 12px;
	}
	
	.pl-item-meta {
		font-size: 12px;
		gap: 10px;
		margin-bottom: 12px;
	}
	
	.pl-item-button {
		padding: 10px 20px;
		font-size: 13px;
	}
	
	.pl-pagination {
		margin-top: 30px;
	}
	
	.pl-load-more {
		margin-top: 30px;
	}
	
	.pl-load-more-btn {
		padding: 12px 24px;
		font-size: 14px;
	}
}

/* Grid Layout Alternative */
.pl-wrap.pl-grid-layout .pl-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}

.pl-wrap.pl-grid-layout .pl-item {
	margin-bottom: 0;
}

.pl-wrap.pl-grid-layout .pl-item-inner,
.pl-wrap.pl-grid-layout .pl-item-inner.pl-image-right,
.pl-wrap.pl-grid-layout .pl-item-inner.pl-image-left {
	flex-direction: column;
}

.pl-wrap.pl-grid-layout .pl-item-image {
	width: 100%;
	height: 200px;
}

/* Loading Animation */
.pl-loading {
	position: relative;
	overflow: hidden;
}

.pl-loading::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.4),
		transparent
	);
	animation: pl-shimmer 1.5s infinite;
}

@keyframes pl-shimmer {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}
