/* sync.css — FavSync UI: status dot, code display, claim input + button, dark-mode tweaks */

.sync-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(120,120,128,0.3);
  flex-shrink: 0;
  transition: background-color 0.25s;
}
.sync-status-dot.syncing {
  background: #ff9500;
  animation: sync-dot-pulse 1.2s ease-in-out infinite;
}
.sync-status-dot.synced { background: #34c759; }
.sync-status-dot.offline { background: #ff3b30; }

@keyframes sync-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.sync-action-row {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s;
}
.sync-action-row:active {
  background: rgba(0,0,0,0.04);
}
.sync-chevron {
  width: 14px; height: 14px;
  color: var(--text-dark);
  opacity: 0.28;
  flex-shrink: 0;
}

.sync-code-display {
  padding: 14px 14px 16px;
  text-align: center;
  background: rgba(120,120,128,0.06);
  position: relative;
}
.sync-code-display::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 0.5px;
  background: var(--glass-border);
}
.sync-code-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Mono", monospace;
  user-select: all;
  -webkit-user-select: all;
}
.sync-code-hint {
  font-size: 12px;
  color: var(--text-dark);
  opacity: 0.55;
  margin-top: 6px;
  letter-spacing: 0.2px;
}

.sync-claim-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 14px;
  background: rgba(120,120,128,0.06);
  position: relative;
}
.sync-claim-input::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 0.5px;
  background: var(--glass-border);
}
#sync-code-field {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 9px;
  background: var(--card-bg);
  color: var(--text-dark);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Mono", monospace;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: inset 0 0 0 0.5px var(--glass-border);
  transition: box-shadow 0.2s;
}
#sync-code-field:focus {
  box-shadow: inset 0 0 0 1.5px #0a84ff;
}
#sync-code-field::placeholder {
  color: var(--text-dark);
  opacity: 0.35;
  letter-spacing: normal;
  font-weight: 400;
}
.sync-claim-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 9px;
  background: #0a84ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, background-color 0.15s;
}
.sync-claim-btn:active { background: #0066cc; }
.sync-claim-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (prefers-color-scheme: dark) {
  .sync-action-row:active { background: rgba(255,255,255,0.06); }
  .sync-code-display { background: rgba(255,255,255,0.04); }
  .sync-claim-input { background: rgba(255,255,255,0.04); }
  #sync-code-field { background: rgba(118,118,128,0.24); box-shadow: none; }
  #sync-code-field:focus { box-shadow: inset 0 0 0 1.5px #0a84ff; }
  .sync-status-dot { background: rgba(255,255,255,0.18); }
}
