/*
 * Hero visual — photo with Ken Burns zoom + category mini-grid overlay.
 * Depends on log-hero.css for shared hero tokens.
 * @package log-core
 */

.hero-visual-area { position: relative; }

.hero-main-img-wrap {
	position: relative;
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	box-shadow: 0 40px 100px -20px rgba(8, 29, 80, .2);
	background: linear-gradient(135deg, var(--sage-200), var(--sage-400));
}

.hero-main-img-wrap img.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	animation: log-ken-burns 18s ease-in-out infinite alternate;
}

@keyframes log-ken-burns {
	from { transform: scale(1); }
	to { transform: scale(1.07) translate(-1%, -1%); }
}

.hero-cats-overlay {
	position: absolute;
	bottom: 24px;
	left: 24px;
	right: 24px;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
	z-index: 2;
}

.hero-cats-overlay .hero-cats-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.hero-cats-overlay .hero-cats-label .tag {
	font-size: 11px;
	font-weight: 800;
	color: var(--sage-600);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.hero-cats-overlay .hero-cats-label a {
	font-size: 11px;
	font-weight: 700;
	color: var(--ink-900);
	text-decoration: none;
	transition: color .25s var(--ease);
}

.hero-cats-overlay .hero-cats-label a:hover { color: var(--plum-500); }

.hero-cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
	margin-top: 12px;
}

.hero-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	padding: 12px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	transition: transform .2s, box-shadow .2s;
}

.hero-cat-card:hover { background: var(--blush-50); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(249, 115, 22, .15); }

/* Glowing sweep border */
.hero-cat-card .glow-border-ring { position: absolute; inset: -2px; border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-cat-card .hero-cat-icon,
.hero-cat-card h4,
.hero-cat-card p { position: relative; z-index: 1; }

@keyframes log-cat-sweep { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-cat-card .glow-border-ring::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 260%;
	height: 260%;
	background: conic-gradient(from 0deg, var(--sage-600) 0deg, #fbbf24 50deg, var(--plum-600) 80deg, transparent 110deg, transparent 360deg);
	transform: translate(-50%, -50%) rotate(0deg);
}

.hero-cat-card:hover .glow-border-ring::before { animation: log-cat-sweep .65s cubic-bezier(.4, 0, .2, 1) forwards; }

.hero-cat-card .glow-border-ring::after { content: ''; position: absolute; inset: 2px; border-radius: 12px; background: #fff; }
.hero-cat-card:hover .glow-border-ring::after { background: var(--blush-50); }

.hero-cat-icon { font-size: 18px; }

.hero-cat-card h4 {
	font-family: var(--body);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--ink-900);
	margin: 0;
	line-height: 1.2;
	text-align: center;
}

.hero-cat-card p { display: none; }

.float-badge {
	position: absolute;
	top: 10%;
	right: 8px;
	background: #fff;
	border: 1px solid var(--sage-100);
	padding: 12px 20px;
	border-radius: var(--r-pill);
	box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 10;
	animation: log-badge-float 6s ease-in-out infinite;
	white-space: nowrap;
}

.fb-top { color: var(--ink-900); }

.fb-top .fb-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--plum-500);
	animation: log-pulse-dot 1.4s ease-in-out infinite;
}

@keyframes log-badge-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes log-pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .4; transform: scale(.7); }
}

@media (max-width: 1024px) {
	.hero-visual-area { max-width: 420px; margin: 0 auto; order: -1; }
}

@media (max-width: 760px) {
	.hero-cats-overlay { position: relative; bottom: auto; left: auto; right: auto; margin: -40px 16px 0; padding: 16px; border-radius: 18px; }
	.hero-cat-card { padding: 10px 8px; }
	.fb-top { top: -14px; right: 8px; font-size: 11px; padding: 8px 14px; }
}

@media (max-width: 480px) {
	.hero-visual-area { max-width: 100%; }
	.hero-main-img-wrap { aspect-ratio: 3 / 2; }
	.hero-cat-grid { gap: 6px; }
	.hero-cat-card { padding: 8px 4px; border-radius: 10px; }
	.hero-cat-icon { font-size: 14px; }
	.hero-cat-card h4 { font-size: 9px; letter-spacing: .03em; }
	.float-badge { display: none; }
}
