/* ================================================================
   Upcoming Trip Widget (PRD 1)
   ================================================================ */
.upcoming-widget {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
.upcoming-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.upcoming-widget-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-md);
  color: var(--color-text-primary);
}
.upcoming-widget-count {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.upcoming-card {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: background 0.15s;
}
.upcoming-card:last-child { border-bottom: none; }
.upcoming-card:hover { opacity: 0.85; }

.upcoming-card-detail {
  border-bottom: none;
}
.upcoming-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2);
}
.upcoming-card-more {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-3) 0;
  border-bottom: none;
}
.upcoming-card-action {
  font-size: var(--text-sm);
  color: var(--color-primary);
  white-space: nowrap;
}

/* Countdown urgency colors */
.countdown-text {
  font-weight: var(--font-semibold);
  transition: opacity 0.15s;
}
.countdown-urgent { color: #D14343; }
.countdown-soon { color: var(--color-warning); }
.countdown-normal { color: var(--color-station); }
.countdown-later { color: var(--text-tertiary); }
.countdown-ongoing { color: var(--color-success); }

/* Upcoming page */
.upcoming-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
}
.upcoming-page-header {
  margin-bottom: var(--space-6);
}
.upcoming-page-summary {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}
.upcoming-empty {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  color: var(--text-secondary);
}
.upcoming-empty p {
  margin: var(--space-4) 0;
}
.upcoming-trip-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.upcoming-trip-item {
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.15s;
}
.upcoming-trip-item:hover {
  box-shadow: var(--shadow-md);
}
.upcoming-trip-item-top {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.upcoming-trip-train {
  font-weight: var(--font-bold);
  font-size: var(--text-md);
  color: var(--color-train);
}
.upcoming-trip-route {
  font-size: var(--text-base);
  color: var(--color-text-primary);
}
.upcoming-trip-item-mid {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}
.upcoming-trip-item-bottom {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.upcoming-trip-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================================================================
   Welcome Guide Modal (PRD 2)
   ================================================================ */
.welcome-guide-overlay {
  z-index: 1000;
}
.welcome-guide-modal {
  background: var(--color-bg-surface);
  border-radius: var(--radius-xl);
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8) var(--space-6);
  position: relative;
  animation: welcomeSlideIn 0.3s ease;
}
@keyframes welcomeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.welcome-progress-steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.welcome-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.2s;
}
.welcome-step-dot.active { background: var(--color-primary); }
.welcome-step-dot.done { background: var(--color-success); }
.welcome-step-line {
  width: 24px;
  height: 2px;
  background: var(--color-border);
  transition: background 0.2s;
}
.welcome-step-line.active { background: var(--color-primary); }
.welcome-step-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.welcome-step-content {
  animation: welcomeFadeIn 0.25s ease;
}
@keyframes welcomeFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.welcome-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}
.welcome-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.welcome-search-box {
  position: relative;
  margin-bottom: var(--space-4);
}
.welcome-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  background: var(--color-bg-app);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.welcome-search-input:focus {
  border-color: var(--color-primary);
}
.welcome-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}
.welcome-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.15s;
}
.welcome-search-item:hover { background: var(--color-bg-hover); }
.welcome-search-item:last-child { border-bottom: none; }
.welcome-city-name { font-weight: var(--font-medium); }
.welcome-city-stations { font-size: var(--text-xs); color: var(--text-tertiary); }

.welcome-hot-cities {
  margin-bottom: var(--space-5);
}
.welcome-hot-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
  display: block;
}
.welcome-hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.welcome-hot-btn {
  padding: 10px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-app);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.welcome-hot-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}

.welcome-station-list {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: var(--space-2);
}
.welcome-station-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 0;
  cursor: pointer;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-border-light);
}
.welcome-station-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.welcome-station-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.welcome-discount-list {
  margin-bottom: var(--space-5);
}
.welcome-discount-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 0;
  cursor: pointer;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-border-light);
}
.welcome-discount-item input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.welcome-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.welcome-skip {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  cursor: pointer;
  padding: 8px 0;
}
.welcome-skip:hover { color: var(--text-secondary); }
.welcome-next {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: background 0.15s;
}
.welcome-next:hover { background: var(--color-primary-hover); }
.welcome-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.welcome-complete {
  text-align: center;
  padding: var(--space-6) 0;
}
.welcome-complete-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

