/* ==========================================================================
   WordHero (单词小英雄) - Printable Report & Certificate Stylesheet
   ========================================================================== */

@media print {
  /* Hide non-printable elements */
  body {
    background: white !important;
    color: #1e293b !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header,
  .site-footer,
  .nav-tabs,
  .nav-controls,
  .result-toolbar,
  .btn,
  .btn-icon,
  .modal-overlay,
  .violation-popup,
  .hero-welcome,
  .import-section,
  .exam-section,
  .memory-section {
    display: none !important;
  }

  .main-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .view-section {
    display: none !important;
  }

  #report-view {
    display: block !important;
  }

  /* Printable Certificate Layout */
  .printable-certificate {
    border: 6px double #4f46e5 !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    margin: 1.5rem auto !important;
    background: white !important;
    box-shadow: none !important;
    page-break-after: avoid !important;
    position: relative;
  }

  .printable-certificate::before {
    content: "★ ★ ★ ★ ★";
    display: block;
    text-align: center;
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5rem;
  }

  .report-header-banner {
    background: transparent !important;
    color: #1e293b !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
  }

  .report-header-banner h2 {
    font-size: 2.2rem !important;
    color: #1e1b4b !important;
  }

  .report-score-display {
    color: #4f46e5 !important;
    font-size: 3rem !important;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .stat-box {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    padding: 0.75rem !important;
  }

  .stat-box-num {
    font-size: 1.4rem !important;
  }

  /* Anti-cheat violation log in print */
  .violation-card {
    border: 1px dashed #ef4444 !important;
    background: #fff5f5 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Word Table */
  .word-table-wrapper {
    max-height: none !important;
    overflow: visible !important;
    border: 1px solid #cbd5e1 !important;
  }

  .word-table th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 2px solid #cbd5e1 !important;
  }

  .word-table td {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0.5rem 0.75rem !important;
  }

  /* Parent Signature & Verification Section */
  .print-signature-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 3rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #cbd5e1 !important;
  }

  .signature-box {
    width: 45% !important;
  }

  .signature-line {
    border-bottom: 1px solid #475569 !important;
    height: 40px !important;
    margin-top: 0.5rem !important;
  }
}

.print-signature-row {
  display: none;
}
