/**
 * Bull Search - Print Styles
 *
 * Styles for printing comparisons and results.
 *
 * @package Bull_Search
 */

@media print {
    /* Hide non-essential elements */
    .bs-header,
    .bs-filters,
    .bs-comparison-bar,
    .bs-results-toolbar,
    .bs-pagination,
    .bs-modal-overlay,
    .bs-btn,
    .bs-col-select,
    .bs-col-actions,
    .bs-back-btn,
    .bs-card-select,
    .site-header,
    .site-footer,
    .admin-bar,
    #wpadminbar,
    nav,
    aside:not(.bs-filters) {
        display: none !important;
    }

    /* Reset page */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .bs-app {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Print-friendly table */
    .bs-table,
    .bs-comparison-table {
        border: 1px solid #333;
        border-collapse: collapse;
        width: 100%;
        page-break-inside: auto;
    }

    .bs-table th,
    .bs-table td,
    .bs-comparison-table th,
    .bs-comparison-table td {
        border: 1px solid #333;
        padding: 8px;
        font-size: 10pt;
    }

    .bs-table thead,
    .bs-comparison-table thead {
        display: table-header-group;
    }

    .bs-table tr,
    .bs-comparison-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    /* Bull images smaller for print */
    .bs-bull-thumb,
    .bs-compare-header img {
        width: 40px;
        height: 40px;
    }

    /* Highlight best values */
    .bs-best {
        background: #d4edda !important;
        font-weight: bold;
    }

    /* Grid view: stack cards */
    .bs-grid {
        display: block;
    }

    .bs-card {
        page-break-inside: avoid;
        border: 1px solid #333;
        margin-bottom: 20px;
    }

    .bs-card-image {
        height: 100px;
    }

    /* Modal content for printing */
    .bs-modal {
        position: static !important;
        max-width: 100% !important;
        max-height: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    .bs-modal-header {
        border-bottom: 2px solid #333;
        padding: 10px 0;
    }

    .bs-modal-body {
        padding: 10px 0;
        overflow: visible !important;
    }

    /* Links */
    a {
        color: black !important;
        text-decoration: none !important;
    }

    /* Print header */
    .bs-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #333;
    }

    .bs-print-date {
        font-size: 10pt;
        color: #666;
    }
}
