/**
 * GBP Taxonomy Listing Grid Widget Styles
 *
 * Styles for the taxonomy listing grid with icons/images and term names.
 * All classes are prefixed with gbp-tlg- for namespacing.
 */

/* ==========================================================================
   Container
   ========================================================================== */

.gbp-tlg {
	width: 100%;
}

.gbp-tlg__placeholder {
	padding: 40px;
	text-align: center;
	background-color: #f5f5f5;
	border: 2px dashed #ddd;
	border-radius: 8px;
}

.gbp-tlg__placeholder p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

/* ==========================================================================
   Title
   ========================================================================== */

.gbp-tlg__title {
	margin: 0 0 20px 0;
	padding: 0;
	line-height: 1.3;
}

/* ==========================================================================
   Grid
   ========================================================================== */

.gbp-tlg__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	width: 100%;
}

/* ==========================================================================
   Item
   ========================================================================== */

.gbp-tlg__item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	background-color: #ffffff;
	border-radius: 8px;
}

.gbp-tlg__item--vertical {
	flex-direction: column;
	text-align: center;
}

/* ==========================================================================
   Icon / Image
   ========================================================================== */

.gbp-tlg__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	overflow: hidden;
}

.gbp-tlg__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gbp-tlg__icon i {
	font-size: 40px;
	line-height: 1;
	color: #1a8a8a;
}

.gbp-tlg__icon svg {
	width: 40px;
	height: 40px;
	fill: #1a8a8a;
}

/* ==========================================================================
   Text / Name
   ========================================================================== */

.gbp-tlg__name {
	font-size: 16px;
	font-weight: 500;
	color: #333333;
	line-height: 1.3;
}

.gbp-tlg__name a {
	color: inherit;
	text-decoration: none;
}

.gbp-tlg__name a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
	.gbp-tlg__grid {
		grid-template-columns: 1fr;
	}

	.gbp-tlg__icon {
		width: 32px;
		height: 32px;
	}

	.gbp-tlg__icon i {
		font-size: 32px;
	}

	.gbp-tlg__icon svg {
		width: 32px;
		height: 32px;
	}

	.gbp-tlg__name {
		font-size: 14px;
	}
}

/* ==========================================================================
   Elementor Editor
   ========================================================================== */

.elementor-editor-active .gbp-tlg__placeholder {
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
}
