/**
 * AudiencePlayer shared editor controls (issue #40, spec #36).
 *
 * The look of the reusable editing pieces, defined once and referenced by every
 * block:
 *   - .ap-highlight            the heading gradient (background-clip: text)
 *   - .ap-btn + .ap-btn--*     the fixed button slots (red, glass, dark,
 *                              outline, text) with the handoff's own values
 *   - .ap-btn__arrow           the 26×26 arrow chip on content buttons
 *   - .ap-size--{small,…}      the Small / Default / Large type presets
 *   - .ap-accent--{red,…}      the 8 accent tints, exposed as --ap-accent
 *
 * Values are ported from the handoff (docs/tmp-reference/handoff) as written.
 */

/* -- Highlight ------------------------------------------------------------ */

/* The brand gradient painted onto selected heading words. Any language: it
   clips the gradient to the glyphs, so it wraps whatever words are selected. */
.ap-highlight {
	background: linear-gradient(110deg, #ff4a42 10%, oklch(0.7 0.2 340) 50%, oklch(0.5 0.2 295) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* -- Size presets --------------------------------------------------------- */

/* Default is the mockup size (the inherited scale); Small and Large sit about
   15% below and above and scale down with the shared type tokens on tablet and
   mobile because they are relative to the inherited size. */
.ap-size--default {
	font-size: 1em;
}
.ap-size--small {
	font-size: 0.85em;
}
.ap-size--large {
	font-size: 1.15em;
}

/* -- Accent picker -------------------------------------------------------- */

/* Each accent exposes a single --ap-accent custom property that blocks paint
   with (eyebrow text, icon tints, challenge numbers, card tiles). The values
   mirror the theme.json palette. */
.ap-accent--red {
	--ap-accent: var(--ap-red);
}
.ap-accent--violet {
	--ap-accent: var(--ap-violet);
}
.ap-accent--teal {
	--ap-accent: var(--ap-teal);
}
.ap-accent--amber {
	--ap-accent: var(--ap-amber);
}
.ap-accent--blue {
	--ap-accent: var(--ap-blue);
}
.ap-accent--green {
	--ap-accent: var(--ap-green);
}
.ap-accent--pink {
	--ap-accent: var(--ap-pink);
}
.ap-accent--ink {
	--ap-accent: var(--ap-ink);
}

/* -- Button slots --------------------------------------------------------- */

.ap-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0;
	border-radius: 14px;
	padding: 17px 36px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Red: hero + navbar only. */
.ap-btn--red {
	background: linear-gradient(180deg, #f0524d, #e32b26);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 12px 28px rgba(227, 43, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Glass: the other hero button, over imagery. */
.ap-btn--glass {
	background: rgba(255, 255, 255, 0.36);
	color: #141218;
	border: 1px solid rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(20px) saturate(1.5);
	backdrop-filter: blur(20px) saturate(1.5);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 10px 24px rgba(20, 18, 24, 0.15);
}

/* Dark: the primary content-section button. */
.ap-btn--dark {
	background: #141218;
	color: #fff;
}
.ap-btn--dark:hover {
	background: #2a2730;
	transform: translateY(-1px);
}

/* Outline: the secondary content-section button. */
.ap-btn--outline {
	background: transparent;
	color: #141218;
	border: 1px solid rgba(20, 18, 24, 0.2);
}
.ap-btn--outline:hover {
	background: rgba(20, 18, 24, 0.05);
}

/* Text link: underlined, offset 6px. */
.ap-btn--text {
	padding: 0 8px;
	background: transparent;
	color: rgba(20, 18, 24, 0.9);
	font-weight: 500;
	font-size: 15px;
	text-decoration: underline;
	text-decoration-color: rgba(20, 18, 24, 0.4);
	text-underline-offset: 6px;
}

/* A link-less button is a non-clickable element, not a dead link. */
.ap-btn--inert {
	cursor: default;
}

.ap-btn__label {
	display: inline-flex;
	align-items: center;
}

/* The 26×26 arrow chip on content buttons. */
.ap-btn__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.16);
}
.ap-btn--outline .ap-btn__arrow {
	background: rgba(20, 18, 24, 0.08);
}
