/**
 * Print Stylesheet
 * Optimized styles for printing the website
 */

@media print {
  /* Reset and base styles */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

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

  /* Typography */
  body {
    font-size: 12pt;
    line-height: 1.5;
    font-family: Georgia, 'Times New Roman', serif;
  }

  h1 {
    font-size: 24pt;
    page-break-after: avoid;
  }

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

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

  p,
  blockquote,
  ul,
  ol {
    orphans: 3;
    widows: 3;
  }

  /* Hide non-essential elements */
  nav,
  .mobile-btn,
  .nav,
  #go-top,
  .scrolldown,
  .hero-cta,
  .button,
  #books,
  #testimonials,
  .hero-social,
  footer .social-links,
  .skip-link,
  .download {
    display: none !important;
  }

  /* Header simplification */
  .site-hero {
    background: none !important;
    padding: 1cm 0;
  }

  .hero-grid {
    display: block;
  }

  .hero-copy h1 {
    margin-top: 0;
  }

  .hero-badge {
    display: inline-block;
    border: 1px solid #000;
    padding: 2px 8px;
    margin-bottom: 0.5cm;
  }

  .hero-media {
    display: none;
  }

  /* Content sections */
  section {
    page-break-inside: avoid;
    margin-bottom: 1cm;
  }

  .section-heading {
    margin-bottom: 0.5cm;
  }

  .eyebrow {
    text-transform: uppercase;
    font-size: 10pt;
    font-weight: bold;
    display: block;
    margin-bottom: 0.2cm;
  }

  /* Resume items */
  .row.item {
    page-break-inside: avoid;
    margin-bottom: 0.5cm;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.3cm;
  }

  .row.item:last-child {
    border-bottom: none;
  }

  /* Links */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  a[href^="#"]:after,
  a[href^="javascript"]:after,
  a[class*="button"]:after {
    content: "";
  }

  /* Publications */
  .publication-links {
    margin-top: 0.2cm;
  }

  .publication-links a:after {
    content: " [" attr(href) "]";
  }

  /* Info cards */
  .info-card {
    border: 1px solid #ccc;
    padding: 0.3cm;
    margin-bottom: 0.5cm;
    page-break-inside: avoid;
  }

  .pill-list {
    list-style: none;
    padding: 0;
  }

  .pill-list li {
    display: inline;
    margin-right: 0.3cm;
  }

  .pill-list li:after {
    content: " •";
    margin-left: 0.3cm;
  }

  .pill-list li:last-child:after {
    content: "";
  }

  /* Footer */
  footer {
    margin-top: 1cm;
    padding-top: 0.3cm;
    border-top: 2px solid #000;
  }

  .copyright {
    list-style: none;
    padding: 0;
  }

  .copyright li {
    display: inline;
    margin-right: 1cm;
  }

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

  /* Collapsible sections - show all content */
  .collapsed-items,
  .visible-items {
    display: block !important;
  }

  .expand-btn {
    display: none !important;
  }

  /* About grid */
  .about-grid {
    display: block;
  }

  .about-card,
  .about-sidebar {
    width: 100%;
  }

  /* Stats - simplify for print */
  .hero-stats {
    display: flex;
    justify-content: space-around;
    margin: 0.5cm 0;
    padding: 0.3cm;
    border: 1px solid #000;
  }

  .hero-stats li {
    text-align: center;
  }

  .stat-number {
    font-size: 18pt;
    font-weight: bold;
  }

  .stat-label {
    font-size: 9pt;
    display: block;
  }

  /* Resume grid */
  .resume-grid {
    display: block;
  }

  .resume-card {
    width: 100%;
    margin-bottom: 1cm;
  }
}
