.presetCard {
	position: relative;
	display: flex;
	flex-direction: column;
	background: variables.$bg-default;
	border: 1.5px solid variables.$border-subtle;
	border-radius: variables.$radius-md;
	overflow: hidden;
	cursor: pointer;
	box-shadow: variables.$shadow-sm;
	transition: border-color var(--duration-normal) var(--ease-out);

	&:hover {
		border-color: variables.$color-secondary;
	}
}

.selected {
	border-color: variables.$color-primary;
	box-shadow: variables.$shadow-sm, 0 0 0 1px variables.$color-primary;

	&:hover {
		border-color: variables.$color-primary;
	}
}

.previewArea {
	position: relative;
	background: #0c0a1a;
	overflow: hidden;
}

.selectedIndicator {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	background: variables.$color-primary;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	color: white;

	svg {
		width: 12px;
		height: 12px;
	}
}

.cardFooter {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.presetName {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: variables.$text-primary;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.systemBadge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	color: variables.$color-primary;
	background: variables.$purple-100;
	padding: 3px 8px;
	border-radius: variables.$radius-sm;
}

.styleChars {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: variables.$text-tertiary;
	white-space: nowrap;
	overflow: hidden;
}

.colorDot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 1px solid rgba(128, 128, 128, 0.15);
}

.divider {
	color: variables.$border-default;
	font-size: 10px;
}

.cardActions {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	gap: 4px;
	opacity: 0;
	transition: opacity var(--duration-fast);
	z-index: 3;

	.presetCard:hover & {
		opacity: 1;
	}

	.selected & {
		display: none;
	}
}

.iconButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 6px;
	background: variables.$bg-surface;
	color: variables.$text-secondary;
	cursor: pointer;
	transition: background var(--duration-fast), color var(--duration-fast);

	&:hover {
		background: variables.$bg-hover;
		color: variables.$text-primary;
	}
}

@include breakpoints.respond-to(breakpoints.$mobileMax) {
	.styleChars {
		display: none;
	}
}
