/*
 * Tepa — Print Stylesheet
 * Akademik tıbbi makalelerin temiz çıktısı için.
 *
 * @package Tepa
 */

@media print {

  /* Gizle */
  .tepa-header,
  .tepa-footer,
  .tepa-nav,
  .tepa-sidebar,
  .tepa-related,
  .tepa-toc,
  .tepa-back-top,
  #tepa-reading-progress,
  .tepa-author-box__social,
  .tepa-comments,
  .wp-block-buttons,
  [aria-label="breadcrumb"] {
    display: none !important;
  }

  /* Sayfa düzeni */
  body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 1.6;
    color: #000 !important;
    background: #fff !important;
    margin: 0;
    padding: 0;
  }

  .tepa-main,
  .tepa-single-post,
  .tepa-single-post__content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  /* Başlık */
  .tepa-single-post__header {
    margin-bottom: 24pt;
    border-bottom: 1pt solid #ccc;
    padding-bottom: 12pt;
  }

  .tepa-single-post__title {
    font-size: 20pt;
    line-height: 1.3;
    color: #000 !important;
  }

  /* İçerik */
  h2 { font-size: 15pt; margin-top: 18pt; }
  h3 { font-size: 13pt; margin-top: 14pt; }
  h4 { font-size: 12pt; margin-top: 10pt; }

  p, li { orphans: 3; widows: 3; }

  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="#"]::after { content: ""; }

  img { max-width: 100% !important; page-break-inside: avoid; }

  blockquote {
    border-left: 3pt solid #ccc;
    padding-left: 12pt;
    font-style: italic;
    page-break-inside: avoid;
  }

  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
  }
  th, td {
    border: 1pt solid #ccc;
    padding: 4pt 6pt;
    font-size: 10pt;
  }

  pre, code {
    font-size: 9pt;
    border: 1pt solid #ccc;
    padding: 6pt;
    page-break-inside: avoid;
    white-space: pre-wrap;
  }

  /* Tıbbi uyarı — print'te göster */
  .tepa-medical-notice {
    display: block !important;
    border: 1pt solid #999;
    padding: 8pt 12pt;
    margin-top: 18pt;
    font-size: 9pt;
    color: #333 !important;
    background: #f9f9f9 !important;
    page-break-inside: avoid;
  }
  .tepa-medical-notice__icon { display: none; }

  /* Site adı başa */
  .tepa-main::before {
    content: "tipaci.com";
    display: block;
    font-size: 9pt;
    color: #999;
    margin-bottom: 12pt;
  }

  /* Sayfa numarası */
  @page {
    margin: 2cm 2.5cm;
    @bottom-right { content: counter(page) "/" counter(pages); font-size: 9pt; }
    @top-left     { content: "tipaci.com"; font-size: 9pt; color: #999; }
  }
}
