/* Canlı Marmaray sıradaki tren widget'ı — canli-marmaray-saatleri.html ve
   widget/marmaray-saatleri-embed.html tarafından paylaşılan stil dosyası.
   canli-marmaray-saatleri.js bu sınıf adlarına yazar; ikisi birlikte değişmeli. */

.live-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(210px, auto);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.clock-panel {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #f8fbff;
  text-align: center;
}

.clock-panel span {
  display: block;
  color: #4b5563;
  font-size: 0.9rem;
}

.clock-panel strong {
  display: block;
  color: #1e3c72;
  font-size: 1.35rem;
  line-height: 1.3;
}

.quick-stations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 1.5rem;
}

.quick-stations button {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: #eef7f5;
  color: #0e7c6b;
  box-shadow: none;
  font-weight: 700;
}

.quick-stations button:hover {
  background: #d9f0eb;
  box-shadow: none;
}

.selected-station {
  margin: 0.5rem 0 1rem;
  color: #1e3c72;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.service-status[data-state="off"] {
  color: #c53030;
}

.live-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.direction-board {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.direction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #1e3c72;
  color: #fff;
  padding: 0.9rem 1rem;
}

.direction-heading h3 {
  margin: 0;
  font-size: 1.05rem;
}

.direction-heading span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  white-space: nowrap;
}

.train-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.train-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5edf5;
}

.train-row:last-child {
  border-bottom: 0;
}

.train-row strong,
.train-row span {
  display: block;
}

.train-row strong {
  color: #1f2937;
  font-size: 1rem;
}

.train-row span {
  color: #64748b;
  font-size: 0.9rem;
}

.train-due {
  min-width: 70px;
  border-radius: 8px;
  background: #0e7c6b;
  color: #fff !important;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
  text-align: center;
  white-space: nowrap;
}

.empty-state {
  color: #64748b;
  margin: 0;
  padding: 1rem;
}

@media (max-width: 768px) {
  .live-toolbar,
  .live-board {
    grid-template-columns: 1fr;
  }

  .direction-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .train-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .train-due {
    min-width: 100%;
  }
}
