/**
 * Post Filter Widget Styles
 */

.hbc-post-filter-widget {
	width: 100%;
}

/* Search Box */
.hbc-pf-search {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
}

.hbc-pf-search-input {
	width: 100%;
	height: 50px;
	padding: 0 50px 0 20px;
	font-size: 14px;
	color: #333333;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 25px;
	outline: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hbc-pf-search-input:focus {
	border-color: #2cc6d0;
	box-shadow: 0 0 0 2px rgba(44, 198, 208, 0.1);
}

.hbc-pf-search-input::placeholder {
	color: #999999;
}

.hbc-pf-search-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.hbc-pf-search-icon img,
.hbc-pf-search-icon svg {
	width: 20px;
	height: 20px;
}

.hbc-pf-search-icon svg {
	color: #333333;
	stroke: #333333;
}

/* Filters */
.hbc-pf-filters {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 30px;
}

.hbc-pf-filter-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.hbc-pf-filter-label,
.hbc-post-filter-widget .hbc-pf-filter-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	background-color: #e0f7f6 !important;
	color: #2cc6d0 !important;
	font-size: 14px;
	font-weight: 500;
	border-radius: 4px;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
	transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.hbc-pf-filter-label:hover {
	opacity: 0.85;
}

.hbc-pf-filter-label.inactive {
	background-color: transparent !important;
	color: #333333 !important;
	border: none;
}

.hbc-pf-filter-items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.hbc-pf-filter-item {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	color: #333333;
	cursor: pointer;
	transition: color 0.3s ease, background-color 0.3s ease;
	white-space: nowrap;
	padding: 8px 16px;
	border-radius: 4px;
}

.hbc-pf-filter-item:hover {
	color: #4FBDBA;
}

.hbc-pf-filter-item.active {
	background-color: #e0f7f6;
	color: #2cc6d0;
	font-weight: 500;
}

/* Posts Grid */
.hbc-pf-posts-container {
	position: relative;
}

.hbc-pf-posts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* Post Card */
.hbc-pf-post-card {
	background-color: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hbc-pf-post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hbc-pf-post-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Post Image */
.hbc-pf-post-image {
	position: relative;
	height: 200px;
	background-size: cover;
	background-position: center;
	background-color: #f5f5f5;
	overflow: hidden;
}

.hbc-pf-post-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease;
	z-index: 0;
	pointer-events: none;
}

.hbc-pf-post-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: transparent;
	transition: background-color 0.3s ease;
	z-index: 1;
}

.hbc-pf-post-card:hover .hbc-pf-post-overlay {
	background-color: rgba(44, 198, 208, 0.3);
}

.hbc-pf-post-card:hover .hbc-pf-post-image::after {
	background-color: transparent;
}

/* Post Content */
.hbc-pf-post-content {
	padding: 15px;
}

/* Post Title */
.hbc-pf-post-title {
	margin: 0 0 12px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #333333;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hbc-pf-post-card:hover .hbc-pf-post-title {
	color: #4FBDBA;
}

/* Post Tags */
.hbc-pf-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.hbc-pf-post-tags span {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 12px;
	border-radius: 3px;
}

.hbc-pf-tag-industry {
	background-color: #4FBDBA;
	color: #ffffff;
}

.hbc-pf-tag-product {
	background-color: transparent;
	color: #666666;
}

/* Post Divider */
.hbc-pf-post-divider {
	height: 0;
	border: none;
	border-top: 1px dashed #dddddd;
	margin: 12px 0;
	background-color: transparent;
}

/* Company Info */
.hbc-pf-company-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hbc-pf-company-name {
	font-size: 13px;
	color: #333333;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hbc-pf-company-logo {
	flex-shrink: 0;
}

.hbc-pf-company-logo img {
	max-height: 40px;
	width: auto;
	display: block;
}

/* Loading */
.hbc-pf-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.hbc-pf-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #4FBDBA;
	border-radius: 50%;
	animation: hbc-pf-spin 1s linear infinite;
}

@keyframes hbc-pf-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* No Posts */
.hbc-pf-no-posts {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: #999999;
	font-size: 16px;
}

/* Pagination */
.hbc-pf-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.hbc-pf-page-numbers {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hbc-pf-page-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-size: 14px;
	color: #999999;
	background-color: #f5f5f5;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.hbc-pf-page-num:hover {
	color: #2cc6d0;
	background-color: #f5f5f5;
}

.hbc-pf-page-num.active {
	color: #2cc6d0;
	background-color: #e0f7f6;
	font-weight: 600;
}

.hbc-pf-page-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: #f5f5f5;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.hbc-pf-page-arrow:hover {
	background-color: #f5f5f5;
}

.hbc-pf-page-arrow.disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.hbc-pf-page-arrow img,
.hbc-pf-page-arrow svg {
	width: 20px;
	height: 20px;
}

.hbc-pf-page-arrow svg {
	color: #333333;
}

.hbc-pf-page-arrow:hover svg {
	color: #2cc6d0;
}

/* Responsive */
@media (max-width: 1024px) {
	.hbc-pf-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.hbc-pf-filter-row {
		flex-direction: column;
		gap: 10px;
	}
	
	.hbc-pf-filter-items {
		gap: 12px;
	}
	
	.hbc-pf-posts-grid {
		grid-template-columns: 1fr;
	}
	
	.hbc-pf-post-image {
		height: 180px;
	}
}
