/**
 * Tools Section - Premium Icons
 * Location: /wp-content/plugins/daf-marketplace/assets/css/tools-section.css
 */

.daf-mp-tools-section {
	position: relative;
	overflow: hidden;
	padding: 4.75rem 0 5rem;
	background:
		radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.08), transparent 28%),
		radial-gradient(circle at 88% 88%, rgba(59, 130, 246, 0.055), transparent 30%),
		linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.daf-mp-tools-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
	pointer-events: none;
}

.daf-mp-tools-container {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Section Header */
.daf-mp-tools-header {
	margin-bottom: 2.9rem;
}

.daf-mp-section-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 1rem;
	padding: 0.58rem 0.9rem;
	border: 1px solid rgba(16, 185, 129, 0.22);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.72));
	color: #047857;
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	box-shadow:
		0 10px 28px rgba(16, 185, 129, 0.10),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.daf-mp-header-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}

.daf-mp-header-left {
	flex: 1;
	min-width: 0;
}

.daf-mp-header-right {
	flex-shrink: 0;
	padding-top: 0.6rem;
}

.daf-mp-tools-title {
	max-width: 780px;
	margin: 0 0 0.55rem;
	color: #07111f;
	font-size: clamp(1.85rem, 3vw, 2.45rem);
	font-weight: 950;
	line-height: 1.08;
	letter-spacing: -0.055em;
}

.daf-mp-tools-subtitle {
	max-width: 620px;
	margin: 0;
	color: #64748b;
	font-size: 1.02rem;
	font-weight: 500;
	line-height: 1.65;
}

.daf-mp-view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #059669;
	font-size: 0.92rem;
	font-weight: 850;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 180ms ease, color 180ms ease;
}

.daf-mp-view-all-link:hover {
	color: #047857;
	transform: translateX(3px);
}

/* Tools Grid */
.daf-mp-tools-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.5rem;
}

/* Tool Card */
.daf-mp-tool-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 206px;
	padding: 2rem 1.15rem;
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 18px;
	background:
		radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.065), transparent 42%),
		linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
	text-align: center;
	text-decoration: none;
	box-shadow:
		0 18px 55px rgba(15, 23, 42, 0.055),
		inset 0 1px 0 rgba(255, 255, 255, 0.92);
	transition:
		transform 220ms ease,
		box-shadow 220ms ease,
		border-color 220ms ease,
		background 220ms ease;
}

.daf-mp-tool-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		linear-gradient(135deg, rgba(16, 185, 129, 0.13), transparent 46%),
		radial-gradient(circle at 85% 12%, rgba(16, 185, 129, 0.12), transparent 32%);
	opacity: 0;
	transition: opacity 220ms ease;
	pointer-events: none;
}

.daf-mp-tool-card::after {
	content: "";
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: -20px;
	height: 34px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.22);
	filter: blur(20px);
	opacity: 0;
	transition: opacity 220ms ease;
	pointer-events: none;
}

.daf-mp-tool-card:hover {
	transform: translateY(-7px);
	border-color: rgba(16, 185, 129, 0.42);
	background:
		radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.11), transparent 45%),
		linear-gradient(180deg, #ffffff 0%, #f8fffb 100%);
	box-shadow:
		0 28px 80px rgba(15, 23, 42, 0.105),
		0 0 0 1px rgba(16, 185, 129, 0.045),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.daf-mp-tool-card:hover::before,
.daf-mp-tool-card:hover::after {
	opacity: 1;
}

/* Tool Icon Container */
.daf-mp-tool-icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 1.15rem;
	border-radius: 22px;
	background:
		linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
	box-shadow:
		0 18px 35px rgba(16, 185, 129, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.92);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.daf-mp-tool-card:hover .daf-mp-tool-icon {
	transform: scale(1.08) translateY(-2px);
	box-shadow:
		0 22px 42px rgba(16, 185, 129, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.daf-mp-tool-icon svg {
	width: 42px;
	height: 42px;
}

/* Tool Name */
.daf-mp-tool-name {
	position: relative;
	z-index: 1;
	margin: 0 0 0.82rem;
	color: #07111f;
	font-size: 0.92rem;
	font-weight: 850;
	text-align: center;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

/* Tool Type Badge */
.daf-mp-tool-type {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.43rem 0.75rem;
	border-radius: 8px;
	font-size: 0.68rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.045em;
	line-height: 1;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.daf-mp-type-free {
	border: 1px solid rgba(16, 185, 129, 0.18);
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #047857;
}

.daf-mp-type-premium {
	border: 1px solid rgba(217, 119, 6, 0.18);
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	color: #b45309;
}

.daf-mp-type-more-soon {
	border: 1px solid rgba(100, 116, 139, 0.14);
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	color: #475569;
}

/* Responsive */
@media (max-width: 1200px) {
	.daf-mp-tools-grid {
		overflow-x: auto;
		overflow-y: hidden;
		grid-template-columns: repeat(6, 170px);
		padding-bottom: 1rem;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
		scrollbar-color: rgba(16, 185, 129, 0.45) rgba(226, 232, 240, 0.75);
	}

	.daf-mp-tools-grid::-webkit-scrollbar {
		height: 8px;
	}

	.daf-mp-tools-grid::-webkit-scrollbar-track {
		border-radius: 999px;
		background: rgba(226, 232, 240, 0.85);
	}

	.daf-mp-tools-grid::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgba(16, 185, 129, 0.50);
	}

	.daf-mp-tool-card {
		scroll-snap-align: start;
		min-height: 190px;
	}
}

@media (max-width: 900px) {
	.daf-mp-header-row {
		flex-direction: column;
		gap: 1rem;
	}

	.daf-mp-header-right {
		padding-top: 0;
	}

	.daf-mp-tools-grid {
		grid-template-columns: repeat(6, 165px);
	}
}

@media (max-width: 600px) {
	.daf-mp-tools-section {
		padding: 3.5rem 0;
	}

	.daf-mp-tools-container {
		padding: 0 1.25rem;
	}

	.daf-mp-tools-title {
		font-size: 1.6rem;
	}

	.daf-mp-tools-subtitle {
		font-size: 0.95rem;
	}

	.daf-mp-tools-grid {
		grid-template-columns: repeat(6, 155px);
		gap: 0.9rem;
	}

	.daf-mp-tool-card {
		min-height: 175px;
		padding: 1.4rem 0.9rem;
		border-radius: 16px;
	}

	.daf-mp-tool-icon {
		width: 58px;
		height: 58px;
		border-radius: 18px;
	}

	.daf-mp-tool-icon svg {
		width: 36px;
		height: 36px;
	}

	.daf-mp-tool-name {
		font-size: 0.82rem;
	}
}