/**
 * Folha de Estilos para Impressão de Receitas (print.css).
 * Otimizada para economizar tinta e papel (layout limpo de 1-2 páginas).
 *
 * @package ReceitasProTheme
 */

@media print {
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	html, body {
		font-family: Georgia, "Times New Roman", serif !important;
		font-size: 11pt !important;
		line-height: 1.4 !important;
		background: #ffffff !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* Oculta todos os elementos de navegação, monetização e UI */
	.site-header,
	.rpt-topbar,
	.rpt-drawer,
	.rpt-modal-search,
	.rpt-fav-drawer,
	.rpt-quickbar,
	.rpt-sidebar,
	.site-footer,
	.rpt-back-to-top,
	.rpt-ad-slot,
	.rpt-related-section,
	.rpt-author-box,
	.rpt-comments-area,
	.rpt-pinterest-btn,
	.rpt-multiplier-buttons,
	.rpt-step-timer,
	.rpt-instructions-progress,
	.skip-link {
		display: none !important;
	}

	.rpt-container {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.rpt-layout-grid {
		display: block !important;
		padding: 0 !important;
	}

	/* Cabeçalho da Receita */
	.rpt-recipe-header {
		margin-bottom: 1.5rem !important;
		border-bottom: 2pt solid #000000 !important;
		padding-bottom: 1rem !important;
	}

	.rpt-recipe-title {
		font-size: 20pt !important;
		font-weight: bold !important;
		margin-bottom: 0.5rem !important;
	}

	.rpt-recipe-meta-strip {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 1.5rem !important;
		border: 1pt solid #ccc !important;
		padding: 0.5rem 1rem !important;
		margin-bottom: 1rem !important;
	}

	.rpt-recipe-meta-box__label {
		font-size: 8pt !important;
		text-transform: uppercase !important;
		display: block !important;
	}

	.rpt-recipe-meta-box__value {
		font-size: 10pt !important;
		font-weight: bold !important;
	}

	.rpt-recipe-media {
		max-height: 250px !important;
		overflow: hidden !important;
		margin-bottom: 1.5rem !important;
	}

	.rpt-recipe-image {
		max-height: 250px !important;
		object-fit: cover !important;
	}

	/* Caixa de Ingredientes */
	.rpt-recipe-card-box {
		border: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.rpt-ingredients-title,
	.rpt-instructions-title {
		font-size: 14pt !important;
		font-weight: bold !important;
		border-bottom: 1pt solid #000 !important;
		padding-bottom: 0.3rem !important;
		margin-top: 1.5rem !important;
		margin-bottom: 0.8rem !important;
	}

	.rpt-ingredients-list {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 0.4rem 1.5rem !important;
	}

	.rpt-ingredient-item {
		font-size: 10pt !important;
		break-inside: avoid !important;
	}

	.rpt-custom-check {
		display: inline-block !important;
		width: 12px !important;
		height: 12px !important;
		border: 1pt solid #000 !important;
		margin-right: 6px !important;
	}

	/* Modo de Preparo */
	.rpt-instructions-list {
		list-style-type: decimal !important;
		padding-left: 1.5rem !important;
	}

	.rpt-instruction-step {
		margin-bottom: 0.8rem !important;
		break-inside: avoid !important;
		display: list-item !important;
	}

	.rpt-step-number,
	.rpt-step-check-label {
		display: none !important;
	}

	.rpt-step-text {
		font-size: 10pt !important;
		text-decoration: none !important;
		opacity: 1 !important;
	}

	/* Nota de Rodapé na Impressão */
	.rpt-recipe-article::after {
		content: "Receita impressa de " attr(data-site-name) " • " attr(data-site-url);
		display: block !important;
		margin-top: 2rem !important;
		padding-top: 0.5rem !important;
		border-top: 1pt solid #ccc !important;
		font-size: 8pt !important;
		color: #666 !important;
		text-align: center !important;
	}
}
