/* Cocktail Content Page Styles */

/* Paragraphs */
.block-content p {
	margin-bottom: 1rem;
	font-size: 1.25rem; /* text-xl */
	line-height: 1.75rem;
}

/* Strong/Bold text */
.block-content strong {
	margin-bottom: .5rem;
	display: block;
	font-weight: 700;
}

/* Strong text inside paragraphs should flow inline */
.block-content p strong {
	display: inline;
	margin-bottom: 0;
}

/* Headings - All bold */
.block-content h1,
.block-content h2,
.block-content h3 {
	font-weight: 700;
	margin-top: 3.5rem;
	margin-bottom: 0.5rem;
}

/* First heading should not have top margin */
.block-content > h1:first-child,
.block-content > h2:first-child,
.block-content > h3:first-child,
.block-content > h4:first-child,
.block-content > h5:first-child,
.block-content > h6:first-child {
	margin-top: 0;
}

/* H1 - Largest */
.block-content h1 {
	font-size: 1.875rem; /* text-3xl */
	line-height: 2.25rem;
	margin-top: 4rem;
	margin-bottom: 0.5rem;
}

/* H2 - Medium */
.block-content h2 {
	font-size: 1.5rem; /* text-2xl */
	line-height: 2rem;
	margin-top: 3.5rem;
	margin-bottom: 0.5rem;
}

/* H3 - Same size as p tag */
.block-content h3 {
	font-size: 1.25rem; /* text-xl - same as p */
	line-height: 1.75rem;
	margin-top: 3rem;
	margin-bottom: 0.5rem;
}

/* H4, H5, H6 - Smaller headings, also bold */
.block-content h4,
.block-content h5,
.block-content h6 {
	font-weight: 700;
	margin-top: 3rem;
	margin-bottom: 0.5rem;
}

.block-content h4 {
	font-size: 1.125rem; /* text-lg */
	line-height: 1.75rem;
}

.block-content h5 {
	font-size: 1rem; /* text-base */
	line-height: 1.5rem;
}

.block-content h6 {
	font-size: 0.875rem; /* text-sm */
	line-height: 1.25rem;
}

/* Lists */
.block-content ul,
.block-content ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.block-content ul {
	list-style-type: disc;
}

.block-content ol {
	list-style-type: decimal;
}

.block-content li {
	margin-bottom: 0.5rem;
	font-size: 1.25rem; /* text-xl */
	line-height: 1.75rem;
}

/* Links */
.block-content a {
	color: inherit;
	text-decoration: underline;
}

.block-content a:hover {
	text-decoration: none;
}

/* Blockquotes */
.block-content blockquote {
	margin: 1rem 0;
	padding-left: 1.5rem;
	border-left: 4px solid currentColor;
	font-style: italic;
}

/* Images */
.block-content img {
	max-width: 100%;
	height: auto;
	margin: 1rem 0;
}

/* Code */
.block-content code {
	background-color: color-mix(in srgb, var(--dm-ext-black) 10%, transparent);
	padding: 0.125rem 0.25rem;
	border-radius: 0.25rem;
	font-size: 0.875em;
}

.block-content pre {
	background-color: color-mix(in srgb, var(--dm-ext-black) 10%, transparent);
	padding: 1rem;
	border-radius: 0.5rem;
	overflow-x: auto;
	margin: 1rem 0;
}

.block-content pre code {
	background-color: transparent;
	padding: 0;
}

/* Horizontal rule */
.block-content hr {
	margin: 2rem 0;
	border: none;
	border-top: 1px solid currentColor;
	opacity: 0.3;
}

/* Desktop styles */
@media (min-width: 768px) {
	.block-content p {
		margin-bottom: 2rem;
		font-size: 2.25rem; /* lg:text-4xl */
		line-height: 2.5rem;
	}

	.block-content strong {
		margin-bottom: 0.7rem;
	}

	/* H1 - Largest */
	.block-content h1 {
		font-size: 3.75rem; /* lg:text-6xl */
		line-height: 1;
		margin-top: 5rem;
		margin-bottom: 0.75rem;
	}

	/* H2 - Medium */
	.block-content h2 {
		font-size: 3rem; /* lg:text-5xl */
		line-height: 1;
		margin-top: 4.5rem;
		margin-bottom: 0.75rem;
	}

	/* H3 - Same size as p tag */
	.block-content h3 {
		font-size: 2.25rem; /* lg:text-4xl - same as p */
		line-height: 2.5rem;
		margin-top: 4rem;
		margin-bottom: 0.75rem;
	}

	/* H4, H5, H6 - Desktop sizes */
	.block-content h4 {
		font-size: 1.875rem; /* lg:text-3xl */
		line-height: 2.25rem;
		margin-top: 4rem;
		margin-bottom: 0.75rem;
	}

	.block-content h5 {
		font-size: 1.5rem; /* lg:text-2xl */
		line-height: 2rem;
		margin-top: 3.5rem;
		margin-bottom: 0.5rem;
	}

	.block-content h6 {
		font-size: 1.25rem; /* lg:text-xl */
		line-height: 1.75rem;
		margin-top: 3rem;
		margin-bottom: 0.5rem;
	}

	.block-content ul,
	.block-content ol {
		margin-bottom: 2rem;
		padding-left: 2rem;
	}

	.block-content li {
		margin-bottom: 0.75rem;
		font-size: 2.25rem; /* lg:text-4xl */
		line-height: 2.5rem;
	}

	/* Blockquotes - Desktop */
	.block-content blockquote {
		margin: 2rem 0;
		padding-left: 2rem;
		font-size: 2.25rem; /* lg:text-4xl */
		line-height: 2.5rem;
	}

	/* Images - Desktop */
	.block-content img {
		margin: 2rem 0;
	}

	/* Code - Desktop */
	.block-content code {
		font-size: 0.9em;
	}

	.block-content pre {
		margin: 2rem 0;
		padding: 1.5rem;
	}

	/* Horizontal rule - Desktop */
	.block-content hr {
		margin: 3rem 0;
	}

	/* First heading should not have top margin - Desktop */
	.block-content > h1:first-child,
	.block-content > h2:first-child,
	.block-content > h3:first-child,
	.block-content > h4:first-child,
	.block-content > h5:first-child,
	.block-content > h6:first-child {
		margin-top: 0;
	}

	/* Video container - 2:4 aspect ratio on desktop */
	.video-container {
		aspect-ratio: 1 / 2;
		width: 100%;
		max-height: 800px;
		overflow: hidden;
	}

	.video-container iframe,
	.video-container video {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

/* Servings input styling */
.servings-input {
	border-width: 2px !important;
	border-radius: 0.75rem !important;
	border-color: var(--color-forest) !important;
	outline: none !important;
	box-shadow: none !important;
	background-color: transparent !important;
	font-size: 1.5rem !important; /* text-2xl - increased font size */
	height: 3.9rem !important; /* 56px - reduced from h-17 (68px) */
	font-weight: 700 !important;
	-moz-appearance: textfield;
}

.servings-input:focus,
.servings-input:hover {
	outline: none !important;
	box-shadow: none !important;
	background-color: transparent !important;
	-moz-appearance: textfield;
}

/* Unit toggle (oz/ml/parts) — moved from inline <style> in template-parts/content-cocktail.php */
#unit_toggle_oz:checked + label,
#unit_toggle_ml:checked + label,
#unit_toggle_parts:checked + label {
	background-color: var(--color-forest) !important;
	color: white !important;
	border-color: var(--color-forest) !important;
}
#unit_toggle_oz:not(:checked) + label,
#unit_toggle_ml:not(:checked) + label,
#unit_toggle_parts:not(:checked) + label {
	background-color: transparent !important;
	color: var(--color-forest) !important;
	border-color: var(--color-forest) !important;
}

/* Flavour selector — moved from inline <style> in blocks/cocktails/cocktail-drinks-slider.php */
input[name="sel_flavour"]:checked + label {
	background-color: var(--color-beige-dark) !important;
	color: var(--color-charcoal) !important;
	border-color: var(--color-beige-dark) !important;
}
input[name="sel_flavour"]:not(:checked) + label {
	background-color: transparent !important;
	color: var(--color-beige-dark) !important;
	border-color: var(--color-beige-dark) !important;
}

/* Hide number input spinners */
.servings-input::-webkit-inner-spin-button,
.servings-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

@media (max-width: 768px) {
	.servings-input {
		height: 2.7rem !important; /* 56px - reduced from h-17 (68px) */
		border-radius: .35rem !important;
		font-size: 1rem !important; /* text-xl */
	}
	/* Headings - All bold */
	.block-content h1,
	.block-content h2,
	.block-content h3 {
		font-size: 1rem; /* text-xl */
		line-height: 1.3rem;
		margin-top: 2.5rem;
	}
	.block-content p {
		margin-bottom: 1.7rem;
		font-size: 1rem;
		line-height: 1.33rem;
	}
	.block-content li {
		margin-bottom: 0.75rem;
		font-size: 1rem;
		line-height: 1.33rem;
	}
}

/* Cocktail video (sticky desktop / 4:3) — moved from inline <style> in
   template-parts/content-cocktail.php. Scoped to .dm-cocktail-block (the block
   root) and .dm-cocktail-video (the video container). */

/* Mobile - 4:3 aspect ratio */
@media (max-width: 767px) {
	.dm-cocktail-video {
		position: relative;
		width: 100%;
		max-width: 100%;
		aspect-ratio: 4 / 3;
	}
	.dm-cocktail-video .video-thumbnail-wrapper {
		width: 100%;
		max-width: 100%;
		position: relative;
		aspect-ratio: 4 / 3;
		overflow: hidden;
	}
	.dm-cocktail-video .video-thumbnail-wrapper img {
		width: 100%;
		max-width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
	.dm-cocktail-video .video-player-wrapper {
		width: 100%;
		max-width: 100%;
		position: relative;
		background-color: var(--dm-ext-black);
		display: flex;
		align-items: center;
		justify-content: center;
		aspect-ratio: 4 / 3;
		min-height: auto !important;
	}
	.dm-cocktail-video .video-player-wrapper video {
		width: 100%;
		max-width: 100%;
		height: 100%;
		object-fit: contain;
		display: block;
	}
	.dm-cocktail-video .video-player-wrapper > div {
		position: relative;
		width: 100%;
		max-width: 100%;
		height: 100%;
		aspect-ratio: 4 / 3;
	}
	.dm-cocktail-video .video-player-wrapper > div iframe {
		width: 100%;
		max-width: 100%;
		height: 100%;
		display: block;
	}
}

/* Desktop - sticky 4:3 */
@media (min-width: 1024px) {
	/* Ensure parent containers don't interfere with sticky */
	.dm-cocktail-block {
		overflow: visible !important;
	}
	.dm-cocktail-block > div > .flex {
		overflow: visible;
	}
	.dm-cocktail-video {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: 0 !important;
		width: 100%;
		max-width: 100%;
		aspect-ratio: 4 / 3;
		max-height: 100vh;
		align-self: start;
		z-index: 10;
	}
	.dm-cocktail-video .video-thumbnail-wrapper {
		width: 100%;
		max-width: 100%;
		position: relative;
		aspect-ratio: 4 / 3;
		overflow: hidden;
	}
	.dm-cocktail-video .video-thumbnail-wrapper img {
		width: 100%;
		max-width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
	.dm-cocktail-video .video-player-wrapper {
		width: 100%;
		max-width: 100%;
		position: relative;
		background-color: var(--dm-ext-black);
		display: flex;
		align-items: center;
		justify-content: center;
		aspect-ratio: 4 / 3;
		min-height: auto !important;
	}
	.dm-cocktail-video .video-player-wrapper video {
		width: 100%;
		max-width: 100%;
		height: 100%;
		object-fit: contain;
		display: block;
	}
	.dm-cocktail-video .video-player-wrapper > div {
		position: relative;
		width: 100%;
		max-width: 100%;
		height: 100%;
		aspect-ratio: 4 / 3;
	}
	.dm-cocktail-video .video-player-wrapper > div iframe {
		width: 100%;
		max-width: 100%;
		height: 100%;
		display: block;
	}
}