/* ============================================================
 * TIER 13 — First & Last Train Times
 * Prefix: t13-
 * ============================================================ */

/* ============ SINGLE LINE CARD ============ */
.t13-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  background: var(--bg-card, #1a1d2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 12px);
  position: relative;
  overflow: hidden;
  animation: t13-fadeIn 0.25s ease-out;
}
@keyframes t13-fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.t13-card .t13-line-dot {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.t13-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1;
}

.t13-content {
  flex: 1;
  min-width: 0;
}

.t13-message {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e8eaed);
  line-height: 1.3;
  letter-spacing: -0.1px;
}

.t13-detail {
  font-size: 11px;
  color: var(--dim, #6b7280);
  margin-top: 2px;
  line-height: 1.3;
}

.t13-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dim, #6b7280);
  background: rgba(255,255,255,0.05);
  padding: 3px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Status variants ---- */

/* Normal */
.t13-card.t13-normal {
  border-color: rgba(255,255,255,0.08);
}

/* Night Tube */
.t13-card.t13-night-tube {
  background: linear-gradient(135deg, rgba(76,154,255,0.1) 0%, rgba(139,92,246,0.08) 100%);
  border-color: rgba(76,154,255,0.2);
}
.t13-card.t13-night-tube .t13-message {
  color: var(--accent, #4c9aff);
}

/* Warning — approaching last train */
.t13-card.t13-warning {
  background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.05) 100%);
  border-color: rgba(245,158,11,0.25);
}
.t13-card.t13-warning .t13-message {
  color: var(--amber, #f59e0b);
}

/* Gone — last train has departed */
.t13-card.t13-gone {
  background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(239,68,68,0.04) 100%);
  border-color: rgba(239,68,68,0.2);
}
.t13-card.t13-gone .t13-message {
  color: var(--red, #ef4444);
}
.t13-card.t13-gone .t13-detail {
  color: var(--green, #36b37e);
}

/* Closed */
.t13-card.t13-closed {
  opacity: 0.65;
}
.t13-card.t13-closed .t13-message {
  color: var(--dim, #6b7280);
}

/* ============ MULTI-LINE CARD ============ */
.t13-multi-card {
  margin: 10px 0;
  background: var(--bg-card, #1a1d2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 12px);
  overflow: hidden;
  animation: t13-fadeIn 0.25s ease-out;
}

.t13-multi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dim, #6b7280);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}

.t13-multi-icon {
  font-size: 14px;
  line-height: 1;
}

.t13-multi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.t13-multi-row:last-child {
  border-bottom: none;
}

.t13-multi-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e8eaed);
  min-width: 0;
  flex-shrink: 0;
}

.t13-multi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.t13-multi-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #e8eaed);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.t13-first-text,
.t13-last-text {
  color: var(--text, #e8eaed);
  font-weight: 600;
}

.t13-sep {
  color: var(--dim, #6b7280);
  margin: 0 2px;
  font-size: 11px;
}

.t13-closed-text {
  color: var(--dim, #6b7280);
  font-style: italic;
  font-weight: 400;
}

.t13-night-text {
  color: var(--accent, #4c9aff);
  font-weight: 600;
}

.t13-gone-text {
  color: var(--red, #ef4444);
  font-weight: 600;
  margin-right: 6px;
}

.t13-next-text {
  color: var(--green, #36b37e);
  font-size: 11px;
  font-weight: 500;
}

.t13-warn-text {
  color: var(--amber, #f59e0b);
  font-weight: 700;
}

/* ---- Multi-row status variants ---- */
.t13-multi-row.t13-warning {
  background: rgba(245,158,11,0.06);
}

.t13-multi-row.t13-gone {
  background: rgba(239,68,68,0.04);
}

.t13-multi-row.t13-night-tube {
  background: rgba(76,154,255,0.06);
}

.t13-multi-row.t13-closed {
  opacity: 0.5;
}
