/**
 * Wise Loan Print Stylesheet
 * Optimized for printing loan information and blog articles
 */

@media print {
    /* Hide non-essential elements */
    header,
    footer,
    nav,
    .btn,
    .cta-section,
    .nav-links,
    .mobile-menu,
    #cookie-consent-banner,
    .social-share,
    .related-posts,
    .sidebar,
    form,
    button,
    video,
    audio,
    iframe {
        display: none !important;
    }
    
    /* Reset colors for printing */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    /* Ensure content is visible */
    main, article, section, .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
    
    /* Typography adjustments */
    h1 { font-size: 24pt; }
    h2 { font-size: 18pt; }
    h3 { font-size: 14pt; }
    p, li { font-size: 12pt; }
    
    /* Links - show URLs */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    a[href^="#"]:after,
    a[href^="javascript"]:after {
        content: "";
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
    }
    
    th, td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
    }
    
    /* Page breaks */
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    
    p, blockquote, ul, ol, dl, table {
        page-break-inside: avoid;
    }
    
    /* Add logo for print */
    body:before {
        content: "Wise Loan - wiseloanapply.com";
        display: block;
        font-size: 14pt;
        font-weight: bold;
        margin-bottom: 20pt;
        padding-bottom: 10pt;
        border-bottom: 2px solid #000;
    }
    
    /* Footer with page info */
    @page {
        margin: 2cm;
    }
}
