/*
 * Hero visual — category showcase panel + decorative leaf-particle field.
 * Depends on log-hero.css for shared hero tokens/animation timing.
 * @package log-core
 */

.hero-leaf-field {
	position: absolute;
	inset: 0;
	max-width: 1280px;
	margin: 0 auto;
	pointer-events: none;
	z-index: 1;
}

.leaf-particle {
	position: absolute;
	color: var(--sage-700);
	opacity: 0;
	animation: log-leaf-drift 7s ease-in-out infinite;
	pointer-events: none;
}

.leaf-particle .icon {
	width: 14px;
	height: 14px;
}

@keyframes log-leaf-drift {
	0% {
		opacity: 0;
		transform: translateY(0) translateX(0) rotate(0deg);
	}

	12% {
		opacity: .55;
	}

	50% {
		opacity: .4;
		transform: translateY(-130px) translateX(16px) rotate(160deg);
	}

	100% {
		opacity: 0;
		transform: translateY(-220px) translateX(26px) rotate(280deg);
	}
}

@media (max-width: 640px) {
	.leaf-particle {
		display: none;
	}
}

.hero-cats-panel {
	position: relative;
	min-height: 404px;
	margin-top: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
}

.hero-cats {
	position: relative;
	z-index: 3;
	width: 100%;
	padding: 22px;
	border-radius: 26px;
	background: rgba(255, 255, 255, .4);
	border: 1px solid rgba(138, 106, 46, .32);
	box-shadow: 0 24px 60px rgba(31, 58, 52, .14);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hero-cats-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 10px;
}

.hero-cats-label .tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sage-700);
}

.hero-cats-label a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-900);
	text-decoration: none;
	transition: gap .25s var(--ease), color .25s var(--ease);
}

.hero-cats-label a:hover {
	gap: 8px;
	color: var(--sage-700);
}

.hero-cats-label a .icon {
	width: 12px;
	height: 12px;
}

.hero-cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.hero-cat-card {
	display: block;
	background: rgba(255, 255, 255, .68);
	border: 1px solid rgba(31, 58, 52, .10);
	border-radius: 16px;
	padding: 16px 15px;
	text-decoration: none;
	color: inherit;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}

.hero-cat-card:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 16px 32px rgba(31, 58, 52, .16);
	border-color: rgba(138, 106, 46, .4);
}

.hero-cat-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--sage-400), var(--sage-700));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	margin-bottom: 11px;
	transition: transform .3s var(--ease);
}

.hero-cat-card:hover .hero-cat-icon {
	transform: scale(1.08) rotate(-4deg);
}

.hero-cat-card h4 {
	font-family: var(--display);
	font-size: 15.5px;
	font-weight: 700;
	color: var(--ink-900);
	line-height: 1.25;
	margin: 0;
}

.hero-cat-card p {
	font-size: 11.5px;
	color: var(--ink-700);
	margin-top: 4px;
	line-height: 1.4;
}

.float-badge {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 10px 16px;
	border-radius: var(--r-pill);
	box-shadow: var(--shadow-md);
	z-index: 5;
	animation: log-badge-float 4.5s ease-in-out infinite;
	white-space: nowrap;
}

.fb-top {
	top: -4%;
	right: 4%;
	background: var(--ink-900);
	color: #fdf8f4;
}

.fb-top .fb-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sage-400);
	animation: log-pulse-dot 1.4s ease-in-out infinite;
}

@keyframes log-badge-float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-9px);
	}
}

@keyframes log-pulse-dot {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: .4;
		transform: scale(.7);
	}
}

@media (max-width: 760px) {

	.hero-visual,
	.hero-cats-panel {
		margin-top: 30px;
		min-height: auto;
	}
}

@media (max-width: 520px) {
	.hero-cat-grid {
		grid-template-columns: 1fr;
	}

	.hero-cats-panel {
		flex-direction: column;
		align-items: stretch;
		min-height: auto;
	}

	.fb-top {
		position: static;
		display: inline-flex;
		order: -1;
		align-self: flex-start;
		margin-bottom: 14px;
	}
}

@media (max-width: 480px) {
	.rating-row {
		display: none;
	}

	.fb-top {
		display: none;
	}
}