/*
 * [5.5] Print Stylesheet
 * Otimiza artigos para impressao.
 * Remove elementos desnecessarios, maximiza legibilidade.
 */

@media print {
    /* Esconder elementos nao necessarios na impressao */
    .header-top,
    .header-nav,
    .site-navigation,
    .mobile-menu-toggle,
    .header-search-box,
    .search-overlay,
    .sidebar,
    .footer-widgets,
    .footer-bottom,
    .back-to-top,
    .reading-progress-bar,
    .share-buttons,
    .related-posts,
    .comments-area,
    .lgpd-banner,
    .wp-admin-bar,
    #wpadminbar,
    .post-navigation,
    .entry-footer,
    nav.pagination,
    .breadcrumbs,
    .evte-breadcrumbs,
    .table-of-contents,
    .review-buy-links,
    .featured-section {
        display: none !important;
    }

    /* Reset geral para impressao */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Layout de coluna unica */
    .content-area,
    .site-wrapper {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .single-post,
    .entry-content {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Header simplificado */
    .header-brand {
        text-align: center;
        border-bottom: 1px solid #ccc;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .site-logo {
        color: #000 !important;
        font-size: 16pt;
    }

    /* Titulo do artigo */
    .entry-title {
        font-size: 20pt;
        color: #000 !important;
        margin-bottom: 10px;
    }

    /* Meta info */
    .entry-meta {
        font-size: 10pt;
        color: #666 !important;
        margin-bottom: 15px;
    }

    /* Conteudo */
    .entry-content {
        font-size: 11pt;
        line-height: 1.6;
    }

    .entry-content h2 {
        font-size: 16pt;
        margin-top: 20px;
        page-break-after: avoid;
    }

    .entry-content h3 {
        font-size: 14pt;
        page-break-after: avoid;
    }

    /* Imagens */
    .entry-content img,
    .entry-featured-image img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    /* Links — mostrar URL entre parenteses */
    .entry-content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }

    /* Nao mostrar URL de links internos e anchors */
    .entry-content a[href^="#"]::after,
    .entry-content a[href^="/"]::after,
    .entry-content a[href*="localhost"]::after {
        content: none;
    }

    /* Author box */
    .author-box {
        border-top: 1px solid #ccc;
        padding-top: 10px;
        margin-top: 20px;
    }

    .author-box img {
        max-width: 60px !important;
    }

    /* Evitar quebra de pagina no meio de blocos */
    blockquote,
    pre,
    table,
    figure {
        page-break-inside: avoid;
    }

    /* Footer minimo */
    .site-footer {
        border-top: 1px solid #ccc;
        padding-top: 10px;
        text-align: center;
        font-size: 9pt;
        color: #999;
    }

    /* Remover efeitos visuais */
    body::after {
        display: none !important; /* grain texture */
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
        background: transparent !important;
    }

    /* Review components — manter mas simplificar */
    .review-pros, .review-cons {
        border: 1px solid #ccc !important;
    }
    .review-verdict {
        border: 1px solid #ccc !important;
    }
}
