/**
 * @package Modern Food Menu
 * @author Lineweb.gr - Andrew Matia
 * @copyright 2025 Lineweb.gr - Andrew Matia
 */
:root {
	--mfm-primary-color: var(--mfm-primary, #f97316);
	--mfm-secondary-color: #333;
	--mfm-bg-color: #f9f9f9;
	--mfm-card-bg: #fff;
	--mfm-text-color: #555;
	--mfm-border-radius: 12px;
	--mfm-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--mfm-transition: all 0.3s ease;
}

.mfm-menu-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Filter Buttons */
.mfm-filter-nav {
	text-align: center;
	margin-bottom: 40px;
}

.mfm-filter-btn {
	background: transparent;
	border: 2px solid var(--mfm-primary-color);
	color: var(--mfm-primary-color);
	padding: 8px 20px;
	margin: 0 5px 10px;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	transition: var(--mfm-transition);
}

.mfm-filter-btn:hover,
.mfm-filter-btn.active {
	background: var(--mfm-primary-color) !important;
	color: #fff !important;
	border-color: var(--mfm-primary-color) !important;
}

/* Grid Layout */
.mfm-layout-grid .mfm-menu-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.mfm-menu-item {
	background: var(--mfm-card-bg);
	border-radius: var(--mfm-border-radius);
	overflow: hidden;
	box-shadow: var(--mfm-shadow);
	transition: var(--mfm-transition);
	opacity: 1;
	transform: scale(1);
}

.mfm-menu-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.mfm-menu-item.mfm-hidden {
	display: none;
}

.mfm-item-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.mfm-item-content {
	padding: 20px;
}

.mfm-item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 10px;
}

.mfm-item-title {
	margin: 0;
	font-size: 1.25rem;
	color: var(--mfm-secondary-color);
}

.mfm-item-price {
	font-weight: bold;
	color: var(--mfm-primary-color);
	font-size: 1.2rem;
}

.mfm-item-description {
	color: var(--mfm-text-color);
	font-size: 0.95rem;
	margin-bottom: 15px;
	line-height: 1.5;
}

.mfm-item-ingredients {
	font-size: 0.85rem;
	color: #777;
	font-style: italic;
	margin-bottom: 15px;
}

.mfm-item-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #eee;
	padding-top: 15px;
}

.mfm-calories {
	font-size: 0.85rem;
	color: #888;
	display: flex;
	align-items: center;
	gap: 5px;
}

.mfm-dietary-badges {
	display: flex;
	gap: 5px;
}

.mfm-badge {
	font-size: 0.7rem;
	padding: 3px 8px;
	border-radius: 4px;
	color: #fff;
	text-transform: uppercase;
	font-weight: bold;
}

.mfm-badge-vegan {
	background-color: #4CAF50;
}

.mfm-badge-vegetarian {
	background-color: #8BC34A;
}

.mfm-badge-gluten_free {
	background-color: #FFC107;
	color: #333;
}

.mfm-badge-spicy {
	background-color: #F44336;
}

.mfm-badge-nut_free {
	background-color: #03A9F4;
}

/* List Layout */
.mfm-layout-list .mfm-menu-items {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mfm-layout-list .mfm-menu-item {
	display: flex;
	flex-direction: row;
}

.mfm-layout-list .mfm-item-image {
	flex: 0 0 200px;
}

.mfm-layout-list .mfm-item-image img {
	height: 100%;
}

@media (max-width: 768px) {
	.mfm-layout-list .mfm-menu-item {
		flex-direction: column;
	}

	.mfm-layout-list .mfm-item-image {
		flex: 0 0 auto;
	}

	.mfm-layout-list .mfm-item-image img {
		height: 200px;
	}
}

/* --- App View Styles --- */
/* Most styles are now handled by Tailwind CSS in the template file. */
/* We keep this file for the Shortcode view and any specific overrides. */

/* Modal */
.mfm-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	align-items: flex-end;
	/* Bottom sheet style */
}

.mfm-modal.open {
	display: flex;
}

.mfm-modal-content {
	background: #fff;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}

	to {
		transform: translateY(0);
	}
}

.mfm-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.mfm-modal-image {
	height: 250px;
	background-size: cover;
	background-position: center;
}

.mfm-modal-body {
	padding: 20px;
}

.mfm-modal-title {
	margin: 0 0 10px;
	font-size: 1.5rem;
}

.mfm-modal-desc {
	color: #666;
	line-height: 1.6;
	margin-bottom: 20px;
}

.mfm-modal-extras-wrapper {
	margin-bottom: 20px;
	border-top: 1px solid #eee;
	padding-top: 15px;
}

.mfm-modal-extras-wrapper h3 {
	font-size: 1.3rem;
	margin-bottom: 10px;
}

.mfm-extra-option {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f9f9f9;
}

.mfm-modal-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.mfm-modal-price {
	font-size: 1.5rem;
	font-weight: bold;
}

.mfm-add-btn {
	background: #333;
	color: #fff;
	border: none;
	padding: 12px 30px;
	border-radius: 30px;
	font-weight: bold;
	font-size: 1rem;
	cursor: pointer;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
	display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
}