/**
 * CTA Tracker - Swiss Minimalism
 * Grid-based, clean, functional design with real CTA colors
 */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.5;
  padding: 40px 20px;
  font-weight: 400;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
}

/* Header */
.header {
  margin-bottom: 60px;
  border-bottom: 2px solid #000000;
  padding-bottom: 20px;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.last-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dot {
  width: 6px;
  height: 6px;
  background: #000000;
  border-radius: 50%;
}

/* Sections */
.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
}

.icon {
  display: none;
}

/* Predictions Container */
.predictions-container {
  background: transparent;
  border: none;
  padding: 0;
  min-height: auto;
  transition: opacity 0.2s ease;
}

/* Loading State */
.loading {
  text-align: left;
  color: #666666;
  padding: 20px 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Prediction Card */
.prediction-card {
  background: #ffffff;
  border: none;
  border-top: 1px solid #000000;
  padding: 24px 0;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.prediction-card:last-child {
  border-bottom: 1px solid #000000;
}

/* Card Header */
.card-header {
  display: contents;
}

.route-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* CTA Line Badges with Official Colors */
.route-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  background: #000000;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
}

/* Official CTA Line Colors */
.line-red {
  background: #C60C30 !important;
  color: #ffffff;
}

.line-blue {
  background: #00A1DE !important;
  color: #ffffff;
}

.line-brown {
  background: #62361B !important;
  color: #ffffff;
}

.line-green {
  background: #009B3A !important;
  color: #ffffff;
}

.line-orange {
  background: #F9461C !important;
  color: #ffffff;
}

.line-pink {
  background: #E27EA6 !important;
  color: #ffffff;
}

.line-purple {
  background: #522398 !important;
  color: #ffffff;
}

.line-yellow {
  background: #F9E300 !important;
  color: #000000;
}

/* Buses use CTA Blue */
.bus-badge {
  background: #00A1DE !important;
  color: #ffffff;
}

.destination {
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

/* Arrivals */
.arrivals {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-self: end;
}

.arrival-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  min-width: 60px;
  text-align: right;
  transition: all 0.2s;
}

.next-arrival {
  color: #000000;
  opacity: 1;
}

.future-arrival {
  font-size: 1.25rem;
  opacity: 0.4;
}

.arrival-separator {
  color: #cccccc;
  font-size: 1rem;
  font-weight: 300;
}

/* No predictions state */
.no-predictions {
  text-align: left;
  color: #666666;
  padding: 20px 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Error Container */
.error-container {
  position: fixed;
  top: 40px;
  right: 40px;
  max-width: 400px;
  z-index: 1000;
}

.error-message {
  background: #000000;
  color: #ffffff;
  padding: 20px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #000000;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #cccccc;
  color: #999999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer p {
  margin: 8px 0;
}

.footer-link {
  color: #00A1DE;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-link:visited {
  color: #00A1DE;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 24px 16px;
  }

  .title {
    font-size: 2rem;
  }

  .header {
    margin-bottom: 40px;
  }

  .section {
    margin-bottom: 40px;
  }

  .prediction-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .arrivals {
    justify-self: start;
  }

  .arrival-time {
    font-size: 1.25rem;
    min-width: 50px;
  }

  .future-arrival {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .route-badge {
    min-width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .destination {
    font-size: 1rem;
  }
}
