/* Print styles */
@media print {
  /* Reset colors for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Hide unnecessary elements */
  .header-top,
  .mobile-menu-toggle,
  .nav,
  .mobile-nav,
  .search-widget,
  .ad-zone,
  .sidebar-ad,
  .newsletter,
  .footer,
  button,
  .btn,
  video,
  audio,
  .social-share {
    display: none !important;
  }

  /* Page setup */
  @page {
    margin: 2cm;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Typography for print */
  h1 {
    font-size: 24pt;
    page-break-after: avoid;
  }

  h2 {
    font-size: 18pt;
    page-break-after: avoid;
  }

  h3 {
    font-size: 14pt;
    page-break-after: avoid;
  }

  /* Avoid page breaks */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

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

  /* Links */
  a {
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }

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

  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  th, td {
    border: 1px solid #ddd;
    padding: 8px;
  }

  thead {
    display: table-header-group;
  }

  tr {
    page-break-inside: avoid;
  }

  /* Cards and sections */
  .card,
  .section {
    page-break-inside: avoid;
  }

  /* Show print-only content */
  .print-only {
    display: block !important;
  }
}
