/**
 * IPTV Product Options — frontend styles.
 *
 * Theme-agnostic Glass UI for the platform and feature blocks.
 * Typography is inherited from the active theme; only layout, spacing and
 * surface treatment are provided here. Logical properties keep RTL working.
 */

.iptvpo-fe {
	--iptvpo-fe-accent: var(--iptvpo-accent, #5b6cff);
	--iptvpo-fe-accent-rgb: var(--iptvpo-accent-rgb, 91, 108, 255);
	--iptvpo-fe-radius: 18px;
	--iptvpo-fe-line: rgba(125, 125, 145, 0.18);
	--iptvpo-fe-surface: rgba(255, 255, 255, 0.55);
	--iptvpo-fe-shadow: 0 2px 8px rgba(20, 22, 45, 0.05), 0 12px 30px rgba(20, 22, 45, 0.06);
	--iptvpo-fe-ease: cubic-bezier(0.22, 1, 0.36, 1);

	margin-block: 1.6em;
	clear: both;
}

.iptvpo-fe *,
.iptvpo-fe *::before,
.iptvpo-fe *::after {
	box-sizing: border-box;
}

.iptvpo-fe__title {
	margin: 0 0 0.85em;
	font-size: 1.02em;
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: inherit;
}

/* Shared icon contract with the admin ---------------------------------- */

.iptvpo-fe .iptvpo-libicon {
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	flex: none;
	border-radius: 13px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--iptvpo-fe-line);
}

.iptvpo-fe .iptvpo-libicon__img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: contain;
	padding: 5px;
	margin: 0;
	max-inline-size: 100%;
	display: block;
}

.iptvpo-fe .iptvpo-libicon--glyph,
.iptvpo-fe .iptvpo-libicon--mono {
	color: #fff;
	background: var(--iptvpo-item-color, var(--iptvpo-fe-accent));
	border-color: transparent;
}

.iptvpo-fe .iptvpo-libicon--mono {
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
}

/* -------------------------------------------------------------------------
 * Platforms
 * ---------------------------------------------------------------------- */

.iptvpo-fe-platforms__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iptvpo-fe-platform {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 14px 10px;
	text-align: center;
	list-style: none;
	border: 1px solid var(--iptvpo-fe-line);
	border-radius: var(--iptvpo-fe-radius);
	background: var(--iptvpo-fe-surface);
	backdrop-filter: blur(16px) saturate(170%);
	-webkit-backdrop-filter: blur(16px) saturate(170%);
	box-shadow: var(--iptvpo-fe-shadow);
	transition: transform 0.28s var(--iptvpo-fe-ease), box-shadow 0.28s var(--iptvpo-fe-ease);
}

.iptvpo-fe-platform:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(20, 22, 45, 0.08), 0 20px 44px rgba(20, 22, 45, 0.09);
}

.iptvpo-fe-platform__name {
	font-size: 0.78em;
	font-weight: 600;
	line-height: 1.3;
	opacity: 0.85;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.iptvpo-fe-platform--more {
	justify-content: center;
	min-block-size: 74px;
	border-style: dashed;
}

.iptvpo-fe-platform__more {
	font-size: 0.95em;
	font-weight: 700;
	opacity: 0.6;
}

/* Compact strip used in catalogue loops -------------------------------- */

.iptvpo-fe-platforms--compact {
	margin-block: 0.6em;
}

.iptvpo-fe-platforms--compact .iptvpo-fe-platforms__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.iptvpo-fe-platforms--compact .iptvpo-fe-platform {
	padding: 3px;
	border-radius: 10px;
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.iptvpo-fe-platforms--compact .iptvpo-fe-platform:hover {
	transform: none;
	box-shadow: none;
}

.iptvpo-fe-platforms--compact .iptvpo-libicon {
	inline-size: 26px;
	block-size: 26px;
	border-radius: 8px;
	font-size: 0.6rem;
}

.iptvpo-fe-platforms--compact .iptvpo-fe-platform--more {
	display: grid;
	place-items: center;
	min-block-size: 26px;
	min-inline-size: 26px;
	border-style: solid;
	border-color: var(--iptvpo-fe-line);
}

.iptvpo-fe-platforms--compact .iptvpo-fe-platform__more {
	font-size: 0.68em;
}

/* -------------------------------------------------------------------------
 * Features
 * ---------------------------------------------------------------------- */

.iptvpo-fe-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iptvpo-fe-feature {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 12px 14px;
	list-style: none;
	border: 1px solid var(--iptvpo-fe-line);
	border-radius: var(--iptvpo-fe-radius);
	background: var(--iptvpo-fe-surface);
	backdrop-filter: blur(16px) saturate(170%);
	-webkit-backdrop-filter: blur(16px) saturate(170%);
	box-shadow: var(--iptvpo-fe-shadow);
	transition: transform 0.28s var(--iptvpo-fe-ease), box-shadow 0.28s var(--iptvpo-fe-ease);
}

.iptvpo-fe-feature:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(20, 22, 45, 0.08), 0 20px 44px rgba(20, 22, 45, 0.09);
}

.iptvpo-fe-feature .iptvpo-libicon {
	inline-size: 34px;
	block-size: 34px;
	border-radius: 11px;
}

.iptvpo-fe-feature__body {
	min-inline-size: 0;
}

.iptvpo-fe-feature__name {
	display: block;
	font-size: 0.87em;
	font-weight: 640;
	line-height: 1.3;
}

.iptvpo-fe-feature__desc {
	display: block;
	margin-block-start: 2px;
	font-size: 0.76em;
	line-height: 1.45;
	opacity: 0.68;
}

/* -------------------------------------------------------------------------
 * Responsive, dark mode & accessibility
 * ---------------------------------------------------------------------- */

@media screen and (max-width: 600px) {
	.iptvpo-fe-platforms__grid {
		grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
		gap: 8px;
	}

	.iptvpo-fe-features__grid {
		grid-template-columns: 1fr;
	}

	.iptvpo-fe-platform {
		padding: 11px 7px;
	}
}

/*
 * Dark styling is opt-in from the THEME, not from the visitor's operating
 * system. Keying off prefers-color-scheme painted white-on-white on light
 * storefronts whenever the visitor had their phone in dark mode.
 */
.iptvpo-fe-dark .iptvpo-fe,
[data-theme="dark"] .iptvpo-fe {
	--iptvpo-fe-line: rgba(255, 255, 255, 0.14);
	--iptvpo-fe-surface: rgba(255, 255, 255, 0.06);
	--iptvpo-fe-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 12px 30px rgba(0, 0, 0, 0.3);
}

.iptvpo-fe-dark .iptvpo-fe .iptvpo-libicon,
[data-theme="dark"] .iptvpo-fe .iptvpo-libicon {
	background: rgba(255, 255, 255, 0.1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.iptvpo-fe-platform,
	.iptvpo-fe-feature {
		background: rgba(255, 255, 255, 0.9);
	}
}

@media (prefers-reduced-motion: reduce) {
	.iptvpo-fe-platform,
	.iptvpo-fe-feature {
		transition: none;
	}

	.iptvpo-fe-platform:hover,
	.iptvpo-fe-feature:hover {
		transform: none;
	}
}
