/* ============================================================
   print.css
   Print and PDF styles for the CV
   Loaded separately, applied during print/PDF generation
   ============================================================ */

@media print {

  /* ============================================================
     Hide everything except the CV page
     ============================================================ */

  .app-topbar,
  .app-bottombar,
  .app-editor,
  .app-preview > .preview-label,
  .mobile-tabs,
  .toast-container,
  .modal-overlay,
  .loading-overlay {
    display: none !important;
  }

  /* ============================================================
     Reset body for print
     ============================================================ */

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    width: 210mm;
    height: 297mm;
    margin: 0;
    padding: 0;
    background: white;
    overflow: visible;
  }

  /* ============================================================
     App wrapper becomes full page
     ============================================================ */

  .app-wrapper {
    display: block;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .app-preview {
    display: block;
    padding: 0;
    margin: 0;
    background: white;
    overflow: visible;
    height: auto;
  }

  /* ============================================================
     CV Page - A4 exact dimensions
     ============================================================ */

  .cv-page {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
    margin: 0;
    padding: 0;
    page-break-after: always;
    page-break-inside: avoid;
  }

  /* ============================================================
     Page setup
     ============================================================ */

  @page {
    size: A4 portrait;
    margin: 0;
  }

  /* ============================================================
     Section page breaks
     ============================================================ */

  .cv-section {
    page-break-inside: avoid;
  }

  .cv-entry {
    page-break-inside: avoid;
  }

  .cv-license-entry,
  .cv-reference-entry {
    page-break-inside: avoid;
  }

  /* ============================================================
     Ensure colors print correctly
     ============================================================ */

  .cv-header {
    background-color: #0A1F44 !important;
    color: white !important;
  }

  .cv-name {
    color: white !important;
  }

  .cv-job-title {
    color: #e0aa3e !important;
  }

  .cv-contact-item {
    color: rgba(255,255,255,0.85) !important;
  }

  .cv-sidebar {
    background-color: #F0F3F8 !important;
  }

  .cv-section-title {
    color: #0A1F44 !important;
    border-bottom-color: #C9952A !important;
  }

  .cv-entry-title {
    color: #0A1F44 !important;
  }

  .cv-entry-bullet::before {
    background-color: #C9952A !important;
  }

  .cv-bullet-list-item::before {
    background-color: #C9952A !important;
  }

  /* ============================================================
     Links in print
     ============================================================ */

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}