/* ═══════════════════════════════════════
   AlarmO'Clock — Timezone Converter Styles
   ═══════════════════════════════════════ */

/* ── NAV CLOCK ── */
.nav-clock { opacity: 1; transform: translateY(0); }

/* ── CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(100,60,180,0.08);
  position: relative; z-index: 1;
}
.card-body { padding: 28px 32px; }
.card-divider { height: 1px; background: rgba(255,255,255,0.5); margin: 24px 0; }

/* ── SOURCE ROW ── */
.tzc-source-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.tzc-field { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 140px; }
.tzc-field--city { flex: 1.4; }
.tzc-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── REUSE calc-input-box ── */
.calc-input-box {
  height: 52px; display: flex; align-items: center;
  padding: 0 16px; border: 1px solid var(--border);
  border-radius: 12px; background: rgba(255,255,255,0.5);
}
.calc-time-input {
  flex: 1; border: none; background: none;
  font-family: 'DM Mono', monospace; font-size: 28px; font-weight: 500;
  color: var(--text); text-align: center; outline: none;
  letter-spacing: 0.05em; cursor: pointer; width: 100%;
}

/* ── FROM CITY TRIGGER ── */
.tzc-city-trigger {
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border: 1px solid var(--border);
  border-radius: 12px; background: rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.2s;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; color: var(--text);
  gap: 8px;
}
.tzc-city-trigger:hover { border-color: var(--accent); }
.tzc-caret { font-size: 11px; color: var(--muted); flex-shrink: 0; }

/* ── BTN CONVERT ── */
.tzc-btn-convert {
  height: 52px; padding: 0 24px; border-radius: 12px; border: none;
  background: var(--accent); color: white;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; white-space: nowrap; align-self: flex-end;
}
.tzc-btn-convert:hover { background: #6a4dab; transform: translateY(-1px); }

/* ── DESTINATION ROWS ── */
.tzc-dest-wrap { display: flex; flex-direction: column; gap: 10px; }

.tzc-dest-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,0.35);
  transition: background 0.2s;
}
.tzc-dest-row:hover { background: rgba(255,255,255,0.5); }

.tzc-dest-city {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; flex: 1;
  font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 600; color: var(--text);
}
.tzc-dest-city:hover .tzc-dest-city-name { color: var(--accent); }

.tzc-dest-result {
  align-items: baseline; gap: 8px;
  text-align: right; flex-shrink: 0;
}
.tzc-dest-time {
  font-family: 'DM Mono', monospace;
  font-size: 28px; font-weight: 500; color: var(--text);
  letter-spacing: 0.02em;
  min-width: 90px; text-align: right;
}
.tzc-dest-meta {
  font-family: 'DM Mono', monospace;
  font-size: 12px; color: var(--muted);
  white-space: nowrap;
  display: block;
}
.tzc-dest-meta.next-day  { color: #e8834a; }
.tzc-dest-meta.prev-day  { color: #7aabe0; }
.tzc-dest-meta.diff-plus { color: #5a9e7a; }
.tzc-dest-meta.diff-minus{ color: #c05050; }

/* ── CITY PICKER DROPDOWN ── */
.tzc-dropdown {
  position: fixed;
  z-index: 9999;
  min-width: 280px;
  max-width: 340px;
  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;
  animation: fadeUp 0.15s ease forwards;
}
.tzc-dropdown-inner { display: flex; flex-direction: column; }
.tzc-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;
}
.tzc-search::placeholder { color: var(--muted); }
.tzc-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
}
.tzc-dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; cursor: pointer; transition: background 0.12s; gap: 12px;
}
.tzc-dropdown-item:hover    { background: rgba(124,92,191,0.08); }
.tzc-dropdown-item.selected { background: rgba(124,92,191,0.12); }
.tzc-di-name { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); }
.tzc-dropdown-item.selected .tzc-di-name { color: var(--accent); }
.tzc-di-region { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tzc-di-time { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); white-space: nowrap; }

/* ── WORLD CLOCK GRID ── */
.tzc-world-card { margin-top: 0; }
.tzc-world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.tzc-world-item {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.4);
  display: flex; flex-direction: column; gap: 4px;
}
.tzc-world-city {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.tzc-world-time {
  font-family: 'DM Mono', monospace;
  font-size: 22px; font-weight: 500; color: var(--text);
}
.tzc-world-offset {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--muted);
}
.tzc-world-item.tc-ahead .tzc-world-time  { color: #5a9e7a; }
.tzc-world-item.tc-behind .tzc-world-time { color: #c05050; }

/* ── HOW TO ── */
.how-bare { margin-bottom: 40px; }
.how-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.how-step  { display: flex; gap: 16px; align-items: flex-start; }
.step-num  {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: white;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-text { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted); line-height: 1.6; padding-top: 6px; }

/* ── RESPONSIVE ── */
@media (min-width: 769px) {
  .tzc-source-row { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
  .tzc-field, .tzc-field--city { width: auto; }
  .tzc-btn-convert { width: auto; }
  .tzc-dest-time { font-size: 22px; }
  .tzc-world-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── ADD / REMOVE BUTTONS ── */
.tzc-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px dashed rgba(124,92,191,0.4);
  background: rgba(124,92,191,0.06);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}
.tzc-add-btn:hover {
  background: rgba(124,92,191,0.12);
  border-color: var(--accent);
}

.tzc-remove-btn {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(200,180,220,0.5);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.tzc-remove-btn:hover {
  background: rgba(220,80,80,0.1);
  border-color: rgba(220,80,80,0.4);
  color: #c05050;
}

/* ── DARK THEME ── */
[data-theme="dark"] .tzc-dropdown {
  background: rgba(25,15,55,0.98);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .tzc-search {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}
[data-theme="dark"] .tzc-dropdown-item { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .tzc-dropdown-item:hover { background: rgba(124,92,191,0.2); }
[data-theme="dark"] .tzc-dropdown-item.selected { background: rgba(124,92,191,0.25); }
[data-theme="dark"] .wc-di-name { color: var(--text); }

@media (max-width: 768px) {
  .tzc-btn-convert { width: 100%; }
}
