/*
Theme Name: Bite & Crumb
Theme URI: https://biteandcrumb.example
Author: Bite & Crumb
Description: A clean, modern from-scratch cooking blog theme. Features recipe custom post type and structured recipe schema.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bite-crumb
Tags: blog, food-and-drink, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
	--bc-bg: #faf9f6;
	--bc-white: #ffffff;
	--bc-text: #1f2937;
	--bc-text-muted: #4b5563;
	--bc-text-light: #6b7280;
	--bc-text-faint: #9ca3af;
	--bc-border: #f3f4f6;
	--bc-border-input: #e5e7eb;
	--bc-teal: #a75c50;
	--bc-teal-dark: #a75c50;
	--bc-teal-light: #e7decf;
	--bc-teal-ring: #ccfbf1;
	--bc-dark: #111827;
	--bc-dark-input: #1f2937;
	--bc-dark-border: #374151;
	--bc-gray-50: #f9fafb;
	--bc-gray-400: #9ca3af;
	--bc-max-width: 85rem;
	--bc-max-width-narrow: 48rem;
	--bc-max-width-recipe: 56rem;
	--bc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bc-font-serif: Georgia, "Times New Roman", Times, serif;
	--bc-radius: 0.75rem;
	--bc-radius-lg: 1rem;
	--bc-radius-xl: 1.25rem;
	--bc-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--bc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body.bc-body {
	margin: 0;
	background-color: var(--bc-bg);
	color: var(--bc-text);
	font-family: var(--bc-font-sans);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.bc-container {
	max-width: var(--bc-max-width);
	margin-left: auto;
	margin-right: auto;
	padding: 2rem 1rem;
	min-height: 650px;
}

.bc-container--narrow {
	max-width: var(--bc-max-width-narrow);
}

.bc-container--recipe {
	max-width: var(--bc-max-width-recipe);
}

.bc-grid {
	display: grid;
	gap: 2rem;
}

.bc-grid--home {
	grid-template-columns: 1fr;
}

.bc-grid--cards {
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.bc-grid--archive {
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.bc-col-main {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.bc-col-span-full {
	grid-column: 1 / -1;
}

@media (min-width: 640px) {
	.bc-grid--cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.bc-grid--archive {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.bc-grid--archive {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.bc-grid--home {
		grid-template-columns: 2fr 1fr;
	}

	.bc-grid--archive {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ==========================================================================
   Recipe Archive Lazy Load
   ========================================================================== */

.bc-recipe-archive {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bc-recipe-archive__status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.5rem 0 1rem;
	color: var(--bc-text-muted);
	font-size: 0.9375rem;
}

.bc-recipe-archive__spinner {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid var(--bc-border);
	border-top-color: var(--bc-teal);
	border-radius: 50%;
	animation: bc-recipe-archive-spin 0.8s linear infinite;
}

@keyframes bc-recipe-archive-spin {
	to {
		transform: rotate(360deg);
	}
}

.bc-recipe-archive__sentinel {
	width: 100%;
	height: 1px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.bc-heading-serif {
	font-family: var(--bc-font-serif);
	font-weight: 700;
	color: var(--bc-text);
}

.bc-page-title {
	font-family: var(--bc-font-serif);
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0 0 0.5rem;
}

.bc-page-subtitle {
	color: var(--bc-text-muted);
	margin: 0 0 2rem;
}

.bc-section-title {
	font-family: var(--bc-font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--bc-border-input);
}

.bc-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--bc-teal);
}

.bc-text-muted {
	color: var(--bc-text-muted);
}

.bc-text-center {
	text-align: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.bc-header {
	background-color: var(--bc-white);
	border-bottom: 1px solid var(--bc-border);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: var(--bc-shadow);
}

.bc-header__inner {
	max-width: var(--bc-max-width);
	margin: 0 auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.bc-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--bc-font-serif);
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--bc-teal-dark);
}

.bc-logo__image {
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex-shrink: 0;
}

.bc-logo__text {
	line-height: 1;
}

.bc-nav {
	display: flex;
	gap: 1.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bc-text-light);
}

.bc-nav__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bc-nav__menu .menu-item {
	margin: 0;
	padding: 0;
}

.bc-nav__menu .sub-menu {
	display: none;
}

.bc-nav__link {
	transition: color 0.2s;
}

.bc-nav__link:hover {
	color: var(--bc-teal);
}

.bc-nav__link--active,
.bc-nav .current-menu-item > .bc-nav__link,
.bc-nav .current-menu-ancestor > .bc-nav__link,
.bc-nav .current_page_item > .bc-nav__link,
.bc-nav .current_page_ancestor > .bc-nav__link {
	color: var(--bc-teal);
	border-bottom: 2px solid var(--bc-teal);
	padding-bottom: 0.25rem;
}

@media (min-width: 640px) {
	.bc-header__inner {
		flex-direction: row;
	}
}

/* ==========================================================================
   Search
   ========================================================================== */

.bc-search {
	position: relative;
	width: 100%;
}

.bc-search__input {
	width: 100%;
	padding: 0.5rem 2.5rem 0.5rem 1rem;
	border: 1px solid var(--bc-border-input);
	border-radius: 9999px;
	font-size: 0.875rem;
	outline: none;
	transition: border-color 0.2s;
}

.bc-search__input:focus {
	border-color: var(--bc-teal);
}

.bc-search__icon {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	pointer-events: none;
	background-color: var(--bc-gray-400);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

@media (min-width: 640px) {
	.bc-search {
		width: auto;
	}

	.bc-search__input {
		width: 16rem;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.bc-footer {
	background-color: var(--bc-white);
	border-top: 1px solid var(--bc-border);
	margin-top: 4rem;
	padding: 2rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--bc-text-faint);
}

.bc-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1rem;
}

.bc-footer__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bc-text-light);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: color 0.2s;
}

.bc-footer__link:hover {
	color: var(--bc-teal);
}

.bc-footer__copy {
	margin: 0;
}

.bc-subscribe {
	text-align: center;
}

.bc-subscribe__card {
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	border: 1px solid var(--bc-border);
	box-shadow: var(--bc-shadow-md);
	padding: 2rem;
	max-width: 28rem;
	margin: 0 auto 2rem;
}

.bc-subscribe__text {
	color: var(--bc-text-muted);
	margin: 0 0 1.5rem;
	line-height: 1.6;
}

.bc-subscribe__form {
	max-width: 100%;
}

.bc-subscribe__input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--bc-border-input);
	border-radius: var(--bc-radius);
	font-size: 0.875rem;
	outline: none;
	margin-bottom: 0.75rem;
}

.bc-subscribe__input:focus {
	border-color: var(--bc-teal);
}

.bc-subscribe__content {
	text-align: left;
	max-width: 42rem;
	margin: 0 auto;
}

.bc-notice {
	padding: 0.875rem 1rem;
	border-radius: var(--bc-radius);
	font-size: 0.875rem;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.bc-notice--success {
	background-color: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.bc-notice--info {
	background-color: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

.bc-notice--error {
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.bc-subscribe-banner {
	padding-top: 0;
	padding-bottom: 0;
}

.bc-subscribe-banner .bc-notice {
	margin-top: 1rem;
	margin-bottom: 0;
}

/* ==========================================================================
   Contact Page (Contact Form 7)
   ========================================================================== */

.bc-contact {
	text-align: center;
}

.bc-contact__card {
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	border: 1px solid var(--bc-border);
	box-shadow: var(--bc-shadow-md);
	padding: 2rem;
	max-width: 36rem;
	margin: 0 auto 2rem;
	text-align: left;
}

.bc-contact__intro {
	color: var(--bc-text-muted);
	margin: 0 0 1.5rem;
	line-height: 1.6;
	text-align: center;
}

.bc-contact__content {
	text-align: left;
	max-width: 42rem;
	margin: 0 auto;
}

.bc-contact-form__field {
	margin: 0 0 1.25rem;
}

.bc-contact-form__field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bc-text);
	margin-bottom: 0.375rem;
}

.bc-contact-form__input,
.bc-contact-form__textarea,
.bc-contact-form .wpcf7-form-control:not(.wpcf7-submit) {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--bc-border-input);
	border-radius: var(--bc-radius);
	font-size: 0.875rem;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s;
}

.bc-contact-form__textarea,
.bc-contact-form textarea.wpcf7-form-control {
	min-height: 9rem;
	resize: vertical;
}

.bc-contact-form__input:focus,
.bc-contact-form__textarea:focus,
.bc-contact-form .wpcf7-form-control:focus {
	border-color: var(--bc-teal);
}

.bc-contact-form__submit {
	margin-top: 0.5rem;
	text-align: center;
}

.bc-contact-form .wpcf7-submit {
	border: none;
	cursor: pointer;
}

.bc-contact-form .wpcf7-spinner {
	margin-left: 0.75rem;
}

.bc-contact-form .wpcf7-not-valid-tip {
	font-size: 0.8125rem;
	color: #dc2626;
	margin-top: 0.25rem;
}

.bc-contact-form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.875rem 1rem;
	border-radius: var(--bc-radius);
	font-size: 0.875rem;
	border: 1px solid var(--bc-border-input);
}

.bc-contact-form .wpcf7 form.sent .wpcf7-response-output {
	background-color: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.bc-contact-form .wpcf7 form.invalid .wpcf7-response-output,
.bc-contact-form .wpcf7 form.failed .wpcf7-response-output {
	background-color: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.bc-btn {
	display: inline-block;
	background-color: var(--bc-teal);
	color: var(--bc-white);
	text-align: center;
	font-weight: 500;
	padding: 0.75rem 1.5rem;
	border-radius: var(--bc-radius);
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
	box-shadow: var(--bc-shadow-md);
	width: max-content;
}

.bc-btn:hover {
	background-color: var(--bc-teal-dark);
}

.bc-btn--full {
	width: 100%;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.bc-home-slogan {
	font-family: var(--bc-font-serif);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: var(--bc-teal-dark);
	margin: 0 0 2rem;
	padding: 0.5rem 0 1rem;
	border-bottom: 3px solid var(--bc-teal);
}

.bc-hero {
	margin-bottom: 3rem;
	background-color: var(--bc-teal-light);
	border-radius: var(--bc-radius-xl);
	overflow: hidden;
	box-shadow: var(--bc-shadow);
	display: flex;
	flex-direction: column;
}

.bc-hero__content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bc-hero__title {
	font-family: var(--bc-font-serif);
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0.25rem 0 1rem;
	line-height: 1.25;
}

.bc-hero__excerpt {
	color: var(--bc-text-muted);
	margin: 0 0 1.5rem;
}

.bc-hero__image {
	height: 16rem;
	background-size: cover;
	background-position: center;
	min-height: 340px;
}

@media (min-width: 768px) {
	.bc-hero {
		flex-direction: row;
	}

	.bc-hero__content {
		width: 50%;
		padding: 3rem;
	}

	.bc-hero__title {
		font-size: 2.25rem;
	}

	.bc-hero__image {
		width: 50%;
		height: auto;
	}
}

/* ==========================================================================
   Category Navigation
   ========================================================================== */

.category-nav {
	margin: 0 -1rem 3rem;
	overflow: visible;
}

.category-nav__inner {	
	padding: 2rem 1rem 1.5rem;
	border-radius: 0;
	overflow: visible;
}

.category-nav__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem 0.5rem;
	padding-top: 1.25rem;
	overflow: visible;
}

.category-nav-card {
	width: auto;
	background-color: var(--bc-white);
	position: relative;
	padding: 1.75rem 0.35rem 0.85rem;
	text-align: center;
	min-height: 80px;
	transition: box-shadow 0.2s;
}

.category-nav-card:hover {
	box-shadow: var(--bc-shadow-md);
}

.category-nav-card__icon-wrap {
	position: absolute;
	top: -1.25rem;
	left: 50%;
	transform: translateX(-50%);
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--cat-bg);
}

.category-nav-card__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bc-text);
	margin-top: 0.5rem;
	line-height: 1.25;
}

.category-nav-card__underline {
	display: block;
	width: 2.5rem;
	height: 2px;
	margin: 0.5rem auto 0;
	border-radius: 9999px;
	background-color: var(--cat-underline);
}

/* Category colors */
.category-nav-card--breads    { --cat-bg: #e8dff5; --cat-underline: #c4b5d4; }
.category-nav-card--breakfast { --cat-bg: #fde8c8; --cat-underline: #e8c48a; }
.category-nav-card--brownies  { --cat-bg: #fce4d6; --cat-underline: #e8b89a; }
.category-nav-card--cakes     { --cat-bg: #d6f0ee; --cat-underline: #8ecbc4; }
.category-nav-card--cookies   { --cat-bg: #fce0e0; --cat-underline: #e8a0a0; }
.category-nav-card--cupcakes  { --cat-bg: #e0f0e4; --cat-underline: #9fd4ad; }
.category-nav-card--desserts  { --cat-bg: #fce8e4; --cat-underline: #e8b0a4; }
.category-nav-card--dinner    { --cat-bg: #ebe4f5; --cat-underline: #c4b0dc; }
.category-nav-card--pies      { --cat-bg: #f5ebe0; --cat-underline: #d4b896; }

/* Category icons */
.cat-icon {
	display: block;
	width: 28px;
	height: 28px;
	background-color: #374151;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.cat-icon--bread {
  background-image: url("/wp-content/uploads/2026/06/bread-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}


.cat-icon--breakfast {
  background-image: url("/wp-content/uploads/2026/06/breakfast-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}


.cat-icon--brownies {
  background-image: url("/wp-content/uploads/2026/06/cake-gift-marry-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}


.cat-icon--cakes {
  background-image: url("/wp-content/uploads/2026/06/cake-tall-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}


.cat-icon--cookies {
  background-image: url("/wp-content/uploads/2026/06/cookies-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}

.cat-icon--cupcakes {
  background-image: url("/wp-content/uploads/2026/06/cupcakes-cupcake-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}

.cat-icon--desserts {
  background-image: url("/wp-content/uploads/2026/06/refreshment-dessert-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}

.cat-icon--dinner {
  background-image: url("/wp-content/uploads/2026/06/dinner-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}

.cat-icon--pies {
  background-image: url("/wp-content/uploads/2026/06/pies-pie-svgrepo-com.svg");
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}

@media (min-width: 640px) {
	.category-nav {
		margin-left: 0;
		margin-right: 0;
	}

	.category-nav__inner {
		border-radius: var(--bc-radius-xl);
		padding: 2rem 1.25rem 1.5rem;
	}

	.category-nav__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 1.75rem 0.75rem;
	}

	.category-nav-card__label {
		font-size: 0.75rem;
	}
}

@media (min-width: 1024px) {
	.category-nav__grid {
		grid-template-columns: repeat(9, minmax(0, 1fr));
		gap: 1rem;
	}
}

/* ==========================================================================
   Recipe Cards
   ========================================================================== */

.recipe-card {
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	overflow: hidden;
	box-shadow: var(--bc-shadow);
	border: 1px solid var(--bc-border);
	transition: box-shadow 0.3s;
}

.recipe-card__image-wrap {
	position: relative;
	overflow: hidden;
	height: 12rem;
}

.recipe-card--compact .recipe-card__image-wrap {
	height: 10rem;
}

.recipe-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.recipe-card:hover .recipe-card__image {
	transform: scale(1.03);
}

.recipe-card__like {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.7rem 0.45rem 0.85rem;
	border: 0;
	border-top-left-radius: 0.75rem;
	background-color: var(--bc-white);
	color: var(--bc-dark);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.08);
	transition: color 0.2s ease, transform 0.2s ease;
}

.recipe-card__like:hover:not(:disabled) {
	color: var(--bc-teal);
}

.recipe-card__like--active,
.recipe-card__like--active:hover {
	color: var(--bc-teal);
	cursor: default;
}

.recipe-card__like--loading {
	opacity: 0.7;
}

.recipe-card__like-icon {
	flex-shrink: 0;
}

.recipe-card__like--active .recipe-card__like-icon path {
	fill: currentColor;
	stroke: currentColor;
}

.recipe-card__like-count {
	font-variant-numeric: tabular-nums;
}

.recipe-card__body {
	padding: 1.25rem;
}

.recipe-card--compact .recipe-card__body {
	padding: 1rem;
}

.recipe-card__category {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bc-teal);
}

.recipe-card__title {
	font-family: var(--bc-font-serif);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--bc-text);
	margin: 0.25rem 0 0.5rem;
}

.recipe-card--compact .recipe-card__title {
	font-size: 1rem;
	margin-bottom: 0;
}

.recipe-card__title a:hover {
	color: var(--bc-teal-dark);
}

.recipe-card__excerpt {
	color: var(--bc-text-muted);
	font-size: 0.875rem;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.bc-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.bc-widget {
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	box-shadow: var(--bc-shadow);
	border: 1px solid var(--bc-border);
	padding: 1.5rem;
	text-align: center;
}

.bc-widget__avatar {
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	margin: 0 auto 1rem;
	object-fit: cover;
	box-shadow: var(--bc-shadow);
	outline: 4px solid var(--bc-teal-light);
}

.bc-widget__title {
	font-family: var(--bc-font-serif);
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--bc-text);
	margin: 0 0 0.25rem;
}

.bc-widget__text {
	font-size: 0.875rem;
	color: var(--bc-text-muted);
	margin: 0 0 1rem;
}

.bc-widget__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bc-teal);
}

.bc-widget__link:hover {
	color: var(--bc-teal-dark);
}

.bc-widget--dark {
	background-color: var(--bc-dark);
	color: var(--bc-white);
	text-align: left;
}

.bc-widget--dark .bc-widget__title {
	color: var(--bc-white);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.bc-widget--dark .bc-widget__text {
	color: var(--bc-gray-400);
}

.bc-newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bc-newsletter-form__input {
	width: 100%;
	padding: 0.625rem 1rem;
	background-color: var(--bc-dark-input);
	border: 1px solid var(--bc-dark-border);
	border-radius: var(--bc-radius);
	font-size: 0.875rem;
	color: var(--bc-white);
	outline: none;
}

.bc-newsletter-form__input::placeholder {
	color: var(--bc-text-faint);
}

.bc-newsletter-form__input:focus {
	border-color: var(--bc-teal);
}

/* ==========================================================================
   Single Recipe
   ========================================================================== */

.bc-recipe-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

.bc-recipe-main {
	min-width: 0;
}

.bc-recipe-sidebar {
	min-width: 0;
}

.bc-recipe-sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bc-recipe-sidebar__card {
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	box-shadow: var(--bc-shadow-md);
	border: 1px solid var(--bc-border);
	overflow: hidden;
}

.bc-recipe-sidebar__card-header {
	background: linear-gradient(135deg, var(--bc-teal) 0%, var(--bc-teal-dark) 100%);
	padding: 1.25rem 1.5rem;
	color: var(--bc-white);
}

.bc-recipe-sidebar__card-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	opacity: 0.85;
	margin-bottom: 0.25rem;
}

.bc-recipe-sidebar__category {
	display: block;
	font-family: var(--bc-font-serif);
	font-size: 1.125rem;
	font-weight: 700;
}

.bc-recipe-sidebar__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--bc-border);
}

.bc-recipe-sidebar__meta-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1rem 0.5rem;
	border-right: 1px solid var(--bc-border);
}

.bc-recipe-sidebar__meta-item:last-child {
	border-right: none;
}

.bc-recipe-sidebar__meta-icon {
	width: 18px;
	height: 18px;
	margin-bottom: 0.375rem;
	background-color: var(--bc-teal);
}

.bc-recipe-sidebar__meta-label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bc-text-faint);
	margin-bottom: 0.125rem;
}

.bc-recipe-sidebar__meta-value {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bc-text);
}

.bc-recipe-sidebar__ingredients {
	padding: 1.25rem 1.5rem 1.5rem;
}

.bc-recipe-sidebar__ingredients-title {
	font-family: var(--bc-font-serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--bc-teal-light);
}

.bc-recipe-sidebar__ingredients .bc-recipe__ingredients {
	gap: 0.625rem;
}

.bc-recipe-sidebar__ingredients .bc-recipe__ingredient {
	font-size: 0.875rem;
	line-height: 1.5;
}

.bc-recipe-sidebar__author {
	display: flex;
	align-items: center;
	gap: 1rem;
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	border: 1px solid var(--bc-border);
	padding: 1.25rem;
	box-shadow: var(--bc-shadow);
}

.bc-recipe-sidebar__author-avatar {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	outline: 3px solid var(--bc-teal-light);
}

.bc-recipe-sidebar__author-name {
	font-family: var(--bc-font-serif);
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--bc-text);
	margin: 0 0 0.25rem;
}

.bc-recipe-sidebar__author-bio {
	font-size: 0.8125rem;
	color: var(--bc-text-muted);
	margin: 0 0 0.375rem;
	line-height: 1.4;
}

.bc-recipe-sidebar__author-link {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bc-teal);
}

.bc-recipe-sidebar__author-link:hover {
	color: var(--bc-teal-dark);
}

.bc-recipe-sidebar__related {
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	border: 1px solid var(--bc-border);
	padding: 1.25rem;
	box-shadow: var(--bc-shadow);
}

.bc-recipe-sidebar__related-title {
	font-family: var(--bc-font-serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--bc-border);
}

.bc-recipe-sidebar__related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.bc-recipe-sidebar__related-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	transition: opacity 0.2s;
}

.bc-recipe-sidebar__related-link:hover {
	opacity: 0.8;
}

.bc-recipe-sidebar__related-thumb {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--bc-radius);
	object-fit: cover;
	flex-shrink: 0;
}

.bc-recipe-sidebar__related-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bc-text);
	line-height: 1.35;
}

.bc-recipe-sidebar__newsletter {
	text-align: left;
}

@media (min-width: 1024px) {
	.bc-recipe-layout {
		grid-template-columns: 1fr 22rem;
		gap: 2.5rem;
	}

	.bc-recipe-sidebar__inner {
		position: sticky;
		top: 5.5rem;
	}
}

.bc-recipe {
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	box-shadow: var(--bc-shadow);
	border: 1px solid var(--bc-border);
	padding: 1.5rem;
}

.bc-recipe__title {
	font-family: var(--bc-font-serif);
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0.25rem 0 1rem;
}

.bc-recipe__excerpt {
	color: var(--bc-text-muted);
	font-size: 1.125rem;
	margin: 0 0 1.5rem;
	line-height: 1.625;
}

.bc-recipe__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--bc-text-light);
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--bc-border);
}

.bc-recipe__meta-item {
	background-color: var(--bc-gray-50);
	padding: 0.375rem 0.75rem;
	border-radius: 0.375rem;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.bc-recipe__featured-image {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: var(--bc-radius-xl);
	margin-bottom: 2.5rem;
	box-shadow: var(--bc-shadow);
}

.bc-recipe__section {
	margin-bottom: 2.5rem;
}

.bc-recipe__section-title {
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--bc-dark);
	margin: 0 0 1.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--bc-teal);
	display: block;
	width: 100%;
}

.bc-recipe__ingredients {
	list-style: disc;
	margin: 0;
	padding-left: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.bc-recipe__ingredient {
	color: #374151;
	padding-left: 0.25rem;
}

.bc-recipe__steps,
.bc-recipe__instructions-content ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	counter-reset: bc-recipe-step;
}

.bc-recipe__step,
.bc-recipe__instructions-content ol > li {
	position: relative;
	padding-left: 3.25rem;
	margin: 0;
	color: #374151;
	line-height: 1.625;
}

.bc-recipe__step-number,
.bc-recipe__instructions-content ol > li::before {
	position: absolute;
	left: 0;
	top: 0.1rem;
	background-color: var(--bc-teal);
	color: var(--bc-white);
	font-weight: 700;
	font-size: 0.9375rem;
	border-radius: 50%;
	width: 2.25rem;
	height: 2.25rem;
}

.bc-recipe__step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.bc-recipe__instructions-content ol > li::before {
	content: counter(bc-recipe-step);
	counter-increment: bc-recipe-step;
	text-align: center;
	line-height: 2.25rem;
}

.bc-recipe__step-text {
	color: #374151;
	margin: 0;
	line-height: 1.625;
	padding-top: 0.2rem;
}

.bc-recipe__instructions-content ul {
	list-style: disc;
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.bc-recipe__instructions-content ul > li {
	padding-left: 0;
	margin-bottom: 0.5rem;
}

.bc-recipe__instructions-content ul > li::before {
	content: none;
}

.bc-recipe__instructions-content p {
	margin: 0 0 1rem;
	color: #374151;
	line-height: 1.625;
}

.bc-recipe__content {
	margin-top: 2.5rem;
	color: var(--bc-text-muted);
	line-height: 1.625;
}

/* Recipe meta icons */
.bc-icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	background-color: var(--bc-teal);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	flex-shrink: 0;
}

.bc-icon--clock {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.bc-icon--fire {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 23c-3.9 0-7-3.1-7-7 0-2.5 1.5-4.7 3.7-5.7.3 2.1 1.8 3.8 3.9 4.3-.5-2.1 0-4.4 1.5-6.1 1.2 1.5 2.8 2.5 4.6 2.9C17.2 9.5 19 12 19 15c0 3.9-3.1 7-7 7z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 23c-3.9 0-7-3.1-7-7 0-2.5 1.5-4.7 3.7-5.7.3 2.1 1.8 3.8 3.9 4.3-.5-2.1 0-4.4 1.5-6.1 1.2 1.5 2.8 2.5 4.6 2.9C17.2 9.5 19 12 19 15c0 3.9-3.1 7-7 7z'/%3E%3C/svg%3E");
}

.bc-icon--utensils {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h0a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h0a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
	.bc-recipe {
		padding: 2.5rem;
	}

	.bc-recipe__title {
		font-size: 2.25rem;
	}
}

/* ==========================================================================
   About Page
   ========================================================================== */

.bc-about {
	padding: 3rem 1rem;
	text-align: center;
}

.bc-about__avatar {
	width: 8rem;
	height: 8rem;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1.5rem;
	box-shadow: var(--bc-shadow-md);
	outline: 4px solid var(--bc-teal-ring);
}

.bc-about__title {
	font-family: var(--bc-font-serif);
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0 0 1rem;
}

.bc-about__tagline {
	color: var(--bc-teal);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.875rem;
	margin: 0 0 1.5rem;
}

.bc-about__content {
	text-align: left;
	color: var(--bc-text-muted);
	line-height: 1.625;
	max-width: 42rem;
	margin: 0 auto;
}

.bc-about__content p {
	margin: 0 0 1.5rem;
}

.bc-about__content p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.bc-page-content {
	color: var(--bc-text-muted);
	line-height: 1.625;
}

.bc-page-content p {
	margin: 0 0 1rem;
}

.bc-page-content p:last-child {
	margin-bottom: 0;
}

.bc-mt-8 {
	margin-top: 2rem;
}

/* ==========================================================================
   Interactive World Cuisine Map
   ========================================================================== */

.bc-world-map-section {
	margin-bottom: 3rem;
}

.bc-world-map-section__header {
	margin-bottom: 1.5rem;
}

.bc-world-map-section__subtitle {
	color: var(--bc-text-muted);
	margin: 0.5rem 0 0;
}

.bc-world-map-wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
}

.bc-world-map {
	position: relative;
	background: #a8c4dc;
	border-radius: var(--bc-radius-xl);
	border: 1px solid #8fb4d0;
	overflow: hidden;
	min-height: 220px;
}

.bc-world-map__viewport {
	overflow: hidden;
	touch-action: none;
}

.bc-world-map__viewport.is-zoomed {
	cursor: grab;
}

.bc-world-map__viewport.is-dragging {
	cursor: grabbing;
}

.bc-world-map__stage {
	transform-origin: 0 0;
	will-change: transform;
}

.bc-world-map__svg {
	display: block;
	width: 100%;
	height: auto;
}

.bc-world-map__zoom {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.bc-world-map__zoom-btn {
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--bc-border);
	border-radius: var(--bc-radius);
	background-color: var(--bc-white);
	color: var(--bc-text);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--bc-shadow);
	transition: background-color 0.15s, border-color 0.15s;
}

.bc-world-map__zoom-btn:hover {
	background-color: var(--bc-bg);
	border-color: var(--bc-teal);
}

.bc-world-map__zoom-btn:focus-visible {
	outline: 2px solid var(--bc-teal);
	outline-offset: 2px;
}

.bc-world-map__zoom-btn--reset {
	font-size: 0.9375rem;
}

.bc-world-map__svg path {
	fill: #d6dce3;
	stroke: #94a3b8;
	stroke-width: 0.4;
	transition: fill 0.15s ease;
}

.bc-world-map__country path,
.bc-world-map__country.mainland,
path.bc-world-map__country {
	fill: #d6dce3;
	stroke: #94a3b8;
	stroke-width: 0.4;
	transition: fill 0.15s ease;
}

.bc-world-map__country--cuisine {
	cursor: pointer;
	outline: none;
}

.bc-world-map__country--cuisine:focus-visible path,
.bc-world-map__country--cuisine:focus-visible {
	filter: brightness(1.08);
}

.bc-world-map__tooltip {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	padding: 0.35rem 0.625rem;
	background: rgb(15 23 42 / 0.92);
	color: var(--bc-white);
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: var(--bc-radius);
	white-space: nowrap;
	box-shadow: var(--bc-shadow-md);
}

.bc-world-map-panel {
	background-color: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	border: 1px solid var(--bc-border);
	box-shadow: var(--bc-shadow-md);
	padding: 1.5rem;
	text-align: center;
	transition: opacity 0.3s;
}

.bc-world-map-panel.is-updated {
	opacity: 0.7;
}

.bc-world-map-panel__flag {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--bc-shadow);
}

.bc-world-map-panel__code {
	font-size: 0.875rem;
	font-weight: 800;
	color: var(--bc-white);
	letter-spacing: 0.05em;
}

.bc-world-map-panel__country {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--bc-text-faint);
	margin: 0 0 0.25rem;
}

.bc-world-map-panel__title {
	font-family: var(--bc-font-serif);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0 0 0.75rem;
}

.bc-world-map-panel__desc {
	font-size: 0.875rem;
	color: var(--bc-text-muted);
	line-height: 1.6;
	margin: 0 0 1rem;
}

.bc-world-map-panel__count {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bc-teal);
	margin: 0 0 1.25rem;
}

.bc-world-map-panel__btn {
	width: 100%;
}

.bc-world-map-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.bc-world-map-list__item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--bc-border);
	border-radius: var(--bc-radius);
	background-color: var(--bc-white);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.8125rem;
	text-align: left;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.bc-world-map-list__item:hover,
.bc-world-map-list__item.is-active {
	border-color: var(--item-color);
	box-shadow: 0 0 0 1px var(--item-color);
}

.bc-world-map-list__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--item-color);
	flex-shrink: 0;
}

.bc-world-map-list__label {
	font-weight: 700;
	color: var(--bc-text);
	flex: 1;
}

.bc-world-map-list__country {
	font-size: 0.6875rem;
	color: var(--bc-text-faint);
	display: none;
}

.bc-world-map-page-header {
	text-align: center;
	margin-bottom: 2rem;
}

.bc-cuisine-header {
	text-align: center;
	padding: 2rem 1.5rem;
	background-color: var(--cuisine-color);
	border-radius: var(--bc-radius-xl);
	color: var(--bc-white);
	margin-bottom: 0;
}

.bc-cuisine-header__code {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	background-color: rgb(255 255 255 / 0.2);
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	margin-bottom: 0.75rem;
}

.bc-cuisine-header .bc-page-title,
.bc-cuisine-header .bc-page-subtitle {
	color: var(--bc-white);
}

.bc-cuisine-header .bc-page-subtitle {
	opacity: 0.9;
	margin-bottom: 0;
}

.bc-cuisine-back {
	color: var(--bc-teal);
	font-weight: 600;
	font-size: 0.875rem;
}

.bc-cuisine-back:hover {
	color: var(--bc-teal-dark);
}

@media (min-width: 768px) {
	.bc-world-map-wrap {
		grid-template-columns: 1.4fr 1fr;
	}

	.bc-world-map-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bc-world-map-list__country {
		display: inline;
	}
}

@media (min-width: 1024px) {
	.bc-world-map-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Pantry Recipe Generator
   ========================================================================== */

.bc-pantry__header {
	text-align: center;
	margin-bottom: 2rem;
}

.bc-pantry__step {
	margin-bottom: 2rem;
}

.bc-pantry__step-title {
	font-family: var(--bc-font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
}

.bc-pantry__notice {
	padding: 1rem 1.25rem;
	border-radius: var(--bc-radius);
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.bc-pantry__notice--warning {
	background-color: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.bc-pantry__notice code {
	display: block;
	margin-top: 0.5rem;
	padding: 0.5rem;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 0.375rem;
	font-size: 0.8125rem;
	word-break: break-all;
}

.bc-pantry__search-wrap {
	margin-bottom: 1.25rem;
}

.bc-pantry__search,
.bc-pantry__input,
.bc-pantry__textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--bc-border-input);
	border-radius: var(--bc-radius);
	font-size: 1rem;
	background: var(--bc-white);
}

.bc-pantry__textarea {
	min-height: 5.5rem;
	resize: vertical;
	line-height: 1.5;
}

.bc-pantry__search:focus,
.bc-pantry__input:focus,
.bc-pantry__textarea:focus {
	outline: 2px solid var(--bc-teal-light);
	border-color: var(--bc-teal);
}

.bc-pantry__selected {
	margin-bottom: 1.25rem;
}

.bc-pantry__selected-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bc-text-muted);
	margin-bottom: 0.5rem;
}

.bc-pantry__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bc-pantry__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border: 1px solid var(--bc-border-input);
	border-radius: 9999px;
	background: var(--bc-white);
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.15s;
}

.bc-pantry__chip:hover {
	border-color: var(--bc-teal);
	background: var(--bc-teal-light);
}

.bc-pantry__chip--active,
.bc-pantry__chip--selected {
	background: var(--bc-teal);
	border-color: var(--bc-teal);
	color: var(--bc-white);
}

.bc-pantry__chip--selected:hover {
	background: var(--bc-teal-dark);
}

.bc-pantry__category {
	margin-bottom: 1.5rem;
}

.bc-pantry__category-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--bc-text-muted);
	margin: 0 0 0.75rem;
}

.bc-pantry__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bc-pantry__optional {
	margin: 1.5rem 0;
}

.bc-pantry__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.bc-pantry__generate {
	margin-top: 0.5rem;
}

.bc-pantry__generate:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.bc-pantry__loading,
.bc-pantry__empty {
	color: var(--bc-text-light);
	text-align: center;
	padding: 2rem;
}

.bc-pantry__step--loading {
	text-align: center;
	padding: 3rem 1rem;
}

.bc-pantry__spinner {
	width: 3rem;
	height: 3rem;
	border: 3px solid var(--bc-border-input);
	border-top-color: var(--bc-teal);
	border-radius: 50%;
	margin: 0 auto 1.5rem;
	animation: bc-spin 0.8s linear infinite;
}

@keyframes bc-spin {
	to {
		transform: rotate(360deg);
	}
}

.bc-pantry__loading-text {
	font-size: 1.125rem;
	font-weight: 500;
	margin: 0 0 0.5rem;
}

.bc-pantry__loading-hint {
	color: var(--bc-text-light);
	font-size: 0.875rem;
	margin: 0;
}

.bc-pantry__preview {
	background: var(--bc-white);
	border-radius: var(--bc-radius-xl);
	overflow: hidden;
	box-shadow: var(--bc-shadow-md);
	margin-bottom: 1.5rem;
}

.bc-pantry__preview-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.bc-pantry__preview-body {
	padding: 1.5rem;
}

.bc-pantry__preview-title {
	font-family: var(--bc-font-serif);
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.bc-pantry__preview-excerpt {
	color: var(--bc-text-muted);
	margin: 0 0 1rem;
}

.bc-pantry__preview-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--bc-text-light);
	margin-bottom: 1.5rem;
}

.bc-pantry__preview-meta span::before {
	content: "•";
	margin-right: 0.5rem;
	color: var(--bc-teal);
}

.bc-pantry__preview-meta span:first-child::before {
	content: none;
	margin: 0;
}

.bc-pantry__preview-columns {
	display: grid;
	gap: 1.5rem;
}

.bc-pantry__preview-columns h4 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.bc-pantry__preview-columns ul,
.bc-pantry__preview-columns ol {
	margin: 0;
	padding-left: 1.25rem;
}

.bc-pantry__preview-columns li {
	margin-bottom: 0.375rem;
	line-height: 1.5;
}

.bc-pantry__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.bc-pantry__btn-secondary {
	background: none;
	border: 1px solid var(--bc-border-input);
	padding: 0.75rem 1.5rem;
	border-radius: var(--bc-radius);
	cursor: pointer;
	font-size: 0.9375rem;
	color: var(--bc-text-muted);
	transition: border-color 0.15s;
}

.bc-pantry__btn-secondary:hover {
	border-color: var(--bc-teal);
	color: var(--bc-teal);
}

.bc-pantry__success {
	text-align: center;
	padding: 3rem 1rem;
}

.bc-pantry__success-icon {
	width: 4rem;
	height: 4rem;
	background: var(--bc-teal-light);
	color: var(--bc-teal);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 700;
	margin: 0 auto 1.5rem;
}

.bc-pantry__success-title {
	font-family: var(--bc-font-serif);
	font-size: 1.75rem;
	margin: 0 0 0.75rem;
}

.bc-pantry__success-text {
	color: var(--bc-text-muted);
	margin: 0 0 1.5rem;
}

.bc-pantry__success .bc-btn {
	margin-bottom: 1rem;
}

.bc-pantry__error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 1rem 1.25rem;
	border-radius: var(--bc-radius);
	margin-top: 1rem;
}

@media (min-width: 768px) {
	.bc-pantry__preview-columns {
		grid-template-columns: 1fr 1fr;
	}
}
