/* ========================================
   PRINT STYLES - Optimized for Article Printing
   ======================================== */

@media print {
    /* Reset & General */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        font-family: Georgia, 'Times New Roman', serif;
    }

    /* Hide unnecessary elements */
    header,
    .header-fixed,
    .mobile-menu-toggle,
    .btn-header-cta,
    nav,
    .article-share,
    .article-share-footer,
    .back-to-top,
    .related-articles,
    .article-newsletter,
    footer,
    .promo-badge,
    .article-cta-box,
    .newsletter-box {
        display: none !important;
    }

    /* Page breaks */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    p, blockquote, ul, ol {
        page-break-inside: avoid;
    }

    img {
        page-break-inside: avoid;
        page-break-after: avoid;
    }

    /* Article Header */
    .article-header {
        padding: 0;
        margin-bottom: 30pt;
    }

    .breadcrumb {
        font-size: 10pt;
        margin-bottom: 15pt;
    }

    .article-title {
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 15pt;
    }

    .article-meta-header {
        font-size: 10pt;
        border-bottom: 1pt solid #333;
        padding-bottom: 10pt;
        margin-bottom: 20pt;
    }

    /* Featured Image */
    .article-featured-image {
        max-height: 400pt;
        margin-bottom: 20pt;
        border-radius: 0;
    }

    .article-featured-image img {
        max-width: 100%;
        height: auto;
    }

    /* Table of Contents */
    .table-of-contents {
        border: 1pt solid #333;
        padding: 15pt;
        margin-bottom: 20pt;
    }

    .table-of-contents h3 {
        font-size: 14pt;
        margin-bottom: 10pt;
    }

    #toc-list a {
        color: black;
        text-decoration: none;
    }

    #toc-list a::after {
        content: " (page " target-counter(attr(href), page) ")";
        font-size: 9pt;
    }

    /* Article Body */
    .article-body {
        padding: 0;
    }

    .article-intro .lead {
        font-size: 14pt;
        font-weight: bold;
        margin-bottom: 15pt;
    }

    .article-body h2 {
        font-size: 18pt;
        font-weight: bold;
        margin-top: 20pt;
        margin-bottom: 10pt;
        border-bottom: 1pt solid #333;
        padding-bottom: 5pt;
    }

    .article-body h3 {
        font-size: 14pt;
        font-weight: bold;
        margin-top: 15pt;
        margin-bottom: 8pt;
    }

    .article-body p {
        font-size: 11pt;
        line-height: 1.6;
        margin-bottom: 10pt;
    }

    /* Lists */
    .custom-list,
    .custom-ordered-list {
        margin: 10pt 0;
        padding-left: 20pt;
    }

    .custom-list li,
    .custom-ordered-list li {
        font-size: 11pt;
        margin-bottom: 8pt;
    }

    /* Remove icons from print */
    i, .fas, .far, .fab {
        display: none;
    }

    /* Highlight Boxes */
    .highlight-box {
        border: 2pt solid #333;
        padding: 10pt;
        margin: 15pt 0;
    }

    .highlight-content h4 {
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 5pt;
    }

    .highlight-content p {
        font-size: 10pt;
    }

    /* Quotes */
    .article-quote {
        border-left: 3pt solid #333;
        padding: 10pt 15pt;
        margin: 15pt 0;
        font-style: italic;
    }

    .article-quote p {
        font-size: 12pt;
        font-style: italic;
    }

    .article-quote cite {
        font-size: 10pt;
        font-style: normal;
        font-weight: bold;
    }

    /* Stats Grid */
    .stats-grid {
        display: table;
        width: 100%;
        border: 1pt solid #333;
        margin: 15pt 0;
    }

    .stat-item {
        display: table-cell;
        text-align: center;
        padding: 10pt;
        border: 1pt solid #333;
    }

    .stat-number {
        font-size: 18pt;
        font-weight: bold;
    }

    .stat-label {
        font-size: 10pt;
    }

    /* FAQ */
    .faq-item {
        border: 1pt solid #333;
        margin-bottom: 10pt;
        page-break-inside: avoid;
    }

    .faq-question {
        font-size: 12pt;
        font-weight: bold;
        padding: 8pt;
        border-bottom: 1pt solid #333;
    }

    .faq-answer {
        padding: 8pt;
        font-size: 11pt;
    }

    /* Tags */
    .article-tags {
        margin-top: 20pt;
        padding-top: 15pt;
        border-top: 1pt solid #333;
    }

    .tag {
        border: 1pt solid #333;
        padding: 3pt 8pt;
        margin-right: 5pt;
        font-size: 9pt;
    }

    /* Links - show URL after link text */
    a[href]:not(.tag)::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        font-weight: normal;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    /* Footer info on each page */
    @page {
        margin: 2cm;

        @bottom-right {
            content: "Page " counter(page) " sur " counter(pages);
            font-size: 9pt;
        }

        @bottom-left {
            content: "© 2024 MyTEL - mytel.ca";
            font-size: 9pt;
        }

        @top-center {
            content: string(article-title);
            font-size: 9pt;
            font-style: italic;
        }
    }

    /* Container adjustments */
    .container,
    .container-narrow {
        max-width: 100%;
        padding: 0;
    }
}
