/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.analysis-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.025em;
}

.analysis-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.analysis-content p {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.analysis-content strong {
  font-weight: 600;
  color: #1a1a1a;
}

.analysis-content ul,
.analysis-content ol {
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.analysis-content ul {
  list-style-type: disc;
}

.analysis-content ol {
  list-style-type: decimal;
}

.analysis-content li {
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.analysis-content blockquote {
  border-left: 3px solid #d1d5db;
  padding-left: 1rem;
  color: #6b7280;
  font-style: italic;
  margin: 0.75rem 0;
}

/* Views Heatmap Styles */
.heatmap-container {
  overflow-x: auto;
  padding: 1rem 0;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  gap: clamp(2px, 0.4vw, 4px);
  width: 100%;
  max-width: 1200px;
}

.heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  min-width: clamp(6px, 1.2vw, 14px);
  max-width: clamp(10px, 2vw, 20px);
  border-radius: clamp(1px, 0.2vw, 3px);
  cursor: pointer;
  transition: outline 0.1s ease;
}

.heatmap-cell:hover {
  outline: 1px solid #374151;
  outline-offset: 1px;
}

.heatmap-level-0 {
  background-color: #ebedf0;
}

.heatmap-level-1 {
  background-color: #FADBD8;
}

.heatmap-level-2 {
  background-color: #F5B7B1;
}

.heatmap-level-3 {
  background-color: #F1948A;
}

.heatmap-level-4 {
  background-color: #E85D3A;
}

.heatmap-tooltip {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 12px;
  color: #374151;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.heatmap-tooltip.hidden {
  display: none;
}

.heatmap-labels {
  display: flex;
  justify-content: space-between;
  min-width: 700px;
  margin-bottom: 4px;
  font-size: 10px;
  color: #6b7280;
  font-family: monospace;
}

.heatmap-wrapper {
  position: relative;
}

/* Vertical heatmap layout (GitHub-style: 7 rows × 53 weeks) */
.heatmap-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.4vw, 4px);
}

.heatmap-row {
  display: flex;
  gap: clamp(2px, 0.4vw, 4px);
}

.heatmap-row .heatmap-cell {
  flex: 1;
  max-width: clamp(10px, 2vw, 20px);
}
