/**
 * Airport Code Display Styles
 * Styles for displaying airport codes with type micro-headers (IATA, ICAO, GPS, Local)
 */

/* Container for airport codes */
.airport-codes-container {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.airport-codes-inline {
  flex-direction: row;
  align-items: center;
}

.airport-codes-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Separator between codes (/) */
.airport-code-separator {
  color: var(--gray-400);
  font-weight: 300;
  margin: 0 1px;
  opacity: 0.6;
  font-size: 0.875em;
}

/* Individual code item with type header */
.airport-code-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

/* Code type micro-header (IATA, ICAO, etc.) */
.airport-code-type {
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  line-height: 1;
  font-family: var(--font-body);
}

/* Code value */
.airport-code-value {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #000;
  line-height: 1.1;
}

/* Size variants */

/* Small - for compact views */
.airport-code-small .airport-code-type {
  font-size: 7px;
}

.airport-code-small .airport-code-value {
  font-size: 0.875rem;
}

/* Medium (default) - standard detail views */
.airport-code-medium .airport-code-type {
  font-size: 8px;
}

.airport-code-medium .airport-code-value {
  font-size: 1.25rem;
}

/* Large - prominent displays */
.airport-code-large .airport-code-type {
  font-size: 9px;
}

.airport-code-large .airport-code-value {
  font-size: 1.1rem;
}

/* Extra large - hero displays */
.airport-code-xlarge .airport-code-type {
  font-size: 10px;
}

.airport-code-xlarge .airport-code-value {
  font-size: 2rem;
}

/* Empty state */
.airport-code-empty {
  color: var(--gray-400);
  font-style: italic;
}

/* Center codes in route/airport detail contexts */
.route-display .airport-codes-container,
.airport-detail .airport-codes-container {
  justify-content: center;
}

.route-display .airport-code-item {
  min-width: 48px;
}

.route-display .airport-code-value {
  color: #000;
}

/* Stacked layout adjustments */
.airport-codes-stacked .airport-code-item {
  align-items: flex-start;
}

.airport-codes-stacked .airport-code-separator {
  display: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .airport-code-type {
    color: var(--gray-500);
  }

  .airport-code-separator {
    color: var(--gray-600);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .airport-code-large .airport-code-value {
    font-size: 1.25rem;
  }

  .airport-code-xlarge .airport-code-value {
    font-size: 1.5rem;
  }

  .airport-code-type {
    font-size: 7px;
  }
}
