/* ═══════════════════════════════════════
   AlarmO'Clock — World Clock Page Styles
   (Shared hero/clock-display/analog/toggle styles live in clock-shared.css)
   ═══════════════════════════════════════ */

/* ── CITY TRIGGER (pill at top of hero) ── */
.wc-city-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  position: relative;
  z-index: 10;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: white;
}
.wc-city-trigger:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}
.wc-caret { font-size: 11px; opacity: 0.8; }

/* (.date-line lives in clock-shared.css) */

/* ── SECTION LABEL ── */
.wc-section-label { margin-bottom: 16px; font-size: 15px; }

/* ── CITY CARDS ── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.city-card {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 17px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
  box-shadow: 0 6px 20px rgba(100,60,180,0.10);
  background: var(--card-bg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.city-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(100,60,180,0.18); }
a.city-card { cursor: pointer; }

/* top row: name/abbr + status badge */
.city-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.city-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-strong);
  line-height: 1.1;
}
.city-tz-abbr {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.city-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.badge-arrow { width: 13px; height: 13px; color: #fff; }

.city-big-time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  line-height: 1;
}

.city-divider { height: 1px; width: 100%; background: var(--card-stroke); }

.city-status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 500;
  max-width: 100%;
}
.city-pill-icon { display: inline-flex; flex-shrink: 0; }
.pill-arrow, .pill-clock { width: 16px; height: 16px; }
.pill-clock { display: none; }

/* ── Tone: SAME (green) ── */
.city-card.tc-same .city-badge { background: none; }
.city-card.tc-same .badge-arrow { display: none; }
.city-card.tc-same .city-badge::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #16a34a; }
.city-card.tc-same .pill-arrow { display: none; }
.city-card.tc-same .pill-clock { display: inline-block; color: #16a34a; }
.city-card.tc-same .city-status-pill { background: rgba(22,163,74,0.10); color: #16a34a; }
.city-card.tc-same .city-divider { background: rgba(22,163,74,0.18); }

/* ── Tone: AHEAD (purple) ── */
.city-card.tc-ahead .city-badge { background: var(--accent); }
.city-card.tc-ahead .pill-arrow { color: var(--accent); }
.city-card.tc-ahead .city-status-pill { background: rgba(124,92,191,0.12); color: var(--accent); }
.city-card.tc-ahead .city-divider { background: rgba(124,92,191,0.18); }

/* ── Tone: BEHIND (coral/red) ── */
.city-card.tc-behind { background: linear-gradient(180deg, rgba(255,246,248,0.95) 0%, rgba(255,231,238,0.95) 100%); border-color: rgba(229,104,138,0.28); }
.city-card.tc-behind .city-badge { background: #e5688a; }
.city-card.tc-behind .badge-arrow { transform: rotate(180deg); }
.city-card.tc-behind .pill-arrow { color: #d94f78; transform: rotate(180deg); }
.city-card.tc-behind .city-status-pill { background: rgba(229,104,138,0.13); color: #d94f78; }
.city-card.tc-behind .city-divider { background: rgba(229,104,138,0.22); }

/* ── Hero clock spacing (mirror City Clock; #wcHero scoped) ── */
#wcHero .clock-display,
#wcHero .wc-analog { margin: 20px 0; }
@media (min-width: 769px) {
  #wcHero.hero--clock { padding: 0 0 40px; }
}

/* ── CITY PICKER DROPDOWN ── */
.wc-dropdown {
  position: fixed;
  z-index: 9999;
  min-width: 280px;
  max-width: 340px;
  width: min(340px, 90vw);
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(100,60,180,0.18);
  overflow: hidden;
}
.wc-dropdown-inner { display: flex; flex-direction: column; }
.wc-search {
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  outline: none;
}
.wc-search::placeholder { color: var(--muted); }
.wc-dropdown-list { max-height: 280px; overflow-y: auto; }
.wc-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.12s;
  gap: 12px;
}
.wc-dropdown-item:hover    { background: rgba(124,92,191,0.08); }
.wc-dropdown-item.selected { background: rgba(124,92,191,0.12); }
.wc-di-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.wc-dropdown-item.selected .wc-di-name { color: var(--accent); }
.wc-di-region { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); }
.wc-di-time   { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); }

/* ── RESPONSIVE ── */
@media (min-width: 769px) {
  .cities-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
  .city-card { padding: 18px 16px 16px; gap: 12px; }
  .city-name { font-size: 16px; }
  .city-big-time { font-size: 32px; }
  .city-status-pill { font-size: 12px; padding: 7px 12px; }
}
