/**
 * Weeknight Meal Plan Block Styles
 * Styles for the Weeknight Meal Plan custom block
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Container */
.weeknight-meal-plan-block {
	width: 100%;
	margin: 0 auto;
}

.weeknight-meal-plan-container {
	display: flex;
	gap: 0;
	align-items: flex-start;
	min-height: 600px;
}

/* Left Side: Stacked Cards */
.weeknight-meal-plan-cards {
	position: relative;
	flex: 0 0 50%;
	min-width: 0;
	min-height: 600px;
}

.weeknight-meal-plan-card {
	position: absolute;
	width: 382px;
	background-color: #fff;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	transform-origin: top left;
	left: 0;
	right: 0;
	margin: auto;
	height: 512px;
	overflow: hidden;
	border-radius: 25px;
}
.weeknight-meal-plan-card:hover {
	animation: verticalBounce 0.6s ease;
}


/* Day-specific background colors and stacking order */
.weeknight-meal-plan-card.day-monday {
	background-color: #FFF7E4; /* Light beige/cream */
	color: var(--wp--preset--color--smoked, #6D240B);
	z-index: 5;
	top: 224px;
	left: 0;
}

.weeknight-meal-plan-card.day-tuesday {
	background-color: #A2BEFF; /* Light blue/lavender */
	color: var(--wp--preset--color--smoked, #6D240B);
	z-index: 4;
	top: 178px;
	left: 0;
}

.weeknight-meal-plan-card.day-wednesday {
	background-color: #5B66C6; /* Medium purple */
	color: #FFF7E4;
	z-index: 3;
	top: 132px;
	left: 0;
}

.weeknight-meal-plan-card.day-thursday {
	background-color: #FFC856; /* Mustard yellow */
	color: var(--wp--preset--color--smoked, #6D240B);
	z-index: 2;
	top: 87px;
	left: 0;
}

.weeknight-meal-plan-card.day-friday {
	background-color: #6D240B; /* Dark brown */
	color: #FFF7E4;
	z-index: 1;
	top: 41px;
	left: 0;
}
.weeknight-meal-plan-card.day-friday .expand-icon-plus, .weeknight-meal-plan-card.day-wednesday .expand-icon-plus {
	color: #FFF7E4;
	border:1.5px solid #FFF7E4;
}
.weeknight-meal-plan-card.day-wednesday .weeknight-meal-plan-category, .weeknight-meal-plan-card.day-friday .weeknight-meal-plan-category{
	color: #FFF7E4!important;
	border:1.5px solid #FFF7E4!important;
}
.weeknight-meal-plan-card.day-wednesday .weeknight-meal-plan-card-title, .weeknight-meal-plan-card.day-wednesday a, .weeknight-meal-plan-card.day-wednesday .weeknight-meal-plan-card-read-button {
	color: #FFF7E4!important;
}
.weeknight-meal-plan-card.day-friday .weeknight-meal-plan-card-title, .weeknight-meal-plan-card.day-friday a, .weeknight-meal-plan-card.day-friday .weeknight-meal-plan-card-read-button {
	color: #FFF7E4!important;
}

.weeknight-meal-plan-card.day-wednesday .weeknight-meal-plan-card-read-button,
.weeknight-meal-plan-card.day-friday .weeknight-meal-plan-card-read-button {
	border-color: #FFF7E4;
}

.weeknight-meal-plan-card.day-wednesday .weeknight-meal-plan-card-read-button:hover,
.weeknight-meal-plan-card.day-wednesday .weeknight-meal-plan-card-read-button:focus,
.weeknight-meal-plan-card.day-friday .weeknight-meal-plan-card-read-button:hover,
.weeknight-meal-plan-card.day-friday .weeknight-meal-plan-card-read-button:focus {
	background-color: #FFF7E4;
	color: var(--SMOKED, #6D240B) !important;
	border-color: #FFF7E4;
}

/* Active card (moved to front) - must override all day-specific z-index values */
.weeknight-meal-plan-card.is-active {
	z-index: 100 !important;
	position: absolute;
}

/* Card Header (Collapsed State) */
.weeknight-meal-plan-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px 0;
	min-height: auto;
	position: relative;
}

/* When a card above is active, move day name to bottom */
.weeknight-meal-plan-card.card-above-active {
	display: flex;
	flex-direction: column;
}

.weeknight-meal-plan-card.card-above-active .weeknight-meal-plan-card-header {
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 0 15px 15px;
	margin-top: auto;
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	width: 100%;
}

.weeknight-meal-plan-card.card-above-active .weeknight-meal-plan-day-name {
	margin-top: 0;
	margin-bottom: 0;
	align-self: flex-start;
}

.weeknight-meal-plan-card.card-above-active .weeknight-meal-plan-expand-icon {
	align-self: flex-end;
	margin-bottom: 0;
}

.weeknight-meal-plan-day-name {
    margin: 4px 0 0;
    font-family: "Google Sans Flex";
    font-size: 15px;
    font-style: normal;
    font-weight: 800;
    line-height: 140%;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.weeknight-meal-plan-expand-icon {
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	background: transparent;
	padding: 0;
}


.expand-icon-plus {
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--smoked, #6D240B);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	padding: 0;
	border: 1.5px solid var(--SMOKED, #6D240B);
	background-color: transparent;
}

/* Hide categories by default, show when card is active */
.weeknight-meal-plan-categories {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
}

.weeknight-meal-plan-card.is-active .weeknight-meal-plan-categories {
	display: flex;
	flex-direction: row;
}

.weeknight-meal-plan-card.is-active .expand-icon-plus {
	display: none;
}

.weeknight-meal-plan-category {
    border-radius: 50px;
    border: 1.5px solid var(--SMOKED, #6D240B);
    display: flex;
    padding: 1px 9px 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: capitalize;
    letter-spacing: 0;
    color: var(--SMOKED, #6D240B);
    font-family: "Google Sans Flex";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0;
}

/* Card Content (Expanded State) */
.weeknight-meal-plan-card-content {
	position: absolute;
	top: 37px;
	left: 0;
	width: 100%;
	height: 462px;
	padding: 11px 15px;
	overflow: hidden;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.weeknight-meal-plan-card.is-active .weeknight-meal-plan-card-content {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.weeknight-meal-plan-card-image {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 30 / 26;
}

.weeknight-meal-plan-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.weeknight-meal-plan-card-body {
	padding-top: 5px;
}

.weeknight-meal-plan-card-title {
    margin: 0 0 5px;
    color: var(--SMOKED, #6D240B);
    text-align: center;
    font-family: "Perfectly Nineties";
    font-size: 26px;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
    letter-spacing: 0.52px;
    font-family: "Perfectly Nineties";
    font-size: 26px;
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0.52px;
}

.weeknight-meal-plan-card-title a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.weeknight-meal-plan-card-title a:hover,
.weeknight-meal-plan-card-title a:focus {
	opacity: 0.8;
}

.weeknight-meal-plan-card-excerpt {
	margin-top: 0.5rem;
	text-align: center;
}

.weeknight-meal-plan-card-read-button {
	display: inline-block;
		margin: 10px auto 0;
		padding: 10px 18px;
		color: var(--SMOKED, #6D240B);
		text-align: center;
		text-decoration: none;
		font-family: "Google Sans Flex", var(--wp--preset--font-family--google-sans-flex, sans-serif);
		font-size: 14px;
		font-style: normal;
		font-weight: 500;
		line-height: 140%;
		letter-spacing: 0.34px;
		border: 1.5px solid var(--SMOKED, #6D240B);
		border-radius: 999px;
		background: transparent;
		transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.weeknight-meal-plan-card-read-button:hover,
.weeknight-meal-plan-card-read-button:focus {
	opacity: 0.9;
	background-color: var(--SMOKED, #6D240B);
	color: var(--LEMON-LIGHT, #FEFAC8);
}

/* Right Side: Promotional Section */
.weeknight-meal-plan-promo {
	flex: 1;
	position: relative;
	min-height: 775px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: black;
}

.weeknight-meal-plan-promo-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.weeknight-meal-plan-promo-content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0;
	width: 100%;
	max-width: 500px;
}

.weeknight-meal-plan-main-title {
	margin: 0 0 86px;
	color: var(--LEMON-LIGHT, #FEFAC8);
	text-align: center;
	font-family: "Google Sans Flex";
	font-size: 65px;
	font-style: normal;
	font-weight: 900;
	line-height: 105%; /* 68.25px */
	text-transform: uppercase;
	letter-spacing: -0.2rem;
	position: relative;
	z-index: 2;
}

.weeknight-meal-plan-highlight-section {
	display: block;
	margin-top: 0;
}

/* Half Circle Shape for Script Title and Highlight Text */
.weeknight-meal-plan-highlight-section::before {
	content: '';
	position: absolute;
	bottom: 42px;
	right: -14px;
	width: 202px;
	border-radius: 280px 280px 0 0;
	background-color: #FFC856;
	z-index: 1;
	opacity: 1;
2
	width: 201.23px;
	height: 100px;
	transform: rotate(-8deg);
}

.weeknight-meal-plan-script-title {
	z-index: 0;
	color: var(--LEMON-LIGHT, #FEFAC8);
	font-family: Primed;
	font-size: 65px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%; /* 65px */
	transform: rotate(3.201deg);
	position: absolute;
	bottom: -12px;
	left: 48px;
	letter-spacing: 0;
	font-style: inherit;
}

.weeknight-meal-plan-highlight-text {
	padding: 0;
	z-index: 1;
	max-width: 260px;
	margin-left: auto;
	margin-right: auto;
	color: var(--SMOKED, #6D240B);
	text-align: center;
/* Sticker */
	font-family: "Young Serif";
	font-size: 23px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%; /* 23px */
	letter-spacing: -0.92px;
	width: 154px;
	position: absolute;
	bottom: 56px;
	right: 6px;
	transform: rotate(-8deg);
	z-index: 1;
	background-color: #ffc756;
}

/* Responsive Design */
@media (max-width: 1080px) {
	.weeknight-meal-plan-container {
		flex-direction:column-reverse;
	}
	.weeknight-meal-plan-promo {
		width:100%;
	}
	.weeknight-meal-plan-cards {
	    width: 100%;
	    min-height: 800px;
	}
}

@media (max-width: 768px) {
	.weeknight-meal-plan-promo {
		min-height:500px;
	}
}

@media (max-width: 500px) {
	.weeknight-meal-plan-promo {
	min-height: 400px;
	}
	.weeknight-meal-plan-main-title {
			font-size: 42px;
				letter-spacing: 1px;
				margin: 0 0 60px;
	}
	.weeknight-meal-plan-script-title {
	font-size: 42px;
	bottom: -20px;
	left: 0;
	}
	.weeknight-meal-plan-highlight-section::before {
		width: 140px;
		height: 70px;
		border-radius: 200px 200px 0 0;
		bottom: 22px;
		right: -5px;
	}
	.weeknight-meal-plan-promo-content {
	max-width:340px;
	}
	.weeknight-meal-plan-highlight-text {
	max-width: 96px;
	font-size: 16px;
	padding: 0 10px;
	bottom: 31px;
	right: 15px;
	}
	.weeknight-meal-plan-card-read-button {
		font-size: 15px;
		padding: 8px 14px;
	}
}


/* Screen Reader Text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

