/**
 * Recipe Card Styles
 * Clase base: .lcm-recipe-card
 * Compatible con Kadence Theme - no override de variables del tema
 */

/* =========================================
   CARD CONTAINER
   ========================================= */
.lcm-recipe-card {
	font-family: inherit;
	/* respeta la tipografía de Kadence */
	color: inherit;
	max-width: 860px;
	margin: 0 auto 2rem auto;
	line-height: 1.6;
}

/* =========================================
   HEADER: TÍTULO + METADATOS
   ========================================= */
.lcm-recipe-header {
	margin-bottom: 1.5rem;
}

/*.lcm-recipe-intro {
	font-size: 1.05rem;
	color: #555;
	margin-bottom: 1rem;
	line-height: 1.8;
}*/

/* Tags Visibles */
/*.lcm-recipe-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.lcm-tag {
	background: #f1f1f1;
	color: #333;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 4px;
	text-transform: none;
	border: 1px solid #ddd;
	transition: opacity 0.2s ease;
	text-decoration: none;
}

.lcm-tag:hover {
	opacity: 0.7;
	color: #000;
}*/

/* Meta bar: tiempos y raciones */
.lcm-recipe-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	/*background: #f8f8f8;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;*/
}

/*.lcm-recipe-meta-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 80px;
	text-align: center;
}

.lcm-recipe-meta-item .lcm-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	margin-bottom: 0.2rem;
}

.lcm-recipe-meta-item .lcm-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: #222;
}*/

/* =========================================
   ESCALADOR DE RACIONES
   ========================================= */
/*.lcm-servings-scaler {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 2rem;
	padding: 0.75rem 1rem;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	width: fit-content;
}

.lcm-servings-scaler label {
	font-size: 0.85rem;
	color: #555;
	margin: 0;
}*/

.lcm-servings-scaler button {
	/*background: #222;
	color: #fff;
	border: none;*/
	border-radius: 50%;
	width: 28px;
	height: 28px;
	/*font-size: 1.1rem;
	line-height: 1;*/
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

/*.lcm-servings-scaler button:hover {
	background: #444;
}*/

.lcm-servings-scaler #lcm-servings-count {
	/*font-weight: 700;
	font-size: 1.15rem;*/
	min-width: 2ch;
	text-align: center;
}

/* =========================================
   ACCIONES (ESCALADOR + IMPRIMIR)
   ========================================= */
.lcm-recipe-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.lcm-recipe-actions .lcm-servings-scaler {
	margin-bottom: 0;
	/* reset margin when in actions container */
}

/*.lcm-print-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	color: #222;
	border: 1px solid #ddd;
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.lcm-print-btn:hover {
	background: #f5f5f5;
	border-color: #bbb;
}

.lcm-print-btn svg {
	color: #555;
}*/

/* =========================================
   SECCIONES: GRID LAYOUT
   ========================================= */
.lcm-recipe-body {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

@media (max-width: 640px) {
	.lcm-recipe-body {
		grid-template-columns: 1fr;
	}
}

/*.lcm-recipe-section h3 {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #444;
	border-bottom: 2px solid #222;
	padding-bottom: 0.4rem;
	margin-bottom: 1rem;
}*/

/* =========================================
   INGREDIENTES CON CHECKBOXES
   ========================================= */
.lcm-ingredients-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lcm-ingredients-list li {
	/*display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.4rem 0;*/
	border-bottom: 1px solid #f0f0f0;
	/*font-size: 0.95rem;*/
	cursor: pointer;
	user-select: none;
}

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

.lcm-ingredients-list li input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: #222;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.lcm-ingredients-list li.checked {
	opacity: 0.45;
	text-decoration: line-through;
}

/* Texto por defecto de los ingredientes que actúan como tooltip si pasas el ratón por los multiplicadores ocultos */
.lcm-ingredient-amount {
	font-weight: 600;
	white-space: nowrap;
}

/* ==========================================================================
   TEXT TO SPEECH (VOZ) STYLES
   ========================================================================== */
.lcm-speak-btn.reading {
	color: #3182ce;
	border-color: #3182ce;
	background-color: #ebf8ff;
}

.lcm-speak-btn.reading svg {
	animation: pulse-read 2s infinite;
}

@keyframes pulse-read {
	0% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.6;
		transform: scale(1.1);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.lcm-ingredients-list li.lcm-reading-active,
.lcm-steps-list li.lcm-reading-active {
	background-color: #fefcbf;
	border-color: #ecc94b;
	border-radius: 6px;
	padding: 10px;
	margin-left: -10px;
	margin-right: -10px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lcm-steps-list li.lcm-reading-active .lcm-step-text {
	font-weight: 500;
}

/* ==========================================================================
   FAVORITOS STYLES
   ========================================================================== */
.lcm-favorite-btn {
	transition: all 0.3s ease;
}

.lcm-favorite-btn.active {
	color: #e53e3e;
	border-color: #feb2b2;
	background-color: #fff5f5;
}

.lcm-favorite-btn.active svg {
	fill: #e53e3e;
	animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-pop {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.4);
	}

	100% {
		transform: scale(1);
	}
}

#lcm-favorites-container {
	min-height: 200px;
}

.lcm-no-favorites {
	background: #f7fafc;
	border: 2px dashed #e2e8f0;
	border-radius: 12px;
}

/* =========================================
   PASOS
   ========================================= */
.lcm-steps-list {
	list-style: none;
	counter-reset: step-counter;
	margin: 0;
	padding: 0;
}

.lcm-steps-list li {
	counter-increment: step-counter;
	display: flex;
	flex-direction: row;
	gap: 1rem;
	margin-bottom: 2rem;
	/*font-size: 0.95rem;
	line-height: 1.6;*/
}

.lcm-steps-list li::before {
	content: counter(step-counter);
	background: #222;
	color: #fff;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	min-width: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 700;
	margin-top: 2px;
	flex-shrink: 0;
}

.lcm-step-content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex: 1;
}

.lcm-step-image {
	width: 100%;
	margin-top: 0.5rem;
}

.lcm-step-img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	display: block;
}

.lcm-step-text {
	width: 100%;
}

/* =========================================
   CONSEJOS
   ========================================= */
.lcm-recipe-tips {
	/*background: #fffbeb;
	border-left: 4px solid #f0a500;
	border-radius: 0 8px 8px 0;
	padding: 1rem 1.25rem;*/
	margin-bottom: 2rem;
}

/*.lcm-recipe-tips h3 {
	margin-top: 0;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #a07000;
}

.lcm-recipe-tips ul {
	margin: 0;
	padding-left: 1.2rem;
}

.lcm-recipe-tips ul li {
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	color: #555;
}*/

/* =========================================
   NUTRICIÓN
   ========================================= */
.lcm-nutrition-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	margin-top: 0.5rem;
}

.lcm-nutrition-table th,
.lcm-nutrition-table td {
	text-align: left;
	padding: 0.4rem 0.6rem;
	border-bottom: 1px solid #eee;
}

/*.lcm-nutrition-table th {
	color: #888;
	font-weight: 500;
	font-size: 0.75rem;
	text-transform: uppercase;
}*/

/* =========================================
   RECETAS RELACIONADAS (PREMIUM)
   ========================================= */
.lcm-related-recipes {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid #eee;
}

/*.lcm-related-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	color: #222;
	text-align: center;
}*/

.lcm-recipes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 2rem;
}

.lcm-recipe-card-item {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	/*border: 1px solid #f0f0f0;*/
}

.lcm-recipe-card-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	/*border-color: #e0e0e0;*/
}

/*.lcm-recipe-item-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}*/

.lcm-recipe-item-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f8f8f8;
}

.lcm-recipe-item-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.lcm-recipe-card-item:hover .lcm-recipe-item-image {
	transform: scale(1.05);
}

.lcm-recipe-item-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.lcm-recipe-item-content {
	padding: 1.25rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/*.lcm-recipe-item-title {
	margin: 0 0 1rem 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
}*/

.lcm-recipe-item-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.85rem;
	color: #777;
	border-top: 1px solid #f9f9f9;
	padding-top: 0.75rem;
}

.lcm-meta-time,
.lcm-meta-kcal {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

/*.lcm-auto-link {
	color: #de5b26;
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px dashed rgba(222, 91, 38, 0.4);
	transition: all 0.2s ease;
}

.lcm-auto-link:hover {
	color: #b5451b;
	border-bottom-style: solid;
	background-color: rgba(222, 91, 38, 0.05);
}*/

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {

	/* 1. Limpieza total de contenedores de la web (Chrome/Navegación) */
	#masthead,
	#site-header,
	#site-footer,
	footer,
	aside,
	.site-sidebar,
	.lcm-recipe-actions,
	#kadence-breadcrumbs,
	.lcm-recipe-tags,
	.lcm-related-recipes,
	.comments-area,
	.kadence-pro-header-row,
	#footer,
	#sidebar,
	#comments,
	.post-navigation,
	.entry-footer,
	.lcm-recipe-suggestion {
		display: none !important;
	}

	/* 2. Desbloquear el flujo vertical */
	body,
	html {
		height: auto !important;
		overflow: visible !important;
		background: #fff !important;
		color: #000 !important;
		margin: 0 !important;
		padding: 0 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	#wrapper,
	#page,
	.site-content,
	.content-container,
	.entry-content,
	.site-main {
		display: block !important;
		float: none !important;
		position: static !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* 3. TIPOGRAFÍA UNIFICADA (Igual para toda la tarjeta) */
	.lcm-recipe-card,
	.lcm-recipe-intro,
	.lcm-recipe-intro p,
	.lcm-step-text,
	.lcm-ingredients-list li,
	.lcm-recipe-tips li,
	.lcm-auto-link {
		font-size: 11pt !important;
		line-height: 1.4 !important;
		color: #000 !important;
	}

	.lcm-recipe-intro {
		margin-bottom: 2rem !important;
	}

	/* 4. Estilo de la tarjeta para papel */
	.lcm-recipe-card {
		max-width: 100% !important;
		width: 100% !important;
		margin: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
	}

	.lcm-recipe-meta {
		background: #fff !important;
		border: 1px solid #000 !important;
		color: #000 !important;
		padding: 1rem !important;
		margin-bottom: 2rem !important;
	}

	.lcm-recipe-meta-item .lcm-value {
		color: #000 !important;
		font-size: 12pt !important;
	}

	.lcm-recipe-body {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
	}

	.lcm-ingredients-list {
		column-count: 2;
		column-gap: 40pt;
	}

	/* 5. Solución a los links (sin subrayado ni estiramientos) */
	.lcm-auto-link {
		display: inline !important;
		color: #000 !important;
		text-decoration: none !important;
		border: none !important;
		background: transparent !important;
		font-weight: normal !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* 6. Fotos: visibles y con tamaño de bloque */
	.lcm-step-img {
		max-width: 280px !important;
		height: auto !important;
		display: block !important;
		margin: 1rem 0 !important;
	}

	.lcm-steps-list li::before {
		background: #000 !important;
		color: #fff !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	/* Branding final */
	.lcm-recipe-card::after {
		content: "Receta de: lacocinamellama.es";
		display: block;
		margin-top: 3rem;
		text-align: center;
		font-style: italic;
		font-size: 9pt;
		color: #666;
	}

	/* Evitar cortes feos en mitad de un paso */
	.lcm-step-item {
		page-break-inside: avoid;
	}
}