/**
 * Frontend Stylesheet for Meşe Ateşi Menü Plugin
 * Developer: Yıldız Digital (June 2026)
 */

/* Root Wrapper */
.mese-menu-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1e1d23;
}

/* Category Headers */
.mese-menu-category-section {
	margin-bottom: 50px;
}

.mese-menu-category-title {
	font-size: 26px;
	font-weight: 700;
	color: #1e1d23;
	margin: 0 0 30px 0;
	padding: 0;
	position: relative;
	display: flex;
	align-items: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mese-menu-category-title span {
	background: #ffffff;
	padding-right: 20px;
	position: relative;
	z-index: 2;
}

.mese-menu-category-title::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #ffc222 0%, #00a149 100%);
	z-index: 1;
	border-radius: 2px;
}

/* Grid Layouts */
.mese-menu-products-grid {
	display: grid;
	gap: 30px;
}

/* Columns Config based on shortcode attribute */
.cols-2 .mese-menu-products-grid {
	grid-template-columns: repeat(2, 1fr);
}

.cols-3 .mese-menu-products-grid {
	grid-template-columns: repeat(3, 1fr);
}

.cols-4 .mese-menu-products-grid {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.cols-3 .mese-menu-products-grid,
	.cols-4 .mese-menu-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mese-menu-category-title {
		font-size: 22px;
	}
}

@media (max-width: 600px) {
	.cols-2 .mese-menu-products-grid,
	.cols-3 .mese-menu-products-grid,
	.cols-4 .mese-menu-products-grid {
		grid-template-columns: 1fr;
	}
	.mese-menu-category-title {
		font-size: 20px;
	}
}

/* Product Card */
.mese-menu-product-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
	border: 1px solid #f1f5f9;
	transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.mese-menu-product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(30, 29, 35, 0.08);
	border-color: #e2e8f0;
}

/* Image Wrap & Zoom Hover Effect */
.mese-menu-product-image-wrap {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: #f8fafc;
	position: relative;
}

.mese-menu-product-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: block;
}

.mese-menu-product-card:hover .mese-menu-product-image-wrap img {
	transform: scale(1.08);
}

/* Product Details */
.mese-menu-product-info {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.mese-menu-product-title {
	font-size: 17px;
	font-weight: 700;
	color: #1e1d23;
	margin: 0 0 14px 0;
	padding: 0;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.mese-menu-product-card:hover .mese-menu-product-title {
	color: #00a149;
}

/* Price List Styling (Dashed rows) */
.mese-menu-product-prices {
	border-top: 1px solid #f1f5f9;
	padding-top: 12px;
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mese-menu-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	line-height: 1.4;
}

.mese-menu-portion-label {
	font-weight: 500;
	color: #64748b;
	white-space: nowrap;
}

.mese-menu-price-separator {
	flex-grow: 1;
	height: 1px;
	border-bottom: 1px dotted #cbd5e1;
	margin: 0 12px;
	align-self: flex-end;
	margin-bottom: 4px;
}

.mese-menu-price-value {
	font-weight: 700;
	color: #d35400;
	white-space: nowrap;
	font-size: 14px;
}

/* Credits Section */
.mese-menu-credits {
	margin-top: 40px;
	text-align: center;
	font-size: 11px;
	color: #cbd5e1;
	border-top: 1px solid #f1f5f9;
	padding-top: 16px;
}

.mese-menu-credits strong {
	color: #94a3b8;
}

.mese-menu-empty {
	text-align: center;
	padding: 40px;
	color: #64748b;
	font-style: italic;
	border: 1px dashed #e2e8f0;
	border-radius: 12px;
}
