/* Print Styles for Addiction Check */

@media print {
    /* Hide unnecessary elements */
    .main-header,
    .btn-start-screening,
    .navigation-buttons,
    .results-actions,
    .main-footer,
    .btn-nav,
    .btn-action,
    .progress-container {
        display: none !important;
    }
    
    /* Reset backgrounds for printing */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
        line-height: 1.4 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Results styling for print */
    .results-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        padding: 20px !important;
        margin: 0 !important;
        background: white !important;
    }
    
    .results-container h2 {
        display: none !important; /* Hide "Your Screening Results" heading */
    }
    
    /* Category results for print */
    .category-result {
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
        background: white !important;
    }
    
    .category-header {
        border-bottom: 1px solid #eee !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .category-title {
        font-weight: bold !important;
        color: black !important;
    }
    
    .category-score {
        color: #36b37e !important;
        font-weight: bold !important;
    }
    
    .category-description {
        color: #666 !important;
        font-size: 11pt !important;
    }
    
    /* Resources for print */
    .resources-section {
        page-break-before: always;
        margin-top: 30px !important;
        padding-top: 20px !important;
        border-top: 2px solid #4a90e2 !important;
    }
    
    .resources-section h3 {
        color: black !important;
        font-size: 16pt !important;
        margin-bottom: 15px !important;
    }
    
    .resource-card {
        border: 1px solid #ddd !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
        background: white !important;
    }
    
    .resource-title {
        font-weight: bold !important;
        color: black !important;
    }
    
    .resource-description {
        color: #666 !important;
    }
    
    .resource-link {
        color: #4a90e2 !important;
    }
    
    /* Print header */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #4a90e2;
    }
    
    .print-title {
        font-size: 20pt !important;
        font-weight: bold;
        color: #4a90e2;
        margin-bottom: 5px;
    }
    
    .print-subtitle {
        font-size: 12pt;
        color: #666;
        margin-bottom: 10px;
    }
    
    .print-date {
        font-size: 11pt;
        color: #999;
    }
    
    /* Print disclaimer */
    .print-disclaimer {
        border: 1px solid #ff6b6b;
        background: #fff5f5;
        padding: 15px;
        margin: 20px 0;
        font-size: 11pt;
        color: #666;
    }
    
    .print-disclaimer strong {
        color: #ff6b6b;
    }
    
    /* Page breaks */
    h2, h3 {
        page-break-after: avoid;
    }
    
    .category-result, .resource-card {
        page-break-inside: avoid;
    }
    
    /* Remove colors for print */
    .category-result[style*="border-left-color"],
    .resource-card[style*="border-left-color"] {
        border-left-color: #ddd !important;
    }
    
    /* Ensure URLs are visible */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #4a90e2;
    }
    
    /* Hide screen-only elements */
    .screen-only {
        display: none !important;
    }
    
    /* Print footer */
    .print-footer {
        display: block !important;
        text-align: center;
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
        font-size: 10pt;
        color: #999;
    }
}

/* Add print header to HTML */
@media print {
    body:before {
        /* Header removed per request */
        content: "";
        display: none;
    }
    
    body:after {
        content: "Generated from AddictionCheck.com - This is a screening tool, not a diagnostic instrument. Share with your healthcare provider.";
        display: block;
        text-align: center;
        font-size: 9pt;
        color: black; /* Changed from #999 to black */
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
    }
}