/*
 * Print Stylesheet - AtualReceitas
 * Impressão otimizada mostrando só o essencial
 */

@media print {
    /* Esconder elementos desnecessários */
    .site-header,
    .site-footer,
    .recipe-actions,
    .btn-share,
    .btn-print,
    .entry-meta,
    .ar-top-rating,
    .ar-rating,
    .recipe-rating-section,
    .ar-hero-badge,
    .recipe-tags,
    .recipe-nav,
    .recipe-share,
    .social-share-buttons,
    .back-to-top,
    .comments-area,
    #wpadminbar {
        display: none !important;
    }

    /* Layout para impressão */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Título da receita */
    .entry-title {
        font-size: 24pt;
        margin-bottom: 10pt;
        page-break-after: avoid;
    }

    /* Meta info */
    .recipe-meta-bar {
        background: #f5f5f5 !important;
        border: 1px solid #ddd;
        padding: 10pt;
        margin-bottom: 15pt;
        page-break-inside: avoid;
    }

    /* Layout em 1 coluna */
    .recipe-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .recipe-sidebar,
    .recipe-main {
        width: 100% !important;
        position: static !important;
    }

    /* Ingredientes */
    .ingredients-box {
        background: white !important;
        border: 2px solid #000;
        padding: 15pt;
        margin-bottom: 20pt;
        page-break-inside: avoid;
    }

    .ingredients-box h2 {
        font-size: 18pt;
        margin-bottom: 10pt;
    }

    .ingredients-box ul {
        list-style: none;
        padding-left: 0;
    }

    .ingredients-box li {
        margin-bottom: 8pt;
        padding-left: 20pt;
        position: relative;
    }

    .ingredients-box li:before {
        content: "□";
        position: absolute;
        left: 0;
        font-size: 14pt;
    }

    /* Esconder checkboxes */
    input[type="checkbox"] {
        display: none;
    }

    /* Modo de Preparo */
    .recipe-instructions {
        page-break-before: auto;
    }

    .recipe-instructions h2 {
        font-size: 18pt;
        margin-bottom: 10pt;
        page-break-after: avoid;
    }

    .instructions-list {
        padding-left: 25pt;
    }

    .instructions-list li {
        margin-bottom: 12pt;
        page-break-inside: avoid;
        line-height: 1.6;
    }

    /* Imagens */
    .recipe-featured-image {
        display: none; /* Economizar tinta */
    }

    /* Se quiser imprimir a imagem, comente a linha acima e use: */
    /*
    .recipe-featured-image img {
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
        margin-bottom: 15pt;
    }
    */

    /* Links */
    a {
        color: #000;
        text-decoration: none;
    }

    a[href]:after {
        content: "";
    }

    /* Quebras de página */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    /* Footer da página impressa */
    @page {
        margin: 2cm;
    }

    .print-footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        text-align: center;
        font-size: 9pt;
        color: #666;
        border-top: 1px solid #ccc;
        padding-top: 5pt;
    }
}
