/**
 * CJ's Brew & BBQ — Cook Mode
 * Full-screen step-by-step overlay. Deliberately a fixed dark theme
 * regardless of the site's light/dark setting — this is read from a
 * few feet away in a kitchen or outdoors next to a smoker, so high
 * contrast matters more than matching the page.
 */

.cook-mode-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: #0F0F0F;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--space-6, 24px) var(--space-4, 16px);
	text-align: center;
}

.cook-mode-header {
	display: none;
}

.cook-mode-counter {
	font-family: 'Work Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #FF5810;
	margin-bottom: 24px;
}

.cook-mode-step-text {
	font-family: 'Rubik', sans-serif;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	line-height: 1.35;
	color: #F5F5F5;
	max-width: 780px;
	margin-bottom: 24px;
}

.cook-mode-meta {
	font-family: 'Work Sans', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #B3B3B3;
	min-height: 1.4em;
	margin-bottom: 8px;
}

.cook-mode-timer {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-family: 'Work Sans', sans-serif;
	font-size: 2.5rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: #F5F5F5;
	margin: 12px 0 28px;
}

.cook-mode-timer.timer-done {
	color: #FF5810;
	animation: cookModeTimerPulse 1.2s ease-in-out infinite;
}

@keyframes cookModeTimerPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.cook-mode-btn {
	font-family: 'Work Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #F5F5F5;
	background: transparent;
	border: 2px solid #3D2E29;
	border-radius: 0;
	padding: 12px 28px;
	min-height: 44px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.cook-mode-btn:hover {
	border-color: #FF5810;
	background: rgba(255, 88, 16, 0.1);
}

.timer-start {
	font-size: 1rem;
	padding: 10px 24px;
	border-color: #FF5810;
	color: #FF5810;
}

.timer-start:hover {
	background: #FF5810;
	color: #fff;
}

.cook-mode-nav {
	display: flex;
	gap: 16px;
}

.cook-mode-prev {
	order: 1;
}

.cook-mode-next {
	order: 2;
	background: #FF5810;
	border-color: #FF5810;
}

.cook-mode-next:hover {
	background: #e64d0c;
	border-color: #e64d0c;
}

.cook-mode-exit {
	position: absolute;
	top: 20px;
	right: 20px;
	font-family: 'Work Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #929190;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
}

.cook-mode-exit:hover {
	color: #F5F5F5;
}

@media (max-width: 600px) {
	.cook-mode-nav {
		flex-direction: column;
		width: 100%;
		max-width: 320px;
	}

	.cook-mode-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cook-mode-timer.timer-done {
		animation: none;
	}
}
