/* Blog Post Categories Widget Styles */
.bpc-categories-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.bpc-categories-wrapper * {
	box-sizing: border-box;
}

/* Grid Layout */
.bpc-categories-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* List Layout */
.bpc-categories-list {
	display: flex;
	flex-direction: column;
}

.bpc-categories-list .bpc-category-item {
	margin-bottom: 20px;
}

.bpc-categories-list .bpc-category-item:last-child {
	margin-bottom: 0;
}

/* Inline Layout */
.bpc-categories-inline {
	display: flex;
	flex-wrap: wrap;
	margin: -10px;
}

.bpc-categories-inline .bpc-category-item {
	margin: 10px;
}

/* Category Item */
.bpc-category-item {
	background-color: #f5f5f5;
	padding: 15px 20px;
	transition: all 0.3s ease;
	display: block;
	position: relative;
}

.bpc-category-link {
	text-decoration: none;
	color: inherit;
	display: block;
	width: 100%;
	height: 100%;
}

.bpc-category-link:hover {
	text-decoration: none;
}

/* Category Title */
.bpc-category-title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	color: #333333;
	transition: color 0.3s ease;
	line-height: 1.4;
}

/* Category Count */
.bpc-category-count {
	display: inline-block;
	margin-left: 5px;
	font-size: 0.9em;
	font-weight: 400;
	color: #888888;
	transition: color 0.3s ease;
}

/* Category Description */
.bpc-category-description {
	margin: 10px 0 0;
	padding: 0;
	font-size: 14px;
	color: #666666;
	line-height: 1.6;
	transition: color 0.3s ease;
}

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

@media (max-width: 767px) {
	.bpc-categories-grid {
		grid-template-columns: 1fr;
	}
	
	.bpc-categories-inline .bpc-category-item {
		margin: 5px;
	}
	
	.bpc-category-item {
		padding: 12px 15px;
	}
}

/* Clear floats */
.bpc-categories-wrapper::after {
	content: "";
	display: table;
	clear: both;
}

/* Accessibility */
.bpc-category-link:focus {
	outline: 2px solid #0066cc;
	outline-offset: 2px;
}

.bpc-category-link:focus-visible {
	outline: 2px solid #0066cc;
	outline-offset: 2px;
}
