/* =====================================================
   BIYOGAZ AKADEMISI - Print stylesheet (UX-3)
   Yazıcıdan akademik makale çıktısı temiz alınsın.
   ===================================================== */

@media print {
    @page {
        margin: 18mm 16mm;
    }

    /* Reset */
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    html, body {
        font-family: "Source Serif 4", Georgia, serif !important;
        font-size: 11pt;
        line-height: 1.45;
        background: #fff !important;
    }

    /* Gizle: nav, footer, banner, sidebar, action butonlar */
    .site-header,
    .site-footer,
    .breadcrumb,
    .reading-progress,
    .cookie-consent,
    .site-mobile-drawer,
    .article-actions,
    .article-related-section,
    .home-hero-cta,
    .skip-link,
    .flash,
    [data-comments-container],
    .article-grid > aside:first-of-type,   /* TOC */
    .article-grid > aside:last-of-type,    /* metadata sidebar */
    [data-newsletter-form],
    nav[aria-label],
    button {
        display: none !important;
    }

    /* Tek kolon makale layout */
    .article-grid {
        display: block !important;
    }
    .article-body {
        max-width: none !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
        color: #000 !important;
    }
    .article-body h2 {
        font-size: 16pt !important;
        margin-top: 18pt !important;
        page-break-after: avoid;
    }
    .article-body h3 {
        font-size: 13pt !important;
        margin-top: 14pt !important;
        page-break-after: avoid;
    }
    .article-body p {
        orphans: 3;
        widows: 3;
    }
    .article-body p.drop-cap::first-letter {
        font-size: 28pt !important;
        color: #000 !important;
    }
    .article-body blockquote.pull {
        font-size: 12pt !important;
        color: #000 !important;
        border-left: 2pt solid #000 !important;
        page-break-inside: avoid;
    }
    .article-body table,
    .article-figure {
        page-break-inside: avoid;
    }

    /* Title block */
    .article-h1 {
        font-size: 22pt !important;
        line-height: 1.1 !important;
    }
    .article-dek {
        font-size: 12pt !important;
    }
    .article-byline {
        border-top: 0.5pt solid #000 !important;
        margin-top: 8pt !important;
        padding-top: 6pt !important;
    }

    /* Link URL'lerini parantez içinde göster (akademik atıf değeri) */
    .article-body a[href^="http"]::after,
    .article-body a[href^="/"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555 !important;
        word-break: break-all;
    }
    /* Anchor link'ler için URL gösterme */
    .article-body a[href^="#"]::after { content: ""; }

    /* Görseller */
    img, .wf-img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    .wf-img { display: none !important; } /* placeholder'lar yazdırılmasın */

    /* Pill / badge */
    .wf-pill {
        border: 0.5pt solid #000 !important;
        padding: 1pt 4pt !important;
    }

    /* Footer URL: makalenin internet adresi */
    main::after {
        content: "Biyogaz Akademisi · biyogazakademisi.com";
        display: block;
        text-align: center;
        font-size: 9pt;
        color: #666 !important;
        margin-top: 24pt;
        padding-top: 8pt;
        border-top: 0.5pt solid #999 !important;
    }
}
