/*
 * Shared base for all Kantan widgets. Design tokens (--kantan-*) come from the theme (assets/css/tokens.css).
 * Per-widget styles live in assets/css/widgets/{slug}.css, one BEM block per widget.
 * Image rules need two classes (.kantan-x .kantan-x__image): Elementor's ".elementor img" (0,1,1)
 * resets height, border-radius and box-shadow on every image.
 */
[class^="kantan-"],
[class^="kantan-"] *,
[class^="kantan-"] *::before,
[class^="kantan-"] *::after {
	box-sizing: border-box;
}

/* Rotated pill label used across the design ("ice matcha!", "Van theeveld tot kom", …). */
.kantan-pill {
	display: inline-block;
	padding: 8px 16px;
	border-radius: var(--kantan-radius-pill);
	font-weight: 700;
	line-height: 1.2;
}

/* Pill buttons — Home page (hero, karaoke panel). */
.kantan-btn,
.kantan-btn:hover,
.kantan-btn:focus-visible {
	display: inline-block;
	padding: 17px 30px;
	border-radius: var(--kantan-radius-pill);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.kantan-btn:hover,
.kantan-btn:focus-visible {
	filter: brightness(1.08);
}

.kantan-btn--groen,
.kantan-btn--groen:hover {
	background: var(--kantan-green);
	color: #fff;
}

.kantan-btn--roze,
.kantan-btn--roze:hover {
	background: var(--kantan-pink);
	color: var(--kantan-green);
}

.kantan-btn--rijst,
.kantan-btn--rijst:hover {
	background: var(--kantan-rice);
	color: var(--kantan-green);
}

/* Karaoke (dark) buttons — Karaoke page. */
.kantan-btn--neon,
.kantan-btn--neon:hover {
	padding: 18px 32px;
	background: var(--kantan-pink);
	color: var(--kantan-night);
	font-family: var(--kantan-font-display);
	font-size: 18px;
	font-weight: 400;
	text-transform: uppercase;
}

.kantan-btn--lijn,
.kantan-btn--lijn:hover {
	padding: 16px 30px;
	border: 2px solid var(--kantan-cream);
	color: var(--kantan-cream);
}

/* ---------------------------------------------------------------------------
 * Motion — only for visitors who have not asked for reduced motion.
 * Animations use the individual translate/rotate/scale properties, so they combine
 * with the static tilt that cards and pills already have in `transform`.
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	/* Reveal on scroll (assets/js/kantan-motion.js). */
	.kantan-motion [data-kantan-reveal]:not(.is-shown):not(.is-visible) {
		opacity: 0;
	}

	.kantan-motion [data-kantan-reveal].is-visible {
		animation: kantan-reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
		animation-delay: var(--kantan-reveal-delay, 0s);
	}

	/* Elementor editor: always show everything, whatever the script decided. */
	.elementor-editor-active [data-kantan-reveal] {
		opacity: 1 !important; /* stronger than the reveal rules above, which have higher specificity */
		animation: none !important;
	}

	.kantan-btn {
		transition: translate 0.2s ease, filter 0.2s ease;
	}

	.kantan-btn:hover,
	.kantan-btn:focus-visible {
		translate: 0 -2px;
	}
}

@keyframes kantan-reveal {
	from {
		opacity: 0;
		translate: 0 32px;
	}
}

/* Hero entrances and idle loops (used by the hero widgets). */
@keyframes kantan-rise {
	from {
		opacity: 0;
		translate: 0 24px;
	}
}

@keyframes kantan-pop {
	from {
		opacity: 0;
		scale: 0.85;
	}
}

@keyframes kantan-float {
	50% {
		translate: 0 -8px;
	}
}
