/* ========================================
   SIMPLE RESULTS PAGE STYLES
   ======================================== */

.eci-simple-results {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.eci-simple-results h2 {
  color: #2C3E50;
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

/* Result Stage Box */
.result-stage-box {
  background: #ECF0F1;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
  border-left: 5px solid #3498DB;
  text-align: center;
}

.stage-title {
  color: #2C3E50;
  font-size: 28px;
  margin: 0 0 15px 0;
}

.stage-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Total Score */
.total-score-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  margin: 30px 0;
}

.score-number {
  font-size: 72px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

.score-label {
  font-size: 20px;
  margin: 10px 0 0 0;
  opacity: 0.9;
}

/* Dimensions Overview */
.dimensions-overview {
  background: #F8F9FA;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

.dimensions-overview h3 {
  color: #2C3E50;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 20px;
}

.dimension-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #DDD;
}

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

.dimension-name {
  font-size: 16px;
  color: #555;
}

.dimension-score {
  font-size: 18px;
  color: #27AE60;
}

.dimension-score strong {
  font-size: 24px;
}

/* Comprehensive Analysis CTA */
.comprehensive-cta {
  margin: 50px 0;
}

.cta-box {
  background: #FFF3CD;
  border: 2px solid #FFE69C;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

.cta-box h3 {
  color: #856404;
  font-size: 26px;
  margin-top: 0;
}

.cta-box p {
  font-size: 16px;
  color: #856404;
  margin: 20px 0;
}

.cta-box ul {
  text-align: left;
  max-width: 500px;
  margin: 20px auto;
  color: #856404;
}

.cta-box li {
  margin: 10px 0;
  font-size: 15px;
}

/* Email Gate */
.email-gate {
  margin: 40px 0;
}

.email-gate-box {
  background: #F8F9FA;
  padding: 40px;
  border-radius: 10px;
  border: 2px solid #3498DB;
}

.email-gate-box h3 {
  color: #2C3E50;
  font-size: 24px;
  margin-top: 0;
}

.email-gate-box p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
  background: #27AE60;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-primary:hover {
  background: #229954;
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 50px;
  font-size: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .dimension-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .score-number {
    font-size: 56px;
  }
  
  .cta-box {
    padding: 30px 20px;
  }
}



/* ========================================
   COMPREHENSIVE ANALYSIS PAGE STYLES
   ======================================== */

.eci-comprehensive-analysis {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Print Button (Screen only) */
.print-action-section {
  text-align: center;
  margin: 30px 0 50px 0;
  padding: 30px;
  background: #F0F8FF;
  border-radius: 10px;
  border: 2px solid #3498DB;
}

.btn-print-pdf {
  background: #3498DB;
  color: white;
  border: none;
  padding: 18px 50px;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.btn-print-pdf:hover {
  background: #2980B9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.print-help {
  margin-top: 15px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Analysis Sections */
.analysis-section {
  margin-bottom: 50px;
}

.analysis-section h2 {
  color: #2C3E50;
  font-size: 28px;
  margin-bottom: 20px;
  border-bottom: 3px solid #3498DB;
  padding-bottom: 10px;
}

.analysis-section h3 {
  color: #34495E;
  font-size: 22px;
  margin-top: 25px;
  margin-bottom: 15px;
}

.analysis-section h4 {
  color: #34495E;
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.analysis-section p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.analysis-section ul {
  margin: 15px 0;
  padding-left: 25px;
}

.analysis-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Result Stage (Full version) */
.result-stage-full {
  padding: 30px;
  border-radius: 10px;
  margin: 25px 0;
  border-left: 5px solid;
  page-break-inside: avoid;
}

.stage-high {
  background: #D5F4E6;
  border-left-color: #27AE60;
}

.stage-medium {
  background: #FFF3CD;
  border-left-color: #F39C12;
}

.stage-low {
  background: #EBF5FB;
  border-left-color: #3498DB;
}

.result-stage-full h3 {
  margin-top: 0;
  color: #2C3E50;
  font-size: 24px;
}

/* Total Score */
.total-score-full {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 50px;
  border-radius: 12px;
  margin: 30px 0;
  page-break-inside: avoid;
}

.score-big {
  font-size: 72px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

.score-text {
  font-size: 22px;
  margin: 15px 0 0 0;
  opacity: 0.95;
}

/* Dimensions (Full) */
.dimension-full {
  background: #F8F9FA;
  padding: 25px;
  margin: 25px 0;
  border-radius: 10px;
  border-left: 4px solid #3498DB;
  page-break-inside: avoid;
}

.dimension-full h3 {
  color: #2C3E50;
  margin-top: 0;
  font-size: 22px;
}

.dimension-score-full {
  color: #27AE60;
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0;
}

.dimension-score-full strong {
  font-size: 26px;
}

/* Interpretation Note */
.interpretation-note {
  background: #FFF3CD;
  border: 2px solid #FFE69C;
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  page-break-inside: avoid;
}

.interpretation-note h4 {
  color: #856404;
  margin-top: 0;
}

.interpretation-note p {
  color: #856404;
  margin-bottom: 0;
}

/* Footer Section */
.footer-section {
  border-top: 2px solid #ddd;
  padding-top: 30px;
  margin-top: 50px;
}

.footer-info {
  background: #F8F9FA;
  padding: 25px;
  border-radius: 10px;
  margin-top: 20px;
}

.footer-info p {
  margin: 15px 0;
}

.version-info {
  font-size: 12px;
  color: #999;
  margin-top: 20px !important;
  text-align: center;
}

/* Hide print-only elements on screen */
.print-only {
  display: none;
}

.page-break {
  display: none;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  /* Page Setup */
  @page {
    size: A4;
    margin: 20mm 25mm;
  }
  
  body {
    font-size: 11pt;
    line-height: 1.4;
    color: #000;
  }
  
  /* Hide screen-only elements */
  .no-print,
  .print-action-section,
  header,
  footer,
  nav,
  .site-header,
  .site-footer {
    display: none !important;
  }
  
  /* Show print-only elements */
  .print-only {
    display: block !important;
  }
  
  /* Cover Page */
  .cover-page {
    page-break-after: always;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cover-content {
    text-align: center;
  }
  
  .cover-content h1 {
    font-size: 36pt;
    margin-bottom: 20px;
  }
  
  .cover-content h2 {
    font-size: 24pt;
    color: #666;
  }
  
  .cover-date {
    margin-top: 40px;
    font-size: 12pt;
    color: #666;
  }
  
  /* Page Breaks */
  .page-break {
    display: block;
    page-break-after: always;
  }
  
  /* Avoid breaking inside elements */
  .dimension-full,
  .result-stage-full,
  .interpretation-note,
  .analysis-section {
    page-break-inside: avoid;
  }
  
  /* Headings */
  h1, h2, h3, h4 {
    page-break-after: avoid;
    color: #000;
  }
  
  h2 {
    font-size: 18pt;
    margin-top: 0;
  }
  
  h3 {
    font-size: 14pt;
  }
  
  h4 {
    font-size: 12pt;
  }
  
  /* Remove background colors for print */
  .result-stage-full,
  .dimension-full {
    background: none !important;
    border: 1px solid #ccc;
  }
  
  .total-score-full {
    background: #f5f5f5 !important;
    color: #000 !important;
    border: 2px solid #000;
  }
  
  .interpretation-note,
  .footer-info {
    background: none !important;
    border: 2px solid #000;
  }
  
  /* Lists */
  ul {
    margin-left: 20px;
  }
  
  li {
    margin-bottom: 5pt;
  }
  
  /* Links */
  a {
    color: #000;
    text-decoration: none;
  }
  
  /* Ensure full width for PDF */
  .eci-comprehensive-analysis {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
}