/* ==========================================================================
   Liceul Tehnologic Corlatel - Print Stylesheet
   Optimizat pentru tiparire pe hartie fizica, lizibilitate si economie de cerneala.
   ========================================================================== */

@page {
  margin: 1.5cm;
  size: A4 portrait;
}

@media print {
  /* 1. Element Hiding: Bare de navigare, subsoluri, butoane interactive si widget-uri */
  #site-nav, #theme-toggle, .gdpr-banner,
  #gdpr-shield-btn, .gdpr-floating-badge,
  #gdprModalOverlay, .gdpr-modal-overlay, .gdpr-toast,
  #site-footer,
  .hero-orb,
  #a11y-btn,
  #a11y-panel,
  #radioWidgetBox,
  .hamburger,
  .mob-menu,
  .min-bar,
  .navbar,
  .nav-actions,
  .hero-actions,
  .scroll-hint,
  .h-float,
  .btn,
  button,
  .gallery-filter,
  .ph-breadcrumb,
  video,
  audio,
  iframe,
  .no-print {
    display: none !important;
  }

  /* 2. Ink Saving: Eliminare fundaluri, gradiente si umbre */
  *,
  *::before,
  *::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    color: #000 !important;
  }

  body,
  .card,
  .prof-card,
  .mgmt-card,
  .bursa-card,
  .comp-card,
  .lab-card,
  .career-card,
  .extra-card,
  .bell-card,
  .h-card-main,
  .h-card-head,
  .h-card-body,
  .h-row,
  .page-hero,
  .hero,
  .section,
  .accred-bar,
  .acc-item {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #bbb !important;
  }

  /* 3. Tipografie si dimensiuni font in puncte (pt) */
  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  h1,
  .headline {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20pt !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #000 !important;
    margin-top: 0 !important;
    margin-bottom: 8pt !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 16pt !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #000 !important;
    margin-top: 12pt !important;
    margin-bottom: 6pt !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #000 !important;
    margin-top: 10pt !important;
    margin-bottom: 4pt !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  h4,
  h5,
  h6 {
    font-size: 11pt !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin-top: 8pt !important;
    margin-bottom: 4pt !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  p,
  ul,
  ol,
  li,
  dl,
  dd,
  blockquote {
    font-size: 10pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
    margin-bottom: 6pt !important;
    orphans: 3;
    widows: 3;
  }

  small,
  .subtext,
  .sched-meta,
  .sub-prof,
  .hs-label,
  .acc-lbl,
  .sub-room {
    font-size: 9pt !important;
    color: #111 !important;
  }

  .eyebrow {
    font-size: 9pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #000 !important;
    margin-bottom: 4pt !important;
  }

  /* 4. Cadre si containere pentru tipar */
  .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .section {
    padding: 10pt 0 !important;
  }

  .page-hero,
  .hero {
    padding: 10pt 0 !important;
    border-bottom: 1.5pt solid #000 !important;
    margin-bottom: 12pt !important;
  }

  .card,
  .prof-card,
  .mgmt-card,
  .bursa-card,
  .comp-card,
  .lab-card,
  .career-card,
  .extra-card,
  .bell-card {
    border: 1pt solid #888 !important;
    border-radius: 4pt !important;
    padding: 8pt !important;
    margin-bottom: 8pt !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .cards-grid,
  .prof-grid,
  .bursa-cards-grid,
  .hero-grid,
  .info-dual-grid,
  .bell-schedule {
    display: block !important;
  }

  /* 5. Tabele (Orar, Rezultate, Cataloage) */
  table,
  .schedule-table,
  .rez-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 10pt 0 !important;
    font-size: 9pt !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  th,
  td,
  .schedule-table th,
  .schedule-table td,
  .rez-table th,
  .rez-table td {
    border: 1pt solid #000 !important;
    padding: 5pt 6pt !important;
    color: #000 !important;
    text-align: left !important;
  }

  th,
  .schedule-table th,
  .rez-table th {
    background-color: #eee !important;
    font-weight: 700 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* 6. Link-uri si imagini */
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    font-weight: normal;
  }

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "" !important;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
    break-inside: avoid;
    filter: grayscale(100%) !important;
  }

  /* 7. Header document tiparit */
  body::before {
    content: "Liceul Tehnologic Corlatel -- Versiune oficiala pentru tipar";
    display: block;
    text-align: center;
    font-size: 8.5pt;
    font-weight: 600;
    color: #444;
    border-bottom: 1pt solid #888;
    padding-bottom: 4pt;
    margin-bottom: 10pt;
  }
}