/**
 * Featured Prompts Widget - Base Styles
 *
 * @package WebsiteBuilderAddon
 * @since   1.0.0
 */

.fp {
	--fp-bg: #ffffff;
	--fp-card-bg: #ffffff;
	--fp-card-border: 1px solid #eef2ff;
	--fp-card-radius: 18px;
	--fp-card-shadow: 0 12px 40px rgba(30, 50, 120, 0.06);
	--fp-card-hover-shadow: 0 30px 70px rgba(60, 80, 180, 0.12);
	--fp-columns: 3;
	--fp-gap: 24px;
	--fp-transition: 0.3s ease;
}

.fp {
	width: 100%;
	background-color: var(--fp-bg);
	padding: 80px 40px;
	box-sizing: border-box;
}

.fp__inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
}

/* ── HEADER ── */
.fp__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 36px;
}

.fp__header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fp__sparkle {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.fp__title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 30px;
	font-weight: 700;
	color: #111827;
	margin: 0;
	line-height: 1.3;
}

.fp__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #5b5ff8;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color var(--fp-transition);
}

.fp__view-all:hover {
	color: #4f46e5;
}

.fp__view-all-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform var(--fp-transition);
}

.fp__view-all:hover .fp__view-all-icon {
	transform: translateX(3px);
}

.fp__view-all:focus-visible {
	outline: 2px solid #5b5ff8;
	outline-offset: 2px;
	border-radius: 4px;
}

/* ── GRID ── */
.fp__grid {
	display: grid;
	grid-template-columns: repeat(var(--fp-columns), minmax(0, 1fr));
	gap: var(--fp-gap);
}

/* ── CARD ── */
.fp__card {
	display: flex;
	flex-direction: column;
	background-color: var(--fp-card-bg);
	border: var(--fp-card-border);
	border-radius: var(--fp-card-radius);
	min-height: 210px;
	padding: 24px;
	text-decoration: none;
	box-shadow: var(--fp-card-shadow);
	transition: transform var(--fp-transition), box-shadow var(--fp-transition), border-color var(--fp-transition);
	cursor: pointer;
	box-sizing: border-box;
}

.fp__card:hover {
	transform: translateY(-8px);
	box-shadow: var(--fp-card-hover-shadow);
	border-color: #c7d2fe;
}

.fp__card:focus-visible {
	outline: 2px solid #5b5ff8;
	outline-offset: 2px;
}

/* ── ICON WRAP ── */
.fp__icon-wrap {
	margin-bottom: 0;
}

.fp__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 22px;
	transition: transform var(--fp-transition);
}

.fp__icon svg {
	width: 22px;
	height: 22px;
}

.fp__card:hover .fp__icon {
	transform: scale(1.08);
}

/* ── TITLE ── */
.fp__card-title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 18px 0 0;
	line-height: 1.3;
	transition: color var(--fp-transition);
}

.fp__card:hover .fp__card-title {
	color: #5b5ff8;
}

/* ── DESCRIPTION ── */
.fp__card-desc {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	color: #6b7280;
	margin: 6px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── BADGES ── */
.fp__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.fp__badge {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	border-radius: 20px;
	background-color: #f5f7ff;
	color: #5b5ff8;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	line-height: 1;
}

/* ── METRICS ── */
.fp__metrics {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: auto;
	padding-top: 12px;
}

.fp__metric {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	line-height: 1;
}

.fp__metric svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* ── ACCESSIBILITY ── */
.fp *:focus-visible {
	outline: 2px solid #5b5ff8;
	outline-offset: 2px;
}

.fp__card:focus-within {
	border-color: #5b5ff8;
}
