/* ==================================================
   Recipe catalogue / filters
   ================================================== */

/* Sidebar */
.side-nav {
	height: 100%;
	width: min(20%, 200px);
	position: fixed;
	z-index: 1;
	box-sizing: border-box;
	overflow-y: auto;
	background-color: #884;
	color: white;
	font-family: "Autour One", "Brush Script MT", sans-serif;
}

/* Sidebar title */
.side-nav-title {
	margin: 0;
	padding: 0.8em 1em;
	color: white;
	font-size: min(3vh, 3vw, 1.5em);
	font-weight: 800;
	border-bottom: 2px solid #C4B923;
}

/* Filter sections */
.filter-section {
	box-sizing: border-box;
	width: 100%;
	padding: 0.8em 1em;
	border-bottom: 2px dotted rgba(255, 255, 255, 0.5);
}

	/* Filter titles */
	.filter-section > label,
	.filter-dropdown summary {
		font-size: 0.85em;
		font-weight: 600;
	}

/* Recipes spacing */
#recipes-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Search */
#recipe-search {
	box-sizing: border-box;
	width: 100%;
	margin-top: 0.6em;
	padding: 0.55em 0.65em;
	border: none;
	border-radius: 6px;
	background-color: #fbfcd2;
	font-family: inherit;
	font-size: 0.75em;
}

	#recipe-search:focus {
		outline: 2px solid #D6CA33;
	}

/* Dropdown filters */
.filter-dropdown summary {
	cursor: pointer;
	user-select: none;
	transition: color 0.15s ease;
}

	.filter-dropdown summary:hover {
		color: #f2e75a;
	}

/* Content inside dropdown */
.filter-options {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin-top: 0.7em;
}

	/* Individual checkbox rows */
	.filter-options label {
		display: flex;
		align-items: center;
		gap: 0.5em;
		font-size: 0.75em;
		font-weight: 400;
		cursor: pointer;
		transition: color 0.15s ease;
	}

		.filter-options label:hover {
			color: #f2e75a;
		}

	/* Checkboxes */
	.filter-options input[type="checkbox"] {
		margin: 0;
		cursor: pointer;
		accent-color: #D6CA33;
	}

/* Time slider */
.time-filter {
	box-sizing: border-box;
	width: 100%;
	padding: 0.8em 1em;
	color: white;
	border-bottom: 2px dotted rgba(255, 255, 255, 0.5);
}

	.time-filter label {
		display: block;
		margin-bottom: 0.5em;
		font-size: 0.85em;
		font-weight: 600;
	}

#time-slider {
	box-sizing: border-box;
	width: 100%;
	cursor: pointer;
	accent-color: #D6CA33;
}

#time-value {
	display: block;
	margin-top: 0.4em;
	text-align: center;
	font-size: 0.75em;
}

/* Clear filters button */
.clear-filters {
	box-sizing: border-box;
	width: calc(100% - 2em);
	margin: 1em;
	padding: 0.7em 0.5em;
	border: none;
	border-radius: 6px;
	background-color: #f2e75a;
	color: #222;
	font-family: inherit;
	font-size: 0.75em;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

	.clear-filters:hover {
		background-color: #fff17a;
		transform: translateY(-1px);
	}

	.clear-filters:active {
		transform: translateY(0);
	}

/* Main section */
.main-content {
	margin-left: min(20%, 200px);
	padding: 10px;
}

.recipe-box {
	display: grid;
	/* Approximately 1/5 image, 4/5 information */
	grid-template-columns: 1fr 4fr;
	width: 100%;
	box-sizing: border-box;
	background-color: #FCE3C0;
	border: 5px solid #FFC269;
	border-radius: 10px;
	overflow: hidden;
}

/* Img */
.recipe-image {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
}

	.recipe-image img {
		width: 100%;
		aspect-ratio: 1/1;
		object-fit: cover;
		display: block;
		border-radius: 8px;
	}

/* Info */
.recipe-info {
	padding: 1em;
	display: flex;
	flex-direction: column;
	gap: 0.7em;
	min-width: 0;
}

/* Title */
.recipe-header h2 {
	margin: 0;
	font-family: "Autour One", sans-serif;
	font-size: 1.5em;
}

/* Time / servings / difficulty */
.recipe-meta {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	margin-top: 0.3em;
	font-size: 0.9em;
}

/* Description */
.recipe-description {
	margin: 0;
}

/* Ingredients */
.recipe-ingredients {
	display: flex;
	gap: 0.4em;
	flex-wrap: wrap;
}

/* Bottom section */
.recipe-footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
}

/* Allergens */
.recipe-allergens {
	display: flex;
	gap: 0.5em;
	align-items: center;
}


/* No results */
.no-results {
	padding: 3em 1em;
	text-align: center;
	font-family: "Autour One", sans-serif;
}

	.no-results h2 {
		margin-bottom: 0.5em;
	}

	.no-results p {
		margin: 0;
		color: #666;
	}
