/**
 * ========================================
 * PRINT-FRIENDLY FAQ STYLES
 * Clean, professional print layout
 * ========================================
 */

/* Add to your helpdesk-styles.css or as separate print-styles.css */

@media print {
    /* Hide unnecessary elements */
    header,
    footer,
    nav,
    .site-header,
    .site-footer,
    .tr-search-form,
    .tr-quick-actions,
    .tr-contact-section,
    .tr-breadcrumb,
    .tr-faq-chevron,
    .tr-email-faq-btn,
    .tr-print-btn,
    button:not(.keep-in-print),
    .no-print {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        size: A4;
        margin: 2cm 1.5cm;
    }
    
    body {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 11pt;
        line-height: 1.5;
        color: #000000;
        background: #ffffff;
    }
    
    /* Tree-Ripe Header for print */
    .tr-print-header {
        display: block !important;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 2px solid #0F5E41;
    }
    
    .tr-print-logo {
        font-size: 20pt;
        font-weight: 700;
        color: #0F5E41;
        font-family: Georgia, serif;
    }
    
    .tr-print-subtitle {
        font-size: 10pt;
        color: #666666;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 5px;
    }
    
    /* Hero section */
    .tr-hero {
        margin-bottom: 30px;
    }
    
    .tr-hero-title {
        font-size: 18pt;
        color: #0F5E41;
        margin-bottom: 10px;
    }
    
    .tr-hero-subtitle {
        font-size: 11pt;
        color: #666666;
    }
    
    /* Category sections */
    .tr-category-grid {
        display: block !important;
    }
    
    .tr-category-card {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #cccccc;
        border-left: 4px solid #0F5E41;
    }
    
    .tr-category-icon {
        display: inline;
        font-size: 14pt;
    }
    
    .tr-category-title {
        font-size: 14pt;
        font-weight: 700;
        color: #0F5E41;
    }
    
    .tr-category-subtitle {
        font-size: 10pt;
        color: #666666;
    }
    
    /* FAQ accordions */
    .tr-faq-list {
        margin-top: 20px;
    }
    
    .tr-faq-item {
        page-break-inside: avoid;
        margin-bottom: 15px;
        border: 1px solid #cccccc;
        padding: 15px;
    }
    
    .tr-faq-question {
        display: block;
        font-size: 12pt;
        font-weight: 700;
        color: #0F5E41;
        margin-bottom: 10px;
        padding: 0;
        background: none !important;
    }
    
    .tr-faq-answer {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .tr-faq-answer-content {
        padding: 0 !important;
        font-size: 10pt;
        line-height: 1.6;
    }
    
    .tr-faq-answer-content p {
        margin-bottom: 10px;
    }
    
    .tr-faq-answer-content a {
        color: #0F5E41;
        text-decoration: underline;
    }
    
    .tr-faq-answer-content a:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666666;
    }
    
    .tr-faq-answer-content strong {
        font-weight: 700;
    }
    
    /* Print footer */
    .tr-print-footer {
        display: block !important;
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #cccccc;
        font-size: 9pt;
        color: #666666;
        text-align: center;
    }
    
    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .tr-faq-item {
        page-break-inside: avoid;
    }
    
    /* Colors for print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* Print button styling (visible on screen) */
button.tr-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    height:30px;
    width:30px;
    transition: all var(--transition-fast) var(--transition-smooth);
}

button.tr-print-btn:hover {
    border-color: var(--forest-green);
    color: var(--forest-green);
    background-color: #E8F4EB;
}

button.tr-print-btn svg {
    width: 18px;
    height: 18px;
}

/* Print header (hidden on screen, visible in print) */
.tr-print-header {
    display: none;
}

/* Print footer (hidden on screen, visible in print) */
.tr-print-footer {
    display: none;
}
