/**
 * Optimize Results Page Styles
 *
 * Mobile-first, accessible, animated components for CV optimization results
 * WCAG 2.1 AA compliant (contrast ratio >= 4.5:1)
 */

/* ==========================================================================
   0. Global Zero Horizontal Scroll
   ========================================================================== */

body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* ==========================================================================
   1. CSS Variables & Theme
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #3b82f6;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Grays */
  --color-gray-50: #f6f7f8; /* Warm gray to match site */
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ==========================================================================
   2. Score Gauge Component
   ========================================================================== */

.score-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.score-gauge-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-600);
}

.score-gauge-container {
  position: relative;
  display: inline-block;
}

.score-gauge-svg {
  display: block;
  transform: rotate(0deg);
}

.score-gauge-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-gauge-value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.score-gauge-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   3. Score Comparison
   ========================================================================== */

.scores-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  .scores-comparison {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .score-delta {
    order: -1; /* Show delta first on mobile */
  }
}

.score-delta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
}

.delta-arrow {
  font-size: 2rem;
  line-height: 1;
}

.delta-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.delta-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-600);
  text-transform: uppercase;
}

/* ==========================================================================
   4. Dimensional Breakdown
   ========================================================================== */

.dimensional-breakdown {
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

.breakdown-title {
  font-size: 1.25rem; /* Smaller for balance */
  font-weight: 600; /* Semibold, not bold */
  color: #1e293b; /* Explicit gray-900 */
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb; /* Subtle separator */
}

.breakdown-description {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-xl);
}

.dimensions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.dimension-row {
  padding: 1.5rem;
  background: #ffffff; /* White nested card */
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle elevation */
}

.dimension-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Elevated on hover */
  border-color: #cbd5e1; /* Slightly darker border */
}

.dimension-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.dimension-icon {
  font-size: 2rem;
  line-height: 1;
}

.dimension-info {
  flex: 1;
}

.dimension-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-xs);
}

.dimension-description {
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.dimension-scores {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

.score-before {
  color: var(--color-gray-600);
}

.score-after {
  font-weight: 600;
  color: var(--color-gray-900);
}

.score-delta {
  font-weight: 700;
  padding: var(--space-xs) var(--space-sm);
  background: white;
  border-radius: var(--radius-sm);
}

.dimension-bar-container {
  margin-bottom: var(--space-md);
}

.dimension-bar-bg {
  position: relative;
  width: 100%;
  height: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dimension-bar-before,
.dimension-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-md);
  transition: width var(--transition-slow);
}

.dimension-bar-before {
  opacity: 0.3;
}

.dimension-reason {
  margin-top: var(--space-md);
}

.reason-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  transition: all var(--transition-fast);
}

.reason-toggle:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

.reason-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.reason-content {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: white;
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-gray-700);
  line-height: 1.6;
}

/* ==========================================================================
   5. Improvements List
   ========================================================================== */

.improvements-list {
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

.improvements-header {
  margin-bottom: var(--space-xl);
}

.improvements-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.improvements-count {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gray-600);
}

.improvements-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-right: var(--space-sm);
}

.filter-btn {
  padding: var(--space-sm) var(--space-md);
  background: white;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--filter-color, var(--color-gray-400));
  background: var(--color-gray-50);
}

.filter-btn.active {
  background: var(--filter-color, var(--color-primary));
  border-color: var(--filter-color, var(--color-primary));
  color: white;
}

.filter-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.filter-clear {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-gray-700);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.filter-clear:hover {
  background: var(--color-gray-800);
}

.improvements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Medium screens: 2 columns */
@media (min-width: 768px) {
  .improvements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens: 3 columns */
@media (min-width: 1280px) {
  .improvements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.improvement-card {
  padding: 1.5rem;
  background: #ffffff; /* White card */
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.improvement-card:hover {
  border-color: #137fec; /* Primary color on hover */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.improvement-badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.improvement-content {
  margin-bottom: var(--space-md);
}

.improvement-before,
.improvement-after {
  margin-bottom: var(--space-md);
}

.improvement-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: var(--space-xs);
}

.improvement-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-gray-900);
}

.improvement-after .improvement-text {
  font-weight: 500;
}

.diff-highlight {
  background: rgba(16, 185, 129, 0.2);
  padding: 0 var(--space-xs);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.improvement-reason {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-gray-700);
  line-height: 1.5;
}

.reason-icon {
  flex-shrink: 0;
}

.improvement-type {
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.improvements-empty {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--color-gray-600);
}

.improvements-actions {
  margin-top: var(--space-xl);
  text-align: center;
}

.btn-show-more,
.btn-show-less {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-show-more:hover,
.btn-show-less:hover {
  background: var(--color-primary);
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-show-more:focus,
.btn-show-less:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   6. Meta Information
   ========================================================================== */

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-gray-700);
}

.meta-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   7. Results Container
   ========================================================================== */

#optimization-results {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.results-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.results-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-md);
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (min-width: 640px) {
  .results-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-primary,
.btn-secondary {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}

.btn-primary {
  background: #137fec; /* Primary blue to match site */
  color: white;
}

.btn-primary:hover {
  background: #0c63c7; /* Darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(19, 127, 236, 0.3); /* Blue shadow */
}

.btn-secondary {
  background: white;
  color: var(--color-gray-900);
  border: 2px solid var(--color-gray-300);
}

.btn-secondary:hover {
  border-color: var(--color-gray-400);
  background: var(--color-gray-50);
}

/* ==========================================================================
   8. Animations
   ========================================================================== */

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   9. Accessibility (Screen Reader Only)
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   10. Loading States
   ========================================================================== */

.optimization-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--space-2xl);
}

.loading-content {
  text-align: center;
  max-width: 500px;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
}

.spinner-svg {
  animation: rotate 2s linear infinite;
}

.spinner-circle {
  stroke: var(--color-primary);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.loading-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-lg);
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.loading-step.active {
  opacity: 1;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.step-icon {
  font-size: 1.5rem;
}

.step-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
}

.loading-estimate {
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

/* Error States */
.optimization-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: var(--space-2xl);
}

.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-danger);
  color: white;
  border-radius: var(--radius-lg);
  max-width: 500px;
  text-align: center;
}

.error-icon {
  font-size: 3rem;
}

.error-text {
  font-size: 1rem;
  line-height: 1.5;
}

/* Results Container */
.optimization-results-container {
  animation: fadeInUp 0.6s ease forwards;
}

.results-subtitle {
  font-size: 1rem;
  color: var(--color-gray-600);
  margin-top: var(--space-sm);
}

.results-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .results-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.summary-message,
.summary-stats {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.summary-stats {
  display: flex;
  gap: var(--space-lg);
  justify-content: space-around;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-gray-600);
  text-transform: uppercase;
  text-align: center;
}

/* Action Buttons Enhanced */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-icon {
  font-size: 1.25rem;
}

.btn-tertiary {
  background: var(--color-gray-200);
  color: var(--color-gray-900);
}

.btn-tertiary:hover {
  background: var(--color-gray-300);
}

/* ==========================================================================
   11. 2-Column Optimize Layout (CV Fixo 100vh + Scroll Apenas Painel)
   ========================================================================== */

/* Desktop/Tablet: 65/35 layout, CV fixo completo, scroll apenas painel */
#optimize-two-column-layout {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 1.5rem;
  height: 100vh;
  max-height: 100vh;
  overflow-y: hidden;  /* SEM scroll externo */
  overflow-x: hidden;  /* SEM scroll horizontal */
  padding: 1rem;
  max-width: 100vw;
}

/* CV Preview: FIXO e COMPLETO (100vh sem scroll) */
#cv-preview-live-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  height: 100vh;
  overflow-y: hidden;  /* SEM scroll no CV */
  overflow-x: hidden;  /* SEM scroll horizontal */
  display: flex;
  flex-direction: column;
}

/* Escalar CV para caber na altura disponível */
#cv-preview-live {
  transform: scale(0.85);  /* Reduzir para caber tudo */
  transform-origin: top left;
  width: 117.6%;  /* Compensar escala (100% / 0.85) */
  font-size: 0.85rem;  /* Texto mais compacto */
  line-height: 1.4;
}

/* Painel de Mudanças: SCROLL VERTICAL permitido */
#changes-panel-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  padding-right: 0.5rem;
  height: 100vh;
  overflow-y: auto;  /* SCROLL APENAS AQUI */
  overflow-x: hidden;  /* SEM scroll horizontal */
}

/* Smooth scrollbars */
#cv-preview-live-container::-webkit-scrollbar,
#changes-panel-container::-webkit-scrollbar {
  width: 8px;
}

#cv-preview-live-container::-webkit-scrollbar-track,
#changes-panel-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#cv-preview-live-container::-webkit-scrollbar-thumb,
#changes-panel-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#cv-preview-live-container::-webkit-scrollbar-thumb:hover,
#changes-panel-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile: Stack vertically, allow scroll em ambos */
@media (max-width: 768px) {
  #optimize-two-column-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow-y: auto;  /* Scroll no layout mobile */
    overflow-x: hidden;
  }

  #cv-preview-live-container,
  #changes-panel-container {
    height: auto;  /* Altura automática no mobile */
    max-height: none;
    overflow-y: visible;
  }

  /* Mobile: CV não precisa ser escalonado */
  #cv-preview-live {
    transform: none;
    width: 100%;
    font-size: 1rem;
  }
}

/* ==========================================================================
   12. Simplified Change Cards (Professional)
   ========================================================================== */

.change-card {
  display: grid;
  grid-template-columns: 20px 32px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: white;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.change-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.change-icon {
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.change-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.section-name {
  font-weight: 600;
  color: #1e293b;
}

.change-type {
  color: #64748b;
}

.score-impact {
  margin-left: auto;
  color: #10b981;
  font-weight: 600;
}

.change-summary {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

.changes-list-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.changes-count {
  font-size: 0.875rem;
  color: #64748b;
}

/* ==========================================================================
   13. Print Styles
   ========================================================================== */

@media print {
  .improvements-filters,
  .results-actions,
  .reason-toggle {
    display: none;
  }

  .reason-content {
    display: block !important;
  }

  .improvement-card {
    break-inside: avoid;
  }

  #optimize-two-column-layout {
    grid-template-columns: 1fr;
  }

  #changes-panel-container {
    display: none;
  }
}
