/**
 * Frontend Styles for Recipe Plugin
 */

/* Recipe Card */
.cwv-recipe-card {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 0;
}

/* Recipe Meta Grid */
.cwv-recipe-meta {
	background: #f8f8f8;
	border-radius: 8px;
	padding: 2rem;
	margin-bottom: 3rem;
}

.cwv-recipe-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.5rem;
}

.cwv-recipe-meta-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cwv-meta-label {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #666;
	font-weight: 600;
}

.cwv-meta-value {
	font-size: 1.25rem;
	font-weight: 600;
	color: #2d2d2d;
}

/* Recipe Content */
.cwv-recipe-content {
	margin-bottom: 3rem;
	font-size: 1.125rem;
	line-height: 1.8;
}

/* Recipe Sections */
.cwv-recipe-section {
	margin-bottom: 3rem;
}

.cwv-recipe-section h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	color: #2d2d2d;
	border-bottom: 3px solid #3a4f3f;
	padding-bottom: 0.5rem;
}

/* Ingredients List */
.cwv-ingredients-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cwv-ingredients-list li {
	padding: 0.75rem 0;
	padding-left: 2rem;
	position: relative;
	border-bottom: 1px solid #e8e3db;
	font-size: 1.125rem;
}

.cwv-ingredients-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #3a4f3f;
	font-weight: bold;
}

.cwv-ingredients-list li:last-child {
	border-bottom: none;
}

/* Instructions */
.cwv-instructions-content {
	font-size: 1.125rem;
	line-height: 1.8;
}

.cwv-instructions-content p {
	margin-bottom: 1.5rem;
}

/* Featured Products Section */
.cwv-featured-products {
	background: #f8f8f8;
	border-radius: 8px;
	padding: 2rem;
	margin-top: 4rem;
}

.cwv-featured-products h2 {
	border-bottom-color: #d4a24a;
}

.cwv-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.cwv-product-card {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s, box-shadow 0.2s;
}

.cwv-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cwv-product-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.cwv-product-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f0f0f0;
}

.cwv-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.cwv-product-card:hover .cwv-product-image img {
	transform: scale(1.05);
}

.cwv-product-info {
	padding: 1.5rem;
}

.cwv-product-title {
	font-size: 1.125rem;
	margin: 0 0 0.75rem 0;
	color: #2d2d2d;
	font-weight: 600;
}

.cwv-product-price {
	font-size: 1.25rem;
	color: #3a4f3f;
	font-weight: 700;
}

.cwv-product-actions {
	padding: 0 1.5rem 1.5rem;
}

.cwv-product-actions .button,
.cwv-product-actions .added_to_cart {
	width: 100%;
	text-align: center;
	display: block;
}

/* Recipe Archive/Grid */
.cwv-recipe-excerpt {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #e8e3db;
}

@media (min-width: 768px) {
	.cwv-recipe-excerpt {
		grid-template-columns: 300px 1fr;
	}
}

.cwv-recipe-thumbnail {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
}

.cwv-recipe-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.cwv-recipe-excerpt:hover .cwv-recipe-thumbnail img {
	transform: scale(1.05);
}

.cwv-recipe-summary {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cwv-recipe-title {
	margin: 0;
	font-size: 2rem;
}

.cwv-recipe-title a {
	color: #2d2d2d;
	text-decoration: none;
	transition: color 0.2s;
}

.cwv-recipe-title a:hover {
	color: #3a4f3f;
}

.cwv-recipe-quick-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.875rem;
	color: #666;
}

.cwv-quick-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cwv-recipe-excerpt-text {
	font-size: 1rem;
	line-height: 1.6;
	color: #555;
}

.cwv-recipe-read-more {
	align-self: flex-start;
	margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.cwv-recipe-meta-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cwv-products-grid {
		grid-template-columns: 1fr;
	}

	.cwv-recipe-section h2 {
		font-size: 1.5rem;
	}
}
