/* Print Styles for Brochure/Flyer Creation */

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

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

  /* Body styles */
  body {
    font-size: 11pt;
    line-height: 1.5;
    font-family: Georgia, serif;
  }

  /* Hide navigation and interactive elements */
  .navbar,
  .demo-button,
  .cta-button,
  .footer,
  #resourcesModal,
  .hamburger {
    display: none !important;
  }

  /* Headings */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
    font-family: Arial, sans-serif;
  }

  h1 {
    font-size: 24pt;
    margin-bottom: 10pt;
  }

  h2 {
    font-size: 18pt;
    margin-top: 20pt;
    margin-bottom: 10pt;
    border-bottom: 2px solid #000;
    padding-bottom: 5pt;
  }

  h3 {
    font-size: 14pt;
    margin-top: 15pt;
    margin-bottom: 8pt;
  }

  /* Content sections */
  .section {
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }

  .hero {
    padding: 20pt 0;
    text-align: center;
    border-bottom: 3px solid #000;
    margin-bottom: 20pt;
  }

  /* Cards and boxes */
  .content-card,
  .info-box,
  .concept-card {
    border: 1px solid #ddd;
    padding: 10pt;
    margin-bottom: 10pt;
    page-break-inside: avoid;
  }

  /* Lists */
  ul,
  ol {
    margin-left: 20pt;
  }

  .key-points li,
  .feature-list li {
    margin-bottom: 5pt;
  }

  /* Grids - convert to single column */
  .content-grid,
  .benefits-grid,
  .specs-grid,
  .components-grid,
  .applications-grid,
  .results-grid,
  .benefit-cards,
  .ai-features {
    display: block !important;
  }

  .content-grid > *,
  .benefits-grid > *,
  .specs-grid > *,
  .components-grid > *,
  .benefit-cards > *,
  .ai-features > * {
    margin-bottom: 10pt;
    page-break-inside: avoid;
  }

  /* Process flow - simplify */
  .process-flow {
    display: block !important;
  }

  .process-step {
    display: inline-block;
    margin: 5pt;
    border: 1px solid #000;
    padding: 5pt;
  }

  .process-arrow {
    display: none;
  }

  /* Results box */
  .results-box {
    border: 2px solid #000;
    padding: 10pt;
    margin: 10pt 0;
  }

  .result-item {
    display: inline-block;
    margin-right: 20pt;
  }

  /* Highlights */
  .highlight-box {
    border-left: 3pt solid #000;
    padding-left: 10pt;
  }

  .highlight-text {
    font-weight: bold;
    text-decoration: underline;
  }

  /* Key takeaways */
  .key-takeaways {
    border: 2pt solid #000;
    padding: 10pt;
    margin: 15pt 0;
    background: #f5f5f5 !important;
  }

  /* Links */
  a {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  /* Emojis - replace with text if needed */
  .emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  }

  /* Page breaks */
  .section:nth-child(3n) {
    page-break-after: always;
  }

  /* Diagrams */
  .yagi-diagram {
    border: 1px solid #000;
    padding: 10pt;
    text-align: center;
  }

  .diagram-container {
    display: block !important;
  }

  /* Hide animations */
  * {
    animation: none !important;
    transition: none !important;
  }

  /* Ensure text is readable */
  p,
  li {
    orphans: 3;
    widows: 3;
  }

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

  /* Tables (if any) */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  td,
  th {
    border: 1px solid #000;
    padding: 5pt;
  }

  /* Compact version for brochure */
  .brochure-mode .section {
    margin-bottom: 10pt;
  }

  .brochure-mode h2 {
    font-size: 14pt;
    margin-top: 10pt;
  }

  .brochure-mode p {
    font-size: 10pt;
    margin-bottom: 5pt;
  }
}
