/* Shared blog post components */

.callout {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
  padding: 0.8rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.callout.red {
  background: #fff0f0;
  border-left-color: #ef4444;
}

.metric-row {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

.metric {
  background: white;
  border: 2px solid var(--mint);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.metric .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--mint-dark);
  display: block;
}

.metric .label {
  font-size: 0.75rem;
  color: var(--purple-light);
}

.diagram {
  background: white;
  border: 1px solid var(--pink-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: var(--purple);
}

/* Route map viewer */

.route-viewer {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pink-light);
  margin: 1.5rem 0;
}

.route-viewer .map {
  height: 400px;
  width: 100%;
}

.viewer-controls {
  background: white;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--pink-light);
}

.viewer-controls label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  display: block;
  margin-bottom: 4px;
}

.viewer-controls input[type="range"] {
  width: 100%;
  accent-color: var(--mint-dark);
}

.viewer-controls .label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
  min-width: 160px;
}

.viewer-controls .score {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mint-dark);
  min-width: 50px;
  text-align: right;
}

.viewer-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.viewer-row select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--pink-light);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
}

.hint-value {
  font-family: monospace;
  font-weight: 700;
  color: var(--mint-dark);
  font-size: 0.95rem;
  min-width: 36px;
  text-align: right;
}

.viewer-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--purple-light);
}

.viewer-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.viewer-legend .dot {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.play-btn {
  border: 2px solid var(--mint-dark);
  background: none;
  color: var(--mint-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn:hover {
  background: var(--mint-dark);
  color: white;
}

/* Results table */

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 1rem 0 1.5rem;
}

.results-table th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid var(--purple);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--purple-light);
}

.results-table td {
  padding: 0.3rem 0.6rem;
  border-bottom: 1px solid var(--pink-light);
}

.results-table .keep { color: var(--mint-dark); font-weight: 600; }
.results-table .revert { color: var(--purple-light); }
.results-table .cheat { color: #ef4444; font-weight: 600; }
.results-table .mono { font-family: monospace; font-size: 0.8rem; }
