/**
 * Componente ToolsSection
 * Idêntico ao componente React ToolsSection
 *
 * @package GuiaSaude
 */

.tools-section {
	--tools-primary: hsl(174, 72%, 40%);
	--tools-secondary: hsl(174, 40%, 95%);
	--tools-secondary-foreground: hsl(174, 72%, 30%);
	--tools-foreground: hsl(200, 50%, 10%);
	--tools-muted: hsl(200, 20%, 45%);
	--tools-border: hsl(180, 20%, 90%);
	--tools-card: #fff;
	--tools-shadow-card: 0 4px 20px -4px hsl(174 72% 40% / 0.12);
	--tools-shadow-hover: 0 12px 32px -8px hsl(174 72% 40% / 0.2);

	padding: 4rem 0;
	background: linear-gradient(to bottom, hsl(180 20% 96% / 0.5), hsl(180 20% 99%));
}

@media (min-width: 768px) {
	.tools-section {
		padding: 6rem 0;
	}
}

.tools-section .text-center {
	text-align: center;
	margin-bottom: 3rem;
}

.tools-section-badge {
	display: inline-block;
	padding: 0.375rem 1rem;
	border-radius: 9999px;
	background-color: var(--tools-secondary);
	color: var(--tools-secondary-foreground);
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.tools-section-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--tools-foreground);
	margin: 0 0 1rem 0;
	letter-spacing: -0.025em;
}

@media (min-width: 768px) {
	.tools-section-title {
		font-size: 2.25rem;
	}
}

.tools-section-description {
	color: var(--tools-muted);
	max-width: 42rem;
	margin: 0 auto;
}

.tools-section .tools-section-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.tools-section .tools-section-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

@media (min-width: 768px) {
	.tools-section .tools-section-grid {
		gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.tools-section .tools-section-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

.tools-section .tool-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	text-decoration: none;
	color: inherit;
	background: var(--tools-card);
	border-radius: 0.75rem;
	border: 1px solid var(--tools-border);
	box-shadow: var(--tools-shadow-card);
	transition: all 0.3s ease;
}

.tools-section .tool-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--tools-shadow-hover);
	text-decoration: none;
}

.tools-section .tool-icon-wrapper {
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.tools-section .tool-card:hover .tool-icon-wrapper {
	transform: scale(1.1);
}

.tools-section .tool-icon {
	width: 1.75rem;
	height: 1.75rem;
}

.tools-section .tool-content {
	flex: 1;
	min-width: 0;
}

.tools-section .tool-title {
	font-weight: bold;
	color: var(--tools-foreground);
	margin: 0 0 0.25rem 0;
	transition: color 0.3s ease;
	font-size:16px;
}

.tools-section .tool-card:hover .tool-title {
	color: var(--tools-primary);
}

.tools-section .tool-description {
	font-size: 0.875rem;
	color: var(--tools-muted);
	margin: 0;
}

@media (max-width: 639px) {
	.tools-section {
		padding: 3rem 0;
	}

	.tools-section .text-center {
		margin-bottom: 2rem;
	}

	.tools-section-title {
		font-size: 1.5rem;
	}

	.tools-section .tool-card {
		padding: 1.25rem;
		gap: 0.75rem;
	}

	.tools-section .tool-icon-wrapper {
		width: 3rem;
		height: 3rem;
	}

	.tools-section .tool-icon {
		width: 1.5rem;
		height: 1.5rem;
	}

	.tools-section .tool-title {
		font-size: 0.9375rem;
	}

	.tools-section .tool-description {
		font-size: 0.8125rem;
	}
}
