/* eWordWidget page (/ewordwidget/): colors and the widget example, on top of style.css and weavemove.css */

.ew-page .product {
	--g1: #3d8bff;
	--g2: #7a5cff;
	--g3: #2fd8ff;
}

.ew-icon {
	border-radius: 22%;
}

/* Widget example: looks like the medium widget on a dark desktop */

.ew-demo {
	position: relative;
	padding: 24px 26px 20px;
	border-radius: 28px;
	border: 1px solid transparent;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.2)) padding-box,
		linear-gradient(#1c1d2a, #1c1d2a) padding-box,
		linear-gradient(135deg, var(--g1), rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.06) 60%, var(--g2)) border-box;
	box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--g2) 55%, transparent);
	font-size: 15px;
}

.ew-demo-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ew-word {
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #8fb6ff;
}

.ew-buttons {
	display: flex;
	gap: 6px;
}

.ew-buttons span {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 28px;
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #d4d4da;
	font-size: 12px;
	font-weight: 600;
}

.ew-ipa {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 2px;
	color: var(--muted);
}

/* Кнопка озвучки под стрелкой, как в виджете */
.ew-speak {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 28px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 12px;
}

.ew-serif {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	color: #d4d4da;
}

.ew-pos {
	font-style: italic;
}

.ew-answer {
	display: block;
	margin: 6px 0 14px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text);
	font: inherit;
	font-size: 17px;
	text-align: left;
	cursor: pointer;
	filter: blur(5px);
	transition: filter 0.25s;
}

.ew-label {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ew-examples {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 4px;
	color: #e9e9ee;
}

.ew-examples mark {
	background: none;
	color: #8fb6ff;
	font-weight: 600;
}

.ew-examples span {
	color: var(--muted);
	cursor: pointer;
	filter: blur(4px);
	transition: filter 0.25s;
}

.ew-examples span::before {
	content: "— ";
}

.ew-demo.is-revealed .ew-answer,
.ew-demo.is-revealed .ew-examples span {
	filter: none;
}



/* App window screenshot in the "How to learn" section */
.ew-app {
	margin: 8px 0 24px;
}

/* Скриншот окна в такой же рамке с переливом, как пример виджета выше */
.ew-app img {
	border: 1px solid transparent;
	border-radius: 20px;
	background: linear-gradient(135deg, var(--g1), rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.06) 60%, var(--g2)) border-box;
	box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--g2) 55%, transparent), 0 0 40px -20px color-mix(in srgb, var(--g1) 45%, transparent);
}
