/* Good Meat Recipes - custom layer on top of theme.json */

.gmr-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.gmr-header__inner {
	padding: 14px 0;
}

/* Old flat nav + JS toggle rules removed. header.css now owns .gmr-header__inner layout, the mega menu, and the native <details> mobile menu (see parts/header.html). */

/* Breadcrumbs */
.gmr-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	font-size: 13px;
	color: var(--wp--preset--color--ink-muted);
}

.gmr-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--wp--preset--color--border);
}

.gmr-breadcrumbs a {
	color: var(--wp--preset--color--ink-muted);
	text-decoration: none;
}

.gmr-breadcrumbs a:hover {
	color: var(--wp--preset--color--accent);
}

.gmr-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--accent);
}

/* Recipe grid + cards */
.gmr-recipe-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

@media (max-width: 960px) {
	.gmr-recipe-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.gmr-recipe-grid { grid-template-columns: 1fr; }
}

.gmr-recipe-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.gmr-recipe-card__media {
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--border);
	margin-bottom: 12px;
}

.gmr-recipe-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.gmr-recipe-card a:hover .gmr-recipe-card__media img {
	transform: scale(1.03);
}

.gmr-recipe-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 17px;
	margin: 0 0 8px;
	line-height: 1.3;
}

/* Meta badges */
.gmr-meta-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 0;
}

.gmr-badge {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 20px;
	background: var(--wp--preset--color--bg);
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--ink-muted);
}

.gmr-badge i {
	font-style: normal;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	margin-right: 4px;
}

.gmr-badge-accent {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--bg);
	font-weight: 600;
}

/* Jump to recipe */
.gmr-jump-recipe {
	position: sticky;
	top: 70px;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--bg);
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	margin: 12px 0 24px;
}

/* Recipe ingredients / steps */
.gmr-recipe-block {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 24px;
}

/* Newsletter */
.gmr-newsletter {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bg);
	border-radius: 10px;
	padding: 40px;
	text-align: center;
}

.gmr-newsletter input[type="email"] {
	border-radius: 6px;
	border: none;
	padding: 12px 16px;
	width: min(320px, 100%);
}

.gmr-newsletter button {
	border-radius: 6px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--bg);
	border: none;
	padding: 12px 20px;
	font-weight: 600;
	cursor: pointer;
}

/* Footer */
.gmr-footer {
	border-top: 1px solid var(--wp--preset--color--border);
	padding: 48px 0 24px;
	font-size: 14px;
	color: var(--wp--preset--color--ink-muted);
}

.gmr-footer a {
	color: var(--wp--preset--color--ink-muted);
	text-decoration: none;
}

.gmr-footer a:hover {
	color: var(--wp--preset--color--accent);
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
