/* 
 * Yazdırma Stilleri
 * @media print ile yazdırma için optimize edilmiş
 */

@media print {
    /* Genel ayarlar */
    * {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Header - Footer gizle */
    .site-header,
    .site-footer,
    .mobile-bottom-nav,
    #site-preloader,
    .cookie-banner,
    #backToTop,
    .social-share,
    .post-navigation,
    .comments-section,
    .related-posts-section,
    .widget-social,
    #tralleskopNotificationBtn {
        display: none !important;
    }
    
    /* Reklamları gizle */
    .ad-box,
    .ad-placeholder,
    .metadoku-animated-banner,
    .sidebar-extra-ad,
    [class*="ads-"] {
        display: none !important;
    }
    
    /* Sidebar gizle veya daralt */
    .sidebar-area {
        display: none !important;
    }
    .content-area {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* İçerik düzeni */
    .layout-grid {
        display: block !important;
    }
    
    /* Yazı stilleri */
    .single-post-content {
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }
    
    .single-post-content p {
        margin-bottom: 12pt !important;
    }
    
    .single-post-content img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    /* Başlıklar */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    /* Linkler */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }
    
    /* Tablo stilleri */
    table {
        border-collapse: collapse !important;
    }
    
    table, th, td {
        border: 1px solid #ccc !important;
    }
    
    th, td {
        padding: 8px !important;
    }
    
    /* Sayfa kırılmaları */
    .page-break {
        page-break-after: always;
    }
    
    /* Yazı boyutunu koru */
    body {
        font-size: 12pt;
    }
    
    /* Menü */
    .main-navigation {
        display: none !important;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        display: none !important;
    }
    
    /* İkonları göster */
    .fas::before,
    .far::before,
    .fab::before {
        display: inline !important;
    }
    
    /* Sayfa boyutu ve kenar boşlukları */
    @page {
        margin: 2cm;
    }
    
    /* Başlık resimleri */
    .single-featured-image img {
        max-height: 300px;
    }
    
    /* Yazar kutusu */
    .author-box {
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
    
    /* Alıntılar */
    blockquote {
        border-left: 3px solid var(--primary-red) !important;
        padding-left: 15px !important;
        margin: 15px 0 !important;
    }
    
    /* Kod blokları */
    pre, code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }
}

/* Ekran için önizleme */
@media screen {
    .print-preview-notice {
        display: none;
    }
}

.print-preview-notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.print-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.print-button:hover {
    background: #b9000b;
}

/* Yazdır butonunu yazı altına ekle */
.single-post-content::after {
    content: "";
    display: table;
    clear: both;
}

.print-action-bar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}