/* print.css - MINIMAL WORKING VERSION */
/* Step 1: Get basic print working */

@media print {
  
  /* TEST: Make sure CSS is working - REMOVE AFTER TESTING */
  body::before {
    content: "✅ PRINT.CSS IS WORKING - BASIC VERSION";
    display: block;
    background: lime;
    color: black;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1cm;
    border: 3px solid red;
  }

/* print.css - PHASE 2: Add more features */
/* Add this AFTER the minimal version works */

@media print {
  
  /* Already have the basic working CSS above */
  
  /* ===== ADD THESE ONE BY ONE ===== */
  
  /* 4. Hide more elements */
  .pk-share-buttons-post,
  .social-share,
  .related-posts,
  .comments-area,
  .post-navigation,
  .advertisement,
  .ad-container,
  .newsletter-form {
    display: none !important;
  }
  
  /* 5. Content styling */
  .entry-content,
  .post-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 6. Images */
  .wp-post-image,
  .post-thumbnail img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 10cm !important;
    display: block;
    margin: 0 auto 0.5cm auto !important;
  }
  
  /* 7. Links show URLs */
  a[href^="http"]::after,
  a[href^="https"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    font-style: italic;
    color: #666;
  }
  
  /* 8. Author box */
  .post-author,
  .author-box {
    border-top: 2px solid #000;
    margin-top: 1cm !important;
    padding-top: 0.5cm !important;
  }
}
  
  /* 1. BASIC HIDING - Test these work first */
  header,
  .site-header,
  .csco-site-header,
  .main-navigation,
  nav,
  .site-footer,
  .csco-site-footer,
  footer,
  .sidebar,
  .csco-site-sidebar,
  aside {
    display: none !important;
  }
  
  /* 2. BASIC STYLING */
  body {
    font-size: 12pt !important;
    line-height: 1.6 !important;
    color: #000 !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 3. LOGO - Simple version */
  .site-main:before {
    content: "";
    display: block;
    background-image: url('https://digitalproduction.com/wp-content/uploads/2024/09/DP_Logo_schwarz_re-e1748192629889.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 2cm;
    margin-bottom: 1cm;
    border-bottom: 1px solid #ccc;
    filter: grayscale(100%);
  }
}

/* print.css - PHASE 2: Add more features */
/* Add this AFTER the minimal version works */

@media print {
  
  /* Already have the basic working CSS above */
  
  /* ===== ADD THESE ONE BY ONE ===== */
  
  /* 4. Hide more elements */
  .pk-share-buttons-post,
  .social-share,
  .related-posts,
  .comments-area,
  .post-navigation,
  .advertisement,
  .ad-container,
  .newsletter-form {
    display: none !important;
  }
  
  /* 5. Content styling */
  .entry-content,
  .post-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 6. Images */
  .wp-post-image,
  .post-thumbnail img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 10cm !important;
    display: block;
    margin: 0 auto 0.5cm auto !important;
  }
  
  /* 7. Links show URLs */
  a[href^="http"]::after,
  a[href^="https"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    font-style: italic;
    color: #666;
  }
  
  /* 8. Author box */
  .post-author,
  .author-box {
    border-top: 2px solid #000;
    margin-top: 1cm !important;
    padding-top: 0.5cm !important;
  }
}
@media print {
  body::before { content: "TEST 1: Basic hiding"; background: lime; }
  header, footer, .sidebar { display: none !important; }
}
@media print {
  body::before { content: "TEST 2: Logo"; background: yellow; }
  .site-main:before { 
    background-image: url('https://digitalproduction.com/wp-content/smush-webp/2024/10/DP_Logo_weiss_re-e1759053235221.jpg.webp');
    height: 2cm;
    display: block;
  }
}