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

.tp {
	--tp-card-bg: #ffffff;
	--tp-card-border: 1px solid #eef2ff;
	--tp-card-radius: 18px;
	--tp-card-shadow: 0 10px 35px rgba(40, 60, 120, 0.06);
	--tp-card-hover-shadow: 0 20px 50px rgba(70, 90, 180, 0.10);
	--tp-transition: 0.3s ease;
}

.tp {
	width: 100%;
	max-width: 320px;
	box-sizing: border-box;
}

.tp__card {
	width: 100%;
	background-color: var(--tp-card-bg);
	border: var(--tp-card-border);
	border-radius: var(--tp-card-radius);
	padding: 24px;
	box-shadow: var(--tp-card-shadow);
	transition: transform var(--tp-transition), box-shadow var(--tp-transition), border-color var(--tp-transition);
	box-sizing: border-box;
}

.tp__card:hover {
	transform: translateY(-6px);
	box-shadow: var(--tp-card-hover-shadow);
	border-color: #c7d2fe;
}

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

/* ── HEADER ── */
.tp__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.tp__header-icon {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background-color: #fff4e8;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #f97316;
}

.tp__header-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

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

/* ── LIST ── */
.tp__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ── LIST ITEM ── */
.tp__item {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	outline: none;
	transition: var(--tp-transition);
}

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

/* ── NUMBER BADGE ── */
.tp__badge {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1;
	transition: transform var(--tp-transition);
}

.tp__item:hover .tp__badge {
	transform: scale(1.05);
}

/* ── PROMPT INFO ── */
.tp__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.tp__title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color var(--tp-transition);
}

.tp__item:hover .tp__title {
	color: #5b5ff8;
}

/* ── STATISTICS ── */
.tp__stats {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #9ca3af;
	line-height: 1;
}

.tp__stats svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

/* ── FOOTER / LINK ── */
.tp__footer {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.tp__link {
	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;
	transition: color var(--tp-transition);
	outline: none;
}

.tp__link:hover {
	text-decoration: underline;
}

.tp__link-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform var(--tp-transition);
}

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

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

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