/* Blog Filters Styles */

.blog-filters-bar {
	background: #f9f9f9;
	border-bottom: 1px solid #eee;
	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.filters-wrapper {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
}

.filter-group {
	flex: 1;
	min-width: 150px;
}

.filter-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8H0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 12px 8px;
	padding-right: 30px;
}

.filter-select:hover,
.filter-select:focus {
	border-color: #ff5e2e;
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 94, 46, 0.1);
}

.filter-select option {
	padding: 8px;
	color: #333;
}

/* Loading Indicator */
.filter-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #666;
	font-size: 13px;
}

.loading-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #ddd;
	border-top-color: #ff5e2e;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

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

/* Filter Results */
.blog-posts-container {
	margin-top: 30px;
}

.blog-post-item {
	margin-bottom: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.blog-post-item:hover {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-thumbnail {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 15px;
	background: #f0f0f0;
}

.blog-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-post-item:hover .blog-post-thumbnail img {
	transform: scale(1.05);
}

.blog-post-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #1f242e;
}

.blog-post-title a {
	color: #1f242e;
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-post-title a:hover {
	color: #ff5e2e;
}

.blog-post-meta {
	display: flex;
	gap: 15px;
	font-size: 12px;
	color: #999;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.blog-post-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 10px;
}

/* Empty State */
.blog-posts-empty {
	text-align: center;
	padding: 60px 20px;
}

.blog-posts-empty h3 {
	font-size: 20px;
	color: #333;
	margin-bottom: 10px;
}

.blog-posts-empty p {
	color: #666;
	margin-bottom: 20px;
}

.blog-posts-empty-button {
	display: inline-block;
	padding: 10px 20px;
	background: #ff5e2e;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.blog-posts-empty-button:hover {
	background: #e74c1a;
	text-decoration: none;
}

/* Pagination */
.pagination-wrapper {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 40px 0;
	flex-wrap: wrap;
}

.pagination-btn {
	padding: 8px 12px;
	background: #f5f5f5;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination-btn:hover {
	background: #ff5e2e;
	color: #fff;
	border-color: #ff5e2e;
}

.pagination-btn.active {
	background: #ff5e2e;
	color: #fff;
	border-color: #ff5e2e;
}

.pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
	.blog-filters-bar {
		padding: 15px 0;
	}

	.filters-wrapper {
		gap: 10px;
	}

	.filter-group {
		min-width: 120px;
		flex: 1;
	}

	.blog-post-item {
		padding: 15px;
	}

	.blog-post-title {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.blog-filters-bar {
		position: static;
	}

	.filters-wrapper {
		flex-direction: column;
	}

	.filter-group {
		width: 100%;
		min-width: auto;
	}

	.filter-loading {
		width: 100%;
		justify-content: center;
	}
}
