/**
 * 子比 VIP 彩色昵称 - 基础样式
 *
 * 具体的渐变 background-image 由插件按后台设置内联输出（wp_add_inline_style），
 * 因此主题换色、暗色模式都不需要额外处理。
 */

/* 渐变文字的基础裁剪规则：兼容任意等级 class（zvnc-lv-1 / zvnc-lv-2 / 自定义） */
.zvnc-name[class*="zvnc-lv-"] {
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	color: transparent !important;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	transition: filter .25s ease;
}

/* 悬停时轻微提亮，保留渐变 */
.zvnc-name[class*="zvnc-lv-"]:hover {
	filter: brightness(1.12) saturate(1.08);
}

/*
 * 扫光动画：第一层是常驻渐变（文字始终清晰），第二层是高光带，
 * 通过 background-position 从右向左扫过文字。两层同时 background-clip: text。
 */
@keyframes zvnc-shine {
	0% {
		background-position: 100% 0, 0 0;
	}

	100% {
		background-position: -100% 0, 0 0;
	}
}

/* 尊重系统「减少动态效果」：只保留渐变，不扫光 */
@media (prefers-reduced-motion: reduce) {
	.zvnc-name[class*="zvnc-lv-"] {
		animation: none !important;
	}
}

/* 极少数不支持 background-clip: text 的浏览器：回退为正常文字颜色，避免出现空白昵称 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
	.zvnc-name[class*="zvnc-lv-"] {
		color: inherit !important;
		-webkit-text-fill-color: currentColor !important;
	}
}
