/**
 * Thim Extension List Stylesheet
 *
 * @package Thim_Extension_List
 */

.thim-extension-list-wrapper {
	width: 100%;
	box-sizing: border-box;
}

/* Header Section */
.thim-ext-header {
	margin-bottom: 28px;
}

.thim-ext-header__title {
	margin: 0 0 6px 0;
	font-size: 28px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.thim-ext-header__subtitle {
	margin: 0;
	font-size: 15px;
	color: #6b7280;
	line-height: 1.5;
}

/* Grid Layout */
.thim-ext-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	row-gap: 24px;
	width: 100%;
	box-sizing: border-box;
}

/* Card Item */
.thim-ext-card {
	display: flex;
	align-items: center;
	padding: 22px 24px;
	background-color: #ffffff;
	border: 1px solid #edf0f2;
	border-radius: 16px;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	overflow: hidden;
}

.thim-ext-card:hover {
	border-color: #ffd8cc;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
	transform: translateY(-3px);
}

/* Icon / Media Wrapper */
.thim-ext-icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	min-width: 60px;
	background-color: #fff3ec;
	border-radius: 50%;
	margin-right: 18px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.thim-ext-card:hover .thim-ext-icon-wrapper {
	transform: scale(1.06);
}

.thim-ext-icon-wrapper img,
.thim-ext-icon-wrapper svg {
	width: 32px;
	height: 32px;
	object-fit: contain;
	display: block;
}

/* Item Content */
.thim-ext-item__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	flex-grow: 1;
}

.thim-ext-item__title {
	margin: 0 0 4px 0;
	font-size: 17px;
	font-weight: 600;
	color: #1a1e28;
	line-height: 1.35;
	transition: color 0.25s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.thim-ext-card:hover .thim-ext-item__title {
	color: #ff6e40;
}

.thim-ext-item__subtitle {
	font-size: 14px;
	font-weight: 400;
	color: #71717a;
	line-height: 1.4;
	display: block;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
	.thim-ext-grid {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 20px;
		row-gap: 20px;
	}
}

@media (max-width: 640px) {
	.thim-ext-grid {
		grid-template-columns: 1fr;
		column-gap: 16px;
		row-gap: 16px;
	}

	.thim-ext-card {
		padding: 16px 18px;
	}

	.thim-ext-icon-wrapper {
		width: 52px;
		height: 52px;
		min-width: 52px;
		margin-right: 14px;
	}

	.thim-ext-icon-wrapper img,
	.thim-ext-icon-wrapper svg {
		width: 26px;
		height: 26px;
	}
}
