/**
 * Print Styles - Portfolio/Resume Optimized
 * Ensures clean, professional printing of portfolio and project pages
 */

@media print {
  /* Reset for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Hide non-printable elements */
  .navbar,
  .nav-menu,
  .admin-sidebar,
  .dashboard-sidebar,
  .footer,
  .btn,
  button,
  .form-actions,
  .modal-overlay,
  .alert,
  .floating-orb,
  .mobile-menu-toggle,
  .sidebar-toggle {
    display: none !important;
  }

  /* Page setup */
  @page {
    margin: 2cm;
    size: A4;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 14pt; }

  /* Avoid page breaks inside elements */
  .card,
  .project-item,
  .portfolio-card,
  .service-card,
  .testimonial-card {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px solid #ccc !important;
    margin-bottom: 1cm;
  }

  /* Portfolio grid becomes single column */
  .portfolio-grid,
  .services-grid {
    display: block !important;
  }

  .portfolio-card,
  .service-card {
    width: 100% !important;
    margin-bottom: 1cm;
  }

  /* Show URLs after links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  /* Don't show URLs for internal navigation */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  th, td {
    border: 1px solid #333;
    padding: 8px;
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  /* Contact info */
  .contact-info,
  .footer-contact {
    display: block !important;
    margin-top: 1cm;
  }
}
