/* Posts Profile AI widget */
.zev-posts-profile-ai {
	--zev-posts-columns: 2;
	background-color: #010103;
	background-image:
		linear-gradient(rgba(255, 0, 127, 0.015) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 0, 127, 0.015) 1px, transparent 1px);
	background-size: 50px 50px;
	color: #eaf0ff;
	font-family: inherit;
	margin: 0;
	padding: 0;
}

.zev-posts-profile-ai__header {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.zev-posts-profile-ai__title {
	margin: 0;
	font-size: clamp(24px, 2vw, 34px);
	font-weight: 800;
	letter-spacing: -0.03em;
	font-family: Roboto, sans-serif;
	color: #ffffff;
	transition: color 0.24s ease;
}

.zev-posts-profile-ai__title:hover {
	color: #ff007f;
}

.zev-posts-profile-ai__grid {
	display: grid;
	grid-template-columns: repeat(var(--zev-posts-columns), minmax(0, 1fr));
	gap: 18px;
}

.zev-posts-profile-ai__card {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: linear-gradient(180deg, rgba(10, 14, 26, 0.4), rgba(5, 7, 12, 0.95));
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(14px);
	min-height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.zev-posts-profile-ai__card:hover {
	transform: translateY(-4px);
	border-color: #ff007f;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.zev-posts-profile-ai__image-link {
	position: relative;
	display: block;
	text-decoration: none;
	color: inherit;
}

.zev-posts-profile-ai__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #111827;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	position: relative;
}

.zev-posts-profile-ai__image::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.76) 100%),
		linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.64) 100%);
}

.zev-posts-profile-ai__image--placeholder {
	background-image: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(255, 46, 166, 0.18));
}

.zev-posts-profile-ai__badge-group {
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 2;
}

.zev-posts-profile-ai__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid #00f0ff;
	background: rgba(2, 6, 12, 0.9);
	color: #00f0ff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 0 10px rgba(0, 240, 255, 0.12);
	backdrop-filter: blur(8px);
}

.zev-posts-profile-ai__body {
	padding: 22px 22px 20px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}

.zev-posts-profile-ai__card-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-family: Roboto, sans-serif;
}

.zev-posts-profile-ai__card-title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.24s ease;
}

.zev-posts-profile-ai__card-title a:hover {
	color: #ff007f;
}

.zev-posts-profile-ai__excerpt {
	font-size: 12px;
	line-height: 1.7;
	color: #94a3b8;
}

.zev-posts-profile-ai__core-metric {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	margin-top: 4px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(7, 10, 18, 0.8);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(10px);
}

.zev-posts-profile-ai__core-metric-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgba(148, 163, 184, 0.82);
	white-space: nowrap;
	flex: 0 0 auto;
}

.zev-posts-profile-ai__core-metric-value {
	font-size: 12px;
	font-weight: 700;
	color: #ff007f;
	text-shadow: 0 0 18px rgba(255, 0, 127, 0.28);
}

.zev-posts-profile-ai__tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}

.zev-posts-profile-ai__tech-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 5px;
	border: 1px solid rgba(148, 163, 184, 0.72);
	background: rgba(0, 0, 0, 0.12);
	color: #94a3b8;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.03em;
	backdrop-filter: blur(6px);
}

.zev-posts-profile-ai--empty {
	padding: 18px 20px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(6, 8, 14, 0.92);
	color: #d6ddf0;
}

@media (max-width: 1024px) {
	.zev-posts-profile-ai__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.zev-posts-profile-ai__header {
		align-items: flex-start;
	}

	.zev-posts-profile-ai__grid {
		grid-template-columns: 1fr;
	}

	.zev-posts-profile-ai__body {
		padding: 20px 18px 18px;
	}

	.zev-posts-profile-ai__card-title {
		font-size: 20px;
	}

	.zev-posts-profile-ai__core-metric {
		width: 100%;
		justify-content: space-between;
		border-radius: 18px;
	}

	.zev-posts-profile-ai__core-metric-label {
		white-space: normal;
	}
}
