/**
 * Print Styles
 * Optimize for printing
 */

@media print {
  /* Hide non-essential elements */
  .hvn-theme-site-header,
  .hvn-theme-sidebar,
  .hvn-theme-site-footer,
  .hvn-theme-menu-toggle,
  .hvn-theme-breadcrumbs,
  .hvn-theme-post-navigation,
  .hvn-theme-comments-area,
  .hvn-theme-related-posts,
  .hvn-theme-back-to-top,
  .hvn-theme-search-overlay,
  .hvn-theme-404-search,
  .hvn-theme-404-actions {
    display: none !important;
  }
  
  /* Body and container */
  body,
  .hvn-theme-site-main,
  .hvn-theme-container,
  .hvn-theme-container-fluid {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Content area */
  .hvn-theme-content-area,
  .hvn-theme-single-content,
  .hvn-theme-post-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  p, blockquote, ul, ol, dl {
    page-break-inside: avoid;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8rem;
  }
  
  a[href^="#"]:after,
  a[href^="javascript"]:after {
    content: "";
  }
  
  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  /* Featured image */
  .hvn-theme-single-featured-image {
    margin-bottom: 1rem;
  }
  
  /* Blockquotes */
  blockquote {
    border-left: 3px solid #ccc;
    padding-left: 1rem;
    page-break-inside: avoid;
  }
  
  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
  }
  
  th, td {
    border: 1px solid #ccc;
    padding: 0.5rem;
  }
  
  /* Page breaks */
  .hvn-theme-post-card {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  /* Remove background colors */
  * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* URLs */
  .hvn-theme-read-more:after {
    content: " (" attr(href) ")";
  }
}