/* fitfrog shared theme — palette, mascot, card recipe, footer, motion */

:root {
	--bg: #f7f3e8;
	--ink: #0e3b2e;
	--frog: #22a25d;
	--frog-dark: #15803d;
	--lime: #bef264;
	--card: #ffffff;
	--card-hover: #e6f8c2;
	--card-border: #e4dec9;
	--focus: #b45309;
}

* {
	box-sizing: border-box;
}

.mascot {
	width: clamp(160px, 30vw, 260px);
	height: auto;
}

.mascot-svg {
	display: block;
	width: 100%;
	height: auto;
}

/* card recipe — hub app cards + landing feature cards */
.card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 4.25rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--card-border);
	border-radius: 1.25rem;
	background: var(--card);
	color: var(--ink);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		border-color 0.15s ease,
		background-color 0.15s ease;
}

.card.is-hovered {
	transform: translateY(-2px);
	border-color: var(--frog);
	box-shadow: 0 8px 24px rgba(14, 59, 46, 0.12);
	background: var(--card-hover);
}

.card:active {
	transform: translateY(0);
}

.card:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.card-icon {
	width: 2.5rem;
	height: 2.5rem;
	flex: none;
	transition: transform 0.15s ease;
}

.card.is-hovered .card-icon {
	transform: translateY(-2px);
}

/* mascot reactions */
.bar {
	transition: transform 0.15s ease;
}

.mouth-open,
.chat-bubble,
.meet-bubble {
	opacity: 0;
}

.mascot.is-kumak .bar {
	animation: bar-curl 0.6s ease-in-out infinite;
}

@keyframes bar-curl {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

.mascot.is-traszka #mouth-smile {
	opacity: 0;
}

.mascot.is-traszka .mouth-open {
	opacity: 1;
	animation: talk 0.34s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}

@keyframes talk {
	0%,
	100% {
		transform: scaleY(1);
	}
	50% {
		transform: scaleY(0.2);
	}
}

.mascot.is-traszka .chat-bubble {
	opacity: 1;
}

.mascot.is-rzekotka .meet-bubble,
.mascot.is-peeper .meet-bubble {
	opacity: 1;
}

.meet-frog {
	animation: head-bob 0.8s ease-in-out infinite;
}

.meet-frog + .meet-frog {
	animation-delay: 0.4s;
}

@keyframes head-bob {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-2px);
	}
}

.chat-dot {
	animation: dot-pulse 1s ease-in-out infinite;
}

.chat-dot:nth-child(3) {
	animation-delay: 0.15s;
}

.chat-dot:nth-child(4) {
	animation-delay: 0.3s;
}

@keyframes dot-pulse {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 1;
	}
}

/* footer contact — pinned to viewport bottom, never blocks taps */
.footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	position: absolute;
	bottom: 0.75rem;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 0.78rem;
	opacity: 0.5;
	letter-spacing: 0.02em;
	user-select: text;
	pointer-events: none;
}

.footer-mail {
	pointer-events: auto;
	color: inherit;
	text-decoration: none;
}

.footer-mail:hover,
.footer-mail:focus-visible {
	text-decoration: underline;
	outline: none;
}

.back-link {
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.card,
	.bar {
		transition: none;
	}
	.card.is-hovered {
		transform: none;
	}
	.bar,
	.mouth-open,
	.chat-dot,
	.meet-frog {
		animation: none;
	}
}
