/**
 * Features Showcase Styles
 * Beautiful display for Signpost Planner features on homepage
 */

.sp-features-showcase {
	max-width: 1400px;
	margin: 0 auto;
	padding: 60px 20px;
}

/* Header */
.sp-features-header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.sp-features-title {
	font-size: 2.75rem;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 20px 0;
	line-height: 1.2;
}

.sp-features-subtitle {
	font-size: 1.25rem;
	color: #646970;
	margin: 0;
	font-weight: 400;
	line-height: 1.6;
}

/* Grid Layout */
.sp-features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-bottom: 60px;
}

/* Feature Card */
.sp-feature-card {
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: visible;
}

.sp-feature-card:hover {
	box-shadow: 0 12px 28px rgba(104, 134, 100, 0.2);
	transform: translateY(-6px);
	border-color: #688664;
}

/* Header Cap - Reversed with Color */
.sp-feature-header {
	background: linear-gradient(135deg, #688664 0%, #5a7256 100%);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	margin: 0;
	border-radius: 10px 10px 0 0;
}

/* Icon - Integrated in Header Cap */
.sp-feature-icon {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.sp-feature-card:hover .sp-feature-icon {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
	transform: scale(1.05);
}

.sp-feature-icon .dashicons {
	color: #fff;
	font-size: 24px;
	width: 24px;
	height: 24px;
	opacity: 0.9;
}

/* Feature Title - White on Colored Background */
.sp-feature-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.3;
	flex: 1;
}

.sp-feature-description {
	font-size: 0.95rem;
	color: #6b7280;
	line-height: 1.6;
	margin: 0;
	flex-grow: 1;
	padding: 20px 24px 24px 24px;
}

/* Feature Details with Tooltip - Inline */
.sp-feature-details {
	display: inline;
	margin-left: 6px;
}

/* Footer CTA */
.sp-features-footer {
	text-align: center;
	padding: 40px 20px;
	background: linear-gradient(135deg, #688664 0%, #5a7256 100%);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(104, 134, 100, 0.3);
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 20px;
}

.sp-features-cta {
	font-size: 1.5rem;
	font-weight: 600;
	color: #fff;
	margin: 0;
	line-height: 1.4;
}

.sp-details-tooltip {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

.sp-details-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f3f4f6;
	color: #688664;
	font-weight: 600;
	font-size: 0.65rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
	transition: all 0.2s;
	border: 1px solid #e5e7eb;
	vertical-align: middle;
}

.sp-details-icon:hover {
	background: #688664;
	color: #fff;
	border-color: #688664;
}

.sp-tooltip-content {
	position: absolute;
	z-index: 9999;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: 260px;
	background: #1f2937;
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	white-space: normal;
	display: none;
}

.sp-tooltip-content::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1f2937;
}

.sp-details-tooltip:hover .sp-tooltip-content {
	display: block;
}

.sp-tooltip-content ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: block;
}

.sp-tooltip-content li {
	padding: 4px 0 4px 20px;
	position: relative;
	font-size: 0.8125rem;
	line-height: 1.5;
	list-style: none;
	display: block;
}

.sp-tooltip-content li:before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 4px;
	color: #86efac;
	font-weight: 600;
	font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.sp-features-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.sp-features-showcase {
		padding: 40px 16px;
	}

	.sp-features-header {
		margin-bottom: 40px;
	}

	.sp-features-title {
		font-size: 2rem;
	}

	.sp-features-subtitle {
		font-size: 1.1rem;
	}

	.sp-features-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 40px;
	}

	.sp-feature-card {
		padding: 24px;
	}

	.sp-feature-icon {
		width: 36px;
		height: 36px;
	}

	.sp-feature-icon .dashicons {
		font-size: 20px;
		width: 20px;
		height: 20px;
	}

	.sp-feature-name {
		font-size: 1.25rem;
	}

	.sp-features-cta {
		font-size: 1.25rem;
	}

	.sp-features-list .sp-feature-card {
		grid-template-columns: 1fr;
		text-align: center;
	}
	
	.sp-features-list .sp-feature-icon {
		margin: 0 auto 20px auto;
	}
}

@media (max-width: 480px) {
	.sp-features-showcase {
		padding: 32px 16px;
	}

	.sp-features-title {
		font-size: 1.75rem;
	}

	.sp-features-subtitle {
		font-size: 1rem;
	}

	.sp-features-header {
		margin-bottom: 32px;
	}

	.sp-feature-card {
		padding: 24px;
	}

	.sp-feature-icon {
		width: 36px;
		height: 36px;
	}

	.sp-feature-icon .dashicons {
		font-size: 20px;
		width: 20px;
		height: 20px;
	}
}
