/* Distance Bottom Sheet Styles */
/* Dashboard-style distance analytics */

.distance-sheet-content {
  padding: 0 24px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.elevation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.summary-stat:last-child {
  margin-bottom: 0;
}

.summary-label {
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
  display: block;
}

.summary-value {
  font-family: var(--_fonts---font-family--instrument-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--yellow);
  line-height: 1;
}

.elevation-chart-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  margin: 0 auto;
}

.elevation-chart-wrapper .sparkline-container {
  width: 100%;
  height: 100%;
}

.elevation-chart-wrapper .sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.elevation-chart-wrapper .axis-label {
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.elevation-chart-wrapper .axis-label-y {
  text-anchor: end;
}

.elevation-chart-wrapper .axis-label-x {
  text-anchor: middle;
}

.elevation-chart-wrapper .axis-label-year {
  font-size: 10px;
  fill: rgba(255, 255, 255, 0.5);
}

.elevation-chart-wrapper .axis-title {
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.45);
  user-select: none;
  pointer-events: none;
}

.elevation-chart-wrapper .sparkline-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.elevation-chart-wrapper .sparkline-tooltip .tooltip-date {
  font-weight: 500;
  color: var(--yellow);
  margin-bottom: 2px;
}

.elevation-chart-wrapper .sparkline-tooltip .tooltip-value {
  color: rgba(255, 255, 255, 0.9);
}

/* Error states */
.distance-empty,
.distance-error {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 14px;
}

.distance-error {
  color: #ff6b6b;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .distance-sheet-content {
    padding: 0 16px 16px;
  }

  .distance-summary {
    gap: 12px;
  }

  .summary-stat {
    min-width: 100px;
  }

  .monthly-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .monthly-stats {
    align-self: flex-end;
  }

  .month-day-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .month-day-distance {
    font-size: 14px;
    min-width: 50px;
  }

  .month-day-date {
    font-size: 13px;
    min-width: 65px;
  }

  .month-day-location {
    max-width: 100px;
  }
}