/**
 * AP Linux Antidetect Comparison module styles (scoped).
 */

.ap-antidetect-comp {
	--ap-adc-bg: #0b1018;
	--ap-adc-surface: #141c2b;
	--ap-adc-surface-2: #1a2436;
	--ap-adc-border: rgba(255, 255, 255, 0.1);
	--ap-adc-text: #e6eef8;
	--ap-adc-muted: #93a8c0;
	--ap-adc-accent: #36c4ff;
	--ap-adc-accent-2: #38d39f;
	--ap-adc-badge-bg: rgba(54, 196, 255, 0.16);
	--ap-adc-badge-text: #7ddcff;
	--ap-adc-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
	--ap-adc-shadow-active: 0 24px 56px rgba(54, 196, 255, 0.22);
	--ap-adc-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

	max-width: 960px;
	margin: 1.75rem auto;
	padding: clamp(1rem, 3vw, 1.75rem);
	background:
		radial-gradient(circle at 10% 8%, rgba(54, 196, 255, 0.08), transparent 38%),
		radial-gradient(circle at 92% 92%, rgba(56, 211, 159, 0.07), transparent 36%),
		linear-gradient(165deg, var(--ap-adc-bg) 0%, #101827 100%);
	border: 1px solid var(--ap-adc-border);
	border-radius: 18px;
	box-shadow: var(--ap-adc-shadow);
	color: var(--ap-adc-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

.ap-antidetect-comp__header {
	margin-bottom: 1.4rem;
}

.ap-antidetect-comp__title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: #f0f6ff;
}

.ap-antidetect-comp__subtitle {
	margin: 0 0 1.1rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--ap-adc-muted);
}

.ap-antidetect-comp__filter {
	width: 100%;
	max-width: 420px;
	padding: 0.68rem 0.85rem;
	border: 1px solid var(--ap-adc-border);
	border-radius: 11px;
	background: var(--ap-adc-surface-2);
	color: var(--ap-adc-text);
	font-size: 0.92rem;
	cursor: pointer;
	transition:
		border-color var(--ap-adc-transition),
		box-shadow var(--ap-adc-transition),
		background-color var(--ap-adc-transition);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2393a8c0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: calc(100% - 0.85rem) center;
	padding-right: 2.2rem;
}

.ap-antidetect-comp__filter:hover {
	border-color: rgba(54, 196, 255, 0.35);
}

.ap-antidetect-comp__filter:focus {
	outline: none;
	border-color: rgba(54, 196, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(54, 196, 255, 0.18);
}

.ap-antidetect-comp__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.95rem;
}

@media (min-width: 640px) {
	.ap-antidetect-comp__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ap-antidetect-comp__card {
	position: relative;
	padding: 1.05rem 1.1rem;
	background: var(--ap-adc-surface);
	border: 1px solid var(--ap-adc-border);
	border-radius: 14px;
	transition:
		opacity var(--ap-adc-transition),
		transform var(--ap-adc-transition),
		border-color var(--ap-adc-transition),
		box-shadow var(--ap-adc-transition),
		background-color var(--ap-adc-transition);
}

.ap-antidetect-comp__card:hover {
	border-color: rgba(255, 255, 255, 0.16);
}

.ap-antidetect-comp--filtering .ap-antidetect-comp__card {
	opacity: 0.38;
	transform: scale(0.985);
}

.ap-antidetect-comp--filtering .ap-antidetect-comp__card--recommended {
	opacity: 1;
	transform: scale(1.02);
	border-color: rgba(54, 196, 255, 0.55);
	background:
		radial-gradient(circle at 88% 12%, rgba(56, 211, 159, 0.12), transparent 42%),
		linear-gradient(160deg, rgba(54, 196, 255, 0.1) 0%, var(--ap-adc-surface) 55%);
	box-shadow: var(--ap-adc-shadow-active);
}

.ap-antidetect-comp__badge {
	display: inline-block;
	margin-bottom: 0.55rem;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	background: var(--ap-adc-badge-bg);
	border: 1px solid rgba(54, 196, 255, 0.35);
	color: var(--ap-adc-badge-text);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ap-antidetect-comp__card-title {
	margin: 0 0 0.75rem;
	font-size: 1.08rem;
	font-weight: 700;
	color: #f3f8ff;
}

.ap-antidetect-comp__features {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ap-antidetect-comp__feature-item {
	padding: 0.38rem 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--ap-adc-text);
}

.ap-antidetect-comp__feature-item:last-child {
	border-bottom: 0;
}

.ap-antidetect-comp__highlight {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ap-adc-accent);
	margin-right: 0.35rem;
}

.ap-antidetect-comp--filtering .ap-antidetect-comp__card--recommended .ap-antidetect-comp__highlight {
	color: var(--ap-adc-accent-2);
}
